Title: [140263] trunk/Source/WebCore
- Revision
- 140263
- Author
- [email protected]
- Date
- 2013-01-19 17:00:31 -0800 (Sat, 19 Jan 2013)
Log Message
CanvasRenderingContext2D::drawTextInternal should create a mask buffer compatible with that of the canvas
https://bugs.webkit.org/show_bug.cgi?id=107372
Reviewed by Simon Fraser.
No new tests, just matching acceleration modes.
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::drawTextInternal): Create a buffer with the same acceleration mode as the canvas
instead of forcing the use of an accelerated buffer if we support acceleration; the canvas could be unaccelerated
even if USE(IOSURFACE_CANVAS_BACKING_STORE) is on.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (140262 => 140263)
--- trunk/Source/WebCore/ChangeLog 2013-01-20 00:10:35 UTC (rev 140262)
+++ trunk/Source/WebCore/ChangeLog 2013-01-20 01:00:31 UTC (rev 140263)
@@ -1,3 +1,17 @@
+2013-01-19 Tim Horton <[email protected]>
+
+ CanvasRenderingContext2D::drawTextInternal should create a mask buffer compatible with that of the canvas
+ https://bugs.webkit.org/show_bug.cgi?id=107372
+
+ Reviewed by Simon Fraser.
+
+ No new tests, just matching acceleration modes.
+
+ * html/canvas/CanvasRenderingContext2D.cpp:
+ (WebCore::CanvasRenderingContext2D::drawTextInternal): Create a buffer with the same acceleration mode as the canvas
+ instead of forcing the use of an accelerated buffer if we support acceleration; the canvas could be unaccelerated
+ even if USE(IOSURFACE_CANVAS_BACKING_STORE) is on.
+
2013-01-19 Mikhail Pozdnyakov <[email protected]>
Delegated scrolling: Assertion on attempt to show a CSS sticky element
Modified: trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp (140262 => 140263)
--- trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp 2013-01-20 00:10:35 UTC (rev 140262)
+++ trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp 2013-01-20 01:00:31 UTC (rev 140263)
@@ -2296,11 +2296,7 @@
if (drawStyle->canvasGradient() || drawStyle->canvasPattern()) {
IntRect maskRect = enclosingIntRect(textRect);
-#if USE(IOSURFACE_CANVAS_BACKING_STORE)
- OwnPtr<ImageBuffer> maskImage = ImageBuffer::create(maskRect.size(), 1, ColorSpaceDeviceRGB, Accelerated);
-#else
- OwnPtr<ImageBuffer> maskImage = ImageBuffer::create(maskRect.size(), 1);
-#endif
+ OwnPtr<ImageBuffer> maskImage = c->createCompatibleBuffer(maskRect.size());
GraphicsContext* maskImageContext = maskImage->context();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes