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

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

Issue 1730653002: Move squash preventing reasons out of compositing reasons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug and test fixes. Created 4 years, 10 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SquashingDisallowedReasons_h
6 #define SquashingDisallowedReasons_h
7
8 #include "platform/PlatformExport.h"
9 #include "wtf/Allocator.h"
10 #include <stdint.h>
11
12 namespace blink {
13
14 const uint64_t SquashingDisallowedReasonsNone = 0;
15
16 const uint64_t SquashingDisallowedReasonScrollsWithRespectToSquashingLayer = UINT64_C(1) << 0;
17 const uint64_t SquashingDisallowedReasonSquashingSparsityExceeded = UINT64_C(1) << 1;
18 const uint64_t SquashingDisallowedReasonClippingContainerMismatch = UINT64_C(1) << 2;
19 const uint64_t SquashingDisallowedReasonOpacityAncestorMismatch = UINT64_C(1) << 3;
20 const uint64_t SquashingDisallowedReasonTransformAncestorMismatch = UINT64_C(1) << 4;
21 const uint64_t SquashingDisallowedReasonFilterMismatch = UINT64_C(1) << 5;
22 const uint64_t SquashingDisallowedReasonWouldBreakPaintOrder = UINT64_C(1) << 6;
23 const uint64_t SquashingDisallowedReasonSquashingVideoIsDisallowed = UINT64_C(1) << 7;
24 const uint64_t SquashingDisallowedReasonSquashedLayerClipsCompositingDescendants = UINT64_C(1) << 8;
25 const uint64_t SquashingDisallowedReasonSquashingLayoutPartIsDisallowed = UINT64_C(1) << 9;
26 const uint64_t SquashingDisallowedReasonSquashingReflectionIsDisallowed = UINT64_C(1) << 10;
27 const uint64_t SquashingDisallowedReasonSquashingBlendingIsDisallowed = UINT64_C(1) << 11;
28 const uint64_t SquashingDisallowedReasonNearestFixedPositionMismatch = UINT64_C(1) << 12;
29 const uint64_t SquashingDisallowedReasonScrollChildWithCompositedDescendants = UINT64_C(1) << 13;
30 const uint64_t SquashingDisallowedReasonSquashingLayerIsAnimating = UINT64_C(1) << 14;
31
32 typedef uint64_t SquashingDisallowedReasons;
33
34 struct SquashingDisallowedReasonStringMap {
35 STACK_ALLOCATED();
36 SquashingDisallowedReasons reason;
37 const char* shortName;
38 const char* description;
39 };
40
41 PLATFORM_EXPORT extern const SquashingDisallowedReasonStringMap kSquashingDisall owedReasonStringMap[];
42 PLATFORM_EXPORT extern const size_t kNumberOfSquashingDisallowedReasons;
43
44 } // namespace blink
45
46 #endif // SquashingDisallowedReasons_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698