OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "cc/layers/compositing_reasons.h" | 6 #include "cc/layers/compositing_reasons.h" |
7 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositingReaso
ns.h" | 7 #include "third_party/WebKit/public/platform/WebCompositingReasons.h" |
8 | 8 |
9 #define COMPILE_ASSERT_MATCHING_ENUMS(cc_name, webkit_name) \ | 9 #define COMPILE_ASSERT_MATCHING_ENUMS(cc_name, webkit_name) \ |
10 COMPILE_ASSERT( \ | 10 COMPILE_ASSERT( \ |
11 static_cast<int>(cc_name) == static_cast<int>(webkit_name), \ | 11 static_cast<int>(cc_name) == static_cast<int>(webkit_name), \ |
12 mismatching_enums) | 12 mismatching_enums) |
13 | 13 |
14 COMPILE_ASSERT_MATCHING_ENUMS( | 14 COMPILE_ASSERT_MATCHING_ENUMS( |
15 cc::kCompositingReasonUnknown, | 15 cc::kCompositingReasonUnknown, |
16 WebKit::CompositingReasonUnknown); | 16 WebKit::CompositingReasonUnknown); |
17 | 17 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 cc::kCompositingReasonLayerForForeground, | 135 cc::kCompositingReasonLayerForForeground, |
136 WebKit::CompositingReasonLayerForForeground); | 136 WebKit::CompositingReasonLayerForForeground); |
137 | 137 |
138 COMPILE_ASSERT_MATCHING_ENUMS( | 138 COMPILE_ASSERT_MATCHING_ENUMS( |
139 cc::kCompositingReasonLayerForBackground, | 139 cc::kCompositingReasonLayerForBackground, |
140 WebKit::CompositingReasonLayerForBackground); | 140 WebKit::CompositingReasonLayerForBackground); |
141 | 141 |
142 COMPILE_ASSERT_MATCHING_ENUMS( | 142 COMPILE_ASSERT_MATCHING_ENUMS( |
143 cc::kCompositingReasonLayerForMask, | 143 cc::kCompositingReasonLayerForMask, |
144 WebKit::CompositingReasonLayerForMask); | 144 WebKit::CompositingReasonLayerForMask); |
OLD | NEW |