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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.cpp

Issue 1599673002: compositor-worker: Remove code from cc_blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switch to HashMap. Created 4 years, 11 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: third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.cpp b/third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..91907617758fdec2f2fab592268bc093df5bc731
--- /dev/null
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableProperties.cpp
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "platform/graphics/CompositorMutableProperties.h"
+
+#include "cc/animation/mutable_properties.h"
+
+namespace blink {
+
+static_assert(
+ static_cast<cc::MutableProperty>(CompositorMutablePropertyNone) == cc::kMutablePropertyNone,
+ "MutableProperty and CompositorMutableProperty enums must match");
+
+static_assert(
+ static_cast<cc::MutableProperty>(CompositorMutablePropertyOpacity) == cc::kMutablePropertyOpacity,
+ "MutableProperty and CompositorMutableProperty enums must match");
+
+static_assert(
+ static_cast<cc::MutableProperty>(CompositorMutablePropertyScrollLeft) == cc::kMutablePropertyScrollLeft,
+ "MutableProperty and CompositorMutableProperty enums must match");
+
+static_assert(
+ static_cast<cc::MutableProperty>(CompositorMutablePropertyScrollTop) == cc::kMutablePropertyScrollTop,
+ "MutableProperty and CompositorMutableProperty enums must match");
+
+static_assert(
+ static_cast<cc::MutableProperty>(CompositorMutablePropertyTransform) == cc::kMutablePropertyTransform,
+ "MutableProperty and CompositorMutableProperty enums must match");
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698