Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Unified Diff: Source/core/css/CSSCanvasValue.cpp

Issue 1307143005: Make 2D canvas smarter about chosing whether or not to use GPU acceleration (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/editing/Editor.cpp » ('j') | Source/platform/graphics/Canvas2DLayerBridge.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSCanvasValue.cpp
diff --git a/Source/core/css/CSSCanvasValue.cpp b/Source/core/css/CSSCanvasValue.cpp
index 85e4b16a26f24ca84719339b15cb048178d87a22..27d33ce598bec871c2aef52e74233f81f92b0073 100644
--- a/Source/core/css/CSSCanvasValue.cpp
+++ b/Source/core/css/CSSCanvasValue.cpp
@@ -93,7 +93,7 @@ PassRefPtr<Image> CSSCanvasValue::image(LayoutObject* layoutObject, const IntSiz
if (!elt)
return nullptr;
UseCounter::count(layoutObject->document(), UseCounter::WebkitCanvas);
- return elt->copiedImage(FrontBuffer);
+ return elt->copiedImage(FrontBuffer, PreferNoAcceleration);
}
bool CSSCanvasValue::equals(const CSSCanvasValue& other) const
« no previous file with comments | « no previous file | Source/core/editing/Editor.cpp » ('j') | Source/platform/graphics/Canvas2DLayerBridge.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698