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

Unified Diff: third_party/WebKit/Source/core/editing/Editor.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
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);
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCanvasValue.cpp ('k') | third_party/WebKit/Source/core/frame/ImageBitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698