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

Unified Diff: public/platform/WebLayer.h

Issue 23511004: mix-blend-mode implementation for accelerated layers - blink part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: adding the rendering part Created 7 years, 4 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: public/platform/WebLayer.h
diff --git a/public/platform/WebLayer.h b/public/platform/WebLayer.h
index c21139208c67081f26e650d8614a0b85b2b135e6..d2cf86fb096201d2ecf1b716c9b54d3a7f317f8d 100644
--- a/public/platform/WebLayer.h
+++ b/public/platform/WebLayer.h
@@ -27,6 +27,7 @@
#define WebLayer_h
#include "WebAnimation.h"
+#include "WebBlendMode.h"
#include "WebColor.h"
#include "WebCommon.h"
#include "WebCompositingReasons.h"
@@ -86,6 +87,18 @@ public:
virtual void setOpacity(float) = 0;
virtual float opacity() const = 0;
+ // The blending formula to be used for mixing colors of
+ // FIXME: Make pure virtual after implementation lands.
+ virtual void setBlendMode(WebBlendMode) { }
+ virtual WebBlendMode blendMode() const { return WebBlendModeNormal; }
+
+ // The layers within an isolated group should be composited over
+ // a transparent black initial backdrop. It will create a separate rendering
+ // surfece when required. http://dev.w3.org/fxtf/compositing-1/
+ // FIXME: Make pure virtual after implementation lands.
+ virtual void setIsIsolatedGroupRoot(bool) { }
+ virtual bool isIsolatedGroupRoot() { return false; }
+
virtual void setOpaque(bool) = 0;
virtual bool opaque() const = 0;
« public/platform/WebCompositingReasons.h ('K') | « public/platform/WebCompositingReasons.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698