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

Unified Diff: public/platform/WebBlendMode.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: Added layout test & addressed review comments 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/WebBlendMode.h
diff --git a/public/platform/WebGraphicsContext3DProvider.h b/public/platform/WebBlendMode.h
similarity index 77%
copy from public/platform/WebGraphicsContext3DProvider.h
copy to public/platform/WebBlendMode.h
index dba2216773526377c53b27a9d6830bce0c25fc48..53be883134307cdf0787512277440b3a63883ca0 100644
--- a/public/platform/WebGraphicsContext3DProvider.h
+++ b/public/platform/WebBlendMode.h
@@ -28,22 +28,30 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebGraphicsContext3DProvider_h
-#define WebGraphicsContext3DProvider_h
+#ifndef WebBlendMode_h
+#define WebBlendMode_h
#include "WebCommon.h"
-class GrContext;
-
namespace WebKit {
-class WebGraphicsContext3D;
-
-class WebGraphicsContext3DProvider {
-public:
- virtual ~WebGraphicsContext3DProvider() { }
- virtual WebGraphicsContext3D* context3d() = 0;
- virtual GrContext* grContext() = 0;
+enum WebBlendMode {
+ WebBlendModeNormal,
+ WebBlendModeMultiply,
+ WebBlendModeScreen,
+ WebBlendModeOverlay,
+ WebBlendModeDarken,
+ WebBlendModeLighten,
+ WebBlendModeColorDodge,
+ WebBlendModeColorBurn,
+ WebBlendModeHardLight,
+ WebBlendModeSoftLight,
+ WebBlendModeDifference,
+ WebBlendModeExclusion,
+ WebBlendModeHue,
+ WebBlendModeSaturation,
+ WebBlendModeColor,
+ WebBlendModeLuminosity
};
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698