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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h

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/GraphicsLayer.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
index b6b19c9490cb363fc4f09d3d2d0e4379c0fcd818..0fc99f56c1a313fc0e0d0fdfa003e6ee051648c6 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
@@ -34,6 +34,7 @@
#include "platform/geometry/FloatSize.h"
#include "platform/geometry/IntRect.h"
#include "platform/graphics/Color.h"
+#include "platform/graphics/ColorBehavior.h"
#include "platform/graphics/CompositorElementId.h"
#include "platform/graphics/ContentLayerDelegate.h"
#include "platform/graphics/GraphicsContext.h"
@@ -286,6 +287,8 @@ class PLATFORM_EXPORT GraphicsLayer : public WebLayerScrollClient,
void setPreferredRasterBounds(const IntSize&);
void clearPreferredRasterBounds();
+ const ColorBehavior& colorBehavior() const { return m_colorBehavior; }
+
protected:
String debugName(cc::Layer*) const;
bool shouldFlattenTransform() const { return m_shouldFlattenTransform; }
@@ -402,6 +405,8 @@ class PLATFORM_EXPORT GraphicsLayer : public WebLayerScrollClient,
std::unique_ptr<PaintController> m_paintController;
+ ColorBehavior m_colorBehavior;
+
IntRect m_previousInterestRect;
IntSize m_preferredRasterBounds;
bool m_hasPreferredRasterBounds;

Powered by Google App Engine
This is Rietveld 408576698