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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.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
Index: third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
index 088298a549e77c341ffea7aada48ee24d57ad404..96cbd75f5ec2007e6677942899f5ebd19e94a718 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
@@ -56,11 +56,13 @@ namespace blink {
GraphicsContext::GraphicsContext(PaintController& paintController,
DisabledMode disableContextOrPainting,
- SkMetaData* metaData)
+ SkMetaData* metaData,
+ ColorBehavior colorBehavior)
: m_canvas(nullptr),
m_paintController(paintController),
m_paintStateStack(),
m_paintStateIndex(0),
+ m_colorBehavior(colorBehavior),
#if DCHECK_IS_ON()
m_layerCount(0),
m_disableDestructionChecks(false),

Powered by Google App Engine
This is Rietveld 408576698