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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp

Issue 2472783002: Disable display list for 2D canvas when the canvas is color managed (Closed)
Patch Set: Setting the browser pixel test to Fail for now. Created 4 years, 1 month 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/html/HTMLCanvasElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
index 9366ebfe73b95b24ce071896b444d2144c4c7587..f6c00754f645c41132bcd77ebcd31c2964d79630 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
@@ -857,6 +857,9 @@ class UnacceleratedSurfaceFactory
};
bool HTMLCanvasElement::shouldUseDisplayList(const IntSize& deviceSize) {
+ if (m_context->colorSpace() != CanvasColorSpace::kLegacyCanvasColorSpace)
Justin Novosad 2016/11/02 19:49:48 "CanvasColorSpace::" is not needed.
zakerinasab 2016/11/02 19:57:23 Done.
+ return false;
+
if (RuntimeEnabledFeatures::forceDisplayList2dCanvasEnabled())
return true;

Powered by Google App Engine
This is Rietveld 408576698