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

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

Issue 1372463002: Re-land: Make 2D canvas smarter about chosing whether or not to use GPU acceleration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed assert 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 | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSCanvasValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSCanvasValue.cpp b/third_party/WebKit/Source/core/css/CSSCanvasValue.cpp
index 85e4b16a26f24ca84719339b15cb048178d87a22..27d33ce598bec871c2aef52e74233f81f92b0073 100644
--- a/third_party/WebKit/Source/core/css/CSSCanvasValue.cpp
+++ b/third_party/WebKit/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 | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698