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

Unified Diff: third_party/WebKit/Source/core/editing/Editor.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/editing/Editor.cpp
diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
index 9008243b2466db15dfacd376d1c0872b05acecc4..fbaff7853a9a65c273f77f4c55557c8e97861083 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -425,7 +425,7 @@ static PassRefPtr<Image> imageFromNode(const Node& node)
return nullptr;
if (layoutObject->isCanvas())
- return toHTMLCanvasElement(node).copiedImage(FrontBuffer);
+ return toHTMLCanvasElement(node).copiedImage(FrontBuffer, PreferNoAcceleration);
if (layoutObject->isImage()) {
LayoutImage* layoutImage = toLayoutImage(layoutObject);

Powered by Google App Engine
This is Rietveld 408576698