Changeset 87517 in webkit


Ignore:
Timestamp:
May 27, 2011 9:14:39 AM (13 years ago)
Author:
Carlos Garcia Campos
Message:

2011-05-27 Carlos Garcia Campos <cgarcia@igalia.com>

Reviewed by Martin Robinson.

[CAIRO] Don't copy the surface before drawing it into the context in ShareableBitmap::paint()
https://bugs.webkit.org/show_bug.cgi?id=60757

cairo_image_surface_create_for_data() is already a shallow copy of
the image, so we don't need to copy it again.

  • Shared/cairo/ShareableBitmapCairo.cpp: (WebKit::ShareableBitmap::paint):
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r87509 r87517  
     12011-05-27  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [CAIRO] Don't copy the surface before drawing it into the context in ShareableBitmap::paint()
     6        https://bugs.webkit.org/show_bug.cgi?id=60757
     7
     8        cairo_image_surface_create_for_data() is already a shallow copy of
     9        the image, so we don't need to copy it again.
     10
     11        * Shared/cairo/ShareableBitmapCairo.cpp:
     12        (WebKit::ShareableBitmap::paint):
     13
    1142011-05-26  Jeff Miller  <jeffm@apple.com>
    215
  • trunk/Source/WebKit2/Shared/cairo/ShareableBitmapCairo.cpp

    r86174 r87517  
    5151                                                                                   m_size.width(), m_size.height(),
    5252                                                                                   m_size.width() * 4));
    53 
    54     // This copy is not copy-on-write, so this is probably sub-optimal.
    55     RefPtr<cairo_surface_t> surfaceCopy = copyCairoImageSurface(surface.get());
    5653    FloatRect destRect(dstPoint, srcRect.size());
    57     context.platformContext()->drawSurfaceToContext(surfaceCopy.get(), destRect, srcRect, &context);
     54    context.platformContext()->drawSurfaceToContext(surface.get(), destRect, srcRect, &context);
    5855}
    5956
Note: See TracChangeset for help on using the changeset viewer.