Changeset 87517 in webkit
- Timestamp:
- May 27, 2011 9:14:39 AM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r87509 r87517 1 2011-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 1 14 2011-05-26 Jeff Miller <jeffm@apple.com> 2 15 -
trunk/Source/WebKit2/Shared/cairo/ShareableBitmapCairo.cpp
r86174 r87517 51 51 m_size.width(), m_size.height(), 52 52 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());56 53 FloatRect destRect(dstPoint, srcRect.size()); 57 context.platformContext()->drawSurfaceToContext(surface Copy.get(), destRect, srcRect, &context);54 context.platformContext()->drawSurfaceToContext(surface.get(), destRect, srcRect, &context); 58 55 } 59 56
Note: See TracChangeset
for help on using the changeset viewer.