Changeset 65451 in webkit
- Timestamp:
- Aug 16, 2010 2:26:28 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp
r65449 r65451 929 929 if (!kernelSize) { 930 930 setColor(cr, shadowColor); 931 cairo_mask_surface(cr, buffer->image()->nativeImageForCurrentFrame(), shadowRect.x(), shadowRect.y()); 931 RefPtr<Image> copiedImage = buffer->copyImage(); // FIXME: Copying the image is wasteful. 932 cairo_mask_surface(cr, copiedImage->nativeImageForCurrentFrame(), shadowRect.x(), shadowRect.y()); 932 933 return; 933 934 } … … 949 950 // Masking makes it possible to just blur the alpha channel. 950 951 setColor(cr, shadowColor); 951 cairo_mask_surface(cr, blur->resultImage()->image()->nativeImageForCurrentFrame(), shadowRect.x(), shadowRect.y()); 952 RefPtr<Image> copiedImage = blur->resultImage()->copyImage(); // FIXME: Copying the image is wasteful. 953 cairo_mask_surface(cr, copiedImage->nativeImageForCurrentFrame(), shadowRect.x(), shadowRect.y()); 952 954 #endif 953 955 }
Note: See TracChangeset
for help on using the changeset viewer.