RenderThemeMac::paintProgressBar creates a buffer without respecting the destination...
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Sep 2014 19:16:14 +0000 (19:16 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 1 Sep 2014 19:16:14 +0000 (19:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=136427

Reviewed by Dan Bernstein.

No new tests, just a performance improvement.

* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::paintProgressBar):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173161 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderThemeMac.mm

index acef0866bcf27fafbdf607885b88654f7339723f..4fbf5cb556d45a917abe80cbac4cb9c827387fdd 100644 (file)
@@ -1,3 +1,15 @@
+2014-09-01  Tim Horton  <timothy_horton@apple.com>
+
+        RenderThemeMac::paintProgressBar creates a buffer without respecting the destination's acceleration setting
+        https://bugs.webkit.org/show_bug.cgi?id=136427
+
+        Reviewed by Dan Bernstein.
+
+        No new tests, just a performance improvement.
+
+        * rendering/RenderThemeMac.mm:
+        (WebCore::RenderThemeMac::paintProgressBar):
+
 2014-09-01  Tim Horton  <timothy_horton@apple.com>
 
         Remove an unnecessary local in GraphicsLayerCA::ensureStructuralLayer
index 97d72b92735426c03dd26d091a4b55b3ee3160c1..499611f2ae98753081de308efa953c71e6a8b0ec 100644 (file)
@@ -1134,7 +1134,7 @@ bool RenderThemeMac::paintProgressBar(const RenderObject& renderObject, const Pa
     trackInfo.reserved = 0;
     trackInfo.filler1 = 0;
 
-    std::unique_ptr<ImageBuffer> imageBuffer = ImageBuffer::create(inflatedRect.size(), deviceScaleFactor);
+    std::unique_ptr<ImageBuffer> imageBuffer = ImageBuffer::createCompatibleBuffer(inflatedRect.size(), deviceScaleFactor, ColorSpaceDeviceRGB, paintInfo.context, true);
     if (!imageBuffer)
         return true;