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

Unified Diff: third_party/WebKit/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: migrated to chromium repo 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
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

Powered by Google App Engine
This is Rietveld 408576698