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

Unified Diff: 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: 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
Index: Source/core/editing/Editor.cpp
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp
index c2b3ea246632a19ddb2ae67eb0399c769f6c6d83..f371fe0cfb6804d444f4bfed5df44de33818d26b 100644
--- a/Source/core/editing/Editor.cpp
+++ b/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