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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/CompositingReasons.h

Issue 2606863002: Complete XXXPaintPropertyNode::operator== and toString() (Closed)
Patch Set: - Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/CompositingReasons.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CompositingReasons_h 5 #ifndef CompositingReasons_h
6 #define CompositingReasons_h 6 #define CompositingReasons_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 #include "wtf/text/WTFString.h"
10 #include <stdint.h> 11 #include <stdint.h>
11 12
12 namespace blink { 13 namespace blink {
13 14
14 const uint64_t CompositingReasonNone = 0; 15 const uint64_t CompositingReasonNone = 0;
15 const uint64_t CompositingReasonAll = ~static_cast<uint64_t>(0); 16 const uint64_t CompositingReasonAll = ~static_cast<uint64_t>(0);
16 17
17 // Intrinsic reasons that can be known right away by the layer 18 // Intrinsic reasons that can be known right away by the layer
18 const uint64_t CompositingReason3DTransform = UINT64_C(1) << 0; 19 const uint64_t CompositingReason3DTransform = UINT64_C(1) << 0;
19 const uint64_t CompositingReasonVideo = UINT64_C(1) << 1; 20 const uint64_t CompositingReasonVideo = UINT64_C(1) << 1;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 struct CompositingReasonStringMap { 175 struct CompositingReasonStringMap {
175 STACK_ALLOCATED(); 176 STACK_ALLOCATED();
176 CompositingReasons reason; 177 CompositingReasons reason;
177 const char* shortName; 178 const char* shortName;
178 const char* description; 179 const char* description;
179 }; 180 };
180 181
181 PLATFORM_EXPORT extern const CompositingReasonStringMap 182 PLATFORM_EXPORT extern const CompositingReasonStringMap
182 kCompositingReasonStringMap[]; 183 kCompositingReasonStringMap[];
183 PLATFORM_EXPORT extern const size_t kNumberOfCompositingReasons; 184 PLATFORM_EXPORT extern const size_t kNumberOfCompositingReasons;
185 PLATFORM_EXPORT String compositingReasonsAsString(CompositingReasons);
184 186
185 } // namespace blink 187 } // namespace blink
186 188
187 #endif // CompositingReasons_h 189 #endif // CompositingReasons_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/CompositingReasons.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698