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

Unified Diff: third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp

Issue 2552893005: Add ColorBehavior to GraphicsLayer and GraphicsContext (Closed)
Patch Set: Rebase Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
index a2b49cf34730b17d0bbbedfa0ae0921f1dfbfc64..c8adc2a298a58b98b17d55d05ae729dcf4a1b3b2 100644
--- a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
@@ -25,7 +25,6 @@
#include "platform/graphics/ContentLayerDelegate.h"
-#include "platform/RuntimeEnabledFeatures.h"
#include "platform/geometry/IntRect.h"
#include "platform/graphics/GraphicsContext.h"
#include "platform/graphics/GraphicsLayer.h"
@@ -90,11 +89,9 @@ void ContentLayerDelegate::paintContents(
paintController.paintArtifact().appendToWebDisplayItemList(
webDisplayItemList);
- if (!RuntimeEnabledFeatures::colorCorrectRenderingEnabled()) {
- // TODO(ccameron): This color space should come from the GraphicsLayer.
- // https://crbug.com/667411
+ if (m_graphicsLayer->colorBehavior().isTransformToTargetColorSpace()) {
webDisplayItemList->setImpliedColorSpace(gfx::ColorSpace::FromSkColorSpace(
- ColorBehavior::globalTargetColorSpace()));
+ m_graphicsLayer->colorBehavior().targetColorSpace()));
}
paintController.setDisplayItemConstructionIsDisabled(false);
paintController.setSubsequenceCachingIsDisabled(false);
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/GraphicsContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698