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

Unified Diff: cc/blink/web_blend_mode.h

Issue 470983004: Move blink<->cc bindings to cc/blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
« no previous file with comments | « cc/blink/web_animation_unittest.cc ('k') | cc/blink/web_compositor_support_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_blend_mode.h
diff --git a/content/renderer/compositor_bindings/web_blend_mode.h b/cc/blink/web_blend_mode.h
similarity index 93%
rename from content/renderer/compositor_bindings/web_blend_mode.h
rename to cc/blink/web_blend_mode.h
index 6ab6adee98b05a54510798697332467e4b760edd..95c48d0b443b03418d69c2dc41d57b8d5e9920f4 100644
--- a/content/renderer/compositor_bindings/web_blend_mode.h
+++ b/cc/blink/web_blend_mode.h
@@ -2,12 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_BLEND_MODE_H_
-#define CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_BLEND_MODE_H_
+#ifndef CC_BLINK_WEB_BLEND_MODE_H_
+#define CC_BLINK_WEB_BLEND_MODE_H_
#include "third_party/WebKit/public/platform/WebBlendMode.h"
+#include "third_party/skia/include/core/SkXfermode.h"
-namespace content {
+namespace cc_blink {
inline SkXfermode::Mode BlendModeToSkia(blink::WebBlendMode blend_mode) {
switch (blend_mode) {
@@ -101,7 +102,6 @@ inline blink::WebBlendMode BlendModeFromSkia(SkXfermode::Mode blend_mode) {
return blink::WebBlendModeNormal;
}
-} // namespace content
-
-#endif // CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_BLEND_MODE_H_
+} // namespace cc_blink
+#endif // CC_BLINK_WEB_BLEND_MODE_H_
« no previous file with comments | « cc/blink/web_animation_unittest.cc ('k') | cc/blink/web_compositor_support_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698