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

Side by Side Diff: sky/engine/platform/graphics/CompositingReasons.h

Issue 721473002: Removed ScrollingCoordinator and a bunch of composited scrolling' (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cr comments Created 6 years, 1 month 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
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/MathExtras.h" 9 #include "wtf/MathExtras.h"
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Subtree reasons that require knowing what the status of your subtree is befor e knowing the answer 45 // Subtree reasons that require knowing what the status of your subtree is befor e knowing the answer
46 const uint64_t CompositingReasonTransformWithCompositedDescendants = UINT6 4_C(1) << 28; 46 const uint64_t CompositingReasonTransformWithCompositedDescendants = UINT6 4_C(1) << 28;
47 const uint64_t CompositingReasonOpacityWithCompositedDescendants = UINT6 4_C(1) << 29; 47 const uint64_t CompositingReasonOpacityWithCompositedDescendants = UINT6 4_C(1) << 29;
48 const uint64_t CompositingReasonMaskWithCompositedDescendants = UINT6 4_C(1) << 30; 48 const uint64_t CompositingReasonMaskWithCompositedDescendants = UINT6 4_C(1) << 30;
49 const uint64_t CompositingReasonFilterWithCompositedDescendants = UINT6 4_C(1) << 32; 49 const uint64_t CompositingReasonFilterWithCompositedDescendants = UINT6 4_C(1) << 32;
50 const uint64_t CompositingReasonBlendingWithCompositedDescendants = UINT6 4_C(1) << 33; 50 const uint64_t CompositingReasonBlendingWithCompositedDescendants = UINT6 4_C(1) << 33;
51 const uint64_t CompositingReasonClipsCompositingDescendants = UINT6 4_C(1) << 34; 51 const uint64_t CompositingReasonClipsCompositingDescendants = UINT6 4_C(1) << 34;
52 const uint64_t CompositingReasonPerspectiveWith3DDescendants = UINT6 4_C(1) << 35; 52 const uint64_t CompositingReasonPerspectiveWith3DDescendants = UINT6 4_C(1) << 35;
53 const uint64_t CompositingReasonPreserve3DWith3DDescendants = UINT6 4_C(1) << 36; 53 const uint64_t CompositingReasonPreserve3DWith3DDescendants = UINT6 4_C(1) << 36;
54 const uint64_t CompositingReasonIsolateCompositedDescendants = UINT6 4_C(1) << 38; 54 const uint64_t CompositingReasoWnIsolateCompositedDescendants = UINT 64_C(1) << 38;
55 55
56 // The root layer is a special case that may be forced to be a layer, but also i t needs to be 56 // The root layer is a special case that may be forced to be a layer, but also i t needs to be
57 // a layer if anything else in the subtree is composited. 57 // a layer if anything else in the subtree is composited.
58 const uint64_t CompositingReasonRoot = UINT6 4_C(1) << 39; 58 const uint64_t CompositingReasonRoot = UINT6 4_C(1) << 39;
59 59
60 // CompositedLayerMapping internal hierarchy reasons 60 // CompositedLayerMapping internal hierarchy reasons
61 const uint64_t CompositingReasonLayerForAncestorClip = UINT6 4_C(1) << 40; 61 const uint64_t CompositingReasonLayerForAncestorClip = UINT6 4_C(1) << 40;
62 const uint64_t CompositingReasonLayerForDescendantClip = UINT6 4_C(1) << 41; 62 const uint64_t CompositingReasonLayerForDescendantClip = UINT6 4_C(1) << 41;
63 const uint64_t CompositingReasonLayerForPerspective = UINT6 4_C(1) << 42; 63 const uint64_t CompositingReasonLayerForPerspective = UINT6 4_C(1) << 42;
64 const uint64_t CompositingReasonLayerForHorizontalScrollbar = UINT6 4_C(1) << 43; 64 // FIXME(sky): 43 is unused.
65 const uint64_t CompositingReasonLayerForVerticalScrollbar = UINT6 4_C(1) << 44; 65 // FIXME(sky): 44 is unused.
66 const uint64_t CompositingReasonLayerForOverflowControlsHost = UINT6 4_C(1) << 45; 66 const uint64_t CompositingReasonLayerForOverflowControlsHost = UINT6 4_C(1) << 45;
67 // FIXME(sky): 46 is unused. 67 // FIXME(sky): 46 is unused.
68 const uint64_t CompositingReasonLayerForScrollingContents = UINT6 4_C(1) << 47;
69 const uint64_t CompositingReasonLayerForScrollingContainer = UINT6 4_C(1) << 48;
70 const uint64_t CompositingReasonLayerForSquashingContents = UINT6 4_C(1) << 49; 68 const uint64_t CompositingReasonLayerForSquashingContents = UINT6 4_C(1) << 49;
71 const uint64_t CompositingReasonLayerForSquashingContainer = UINT6 4_C(1) << 50; 69 const uint64_t CompositingReasonLayerForSquashingContainer = UINT6 4_C(1) << 50;
72 const uint64_t CompositingReasonLayerForForeground = UINT6 4_C(1) << 51; 70 const uint64_t CompositingReasonLayerForForeground = UINT6 4_C(1) << 51;
73 const uint64_t CompositingReasonLayerForBackground = UINT6 4_C(1) << 52; 71 const uint64_t CompositingReasonLayerForBackground = UINT6 4_C(1) << 52;
74 const uint64_t CompositingReasonLayerForMask = UINT6 4_C(1) << 53; 72 const uint64_t CompositingReasonLayerForMask = UINT6 4_C(1) << 53;
75 const uint64_t CompositingReasonLayerForClippingMask = UINT6 4_C(1) << 54; 73 const uint64_t CompositingReasonLayerForClippingMask = UINT6 4_C(1) << 54;
76 const uint64_t CompositingReasonLayerForScrollingBlockSelection = UINT6 4_C(1) << 55; 74 // FIXME(sky): 55 is unused.
77 75
78 // Composited elements with inline transforms trigger assumed overlap so that 76 // Composited elements with inline transforms trigger assumed overlap so that
79 // we can update their transforms quickly. 77 // we can update their transforms quickly.
80 const uint64_t CompositingReasonInlineTransform = UINT6 4_C(1) << 56; 78 const uint64_t CompositingReasonInlineTransform = UINT6 4_C(1) << 56;
81 79
82 // Various combinations of compositing reasons are defined here also, for more i ntutive and faster bitwise logic. 80 // Various combinations of compositing reasons are defined here also, for more i ntutive and faster bitwise logic.
83 const uint64_t CompositingReasonComboAllDirectReasons = 81 const uint64_t CompositingReasonComboAllDirectReasons =
84 CompositingReason3DTransform 82 CompositingReason3DTransform
85 | CompositingReasonVideo 83 | CompositingReasonVideo
86 | CompositingReasonCanvas 84 | CompositingReasonCanvas
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 const char* shortName; 162 const char* shortName;
165 const char* description; 163 const char* description;
166 }; 164 };
167 165
168 PLATFORM_EXPORT extern const CompositingReasonStringMap kCompositingReasonString Map[]; 166 PLATFORM_EXPORT extern const CompositingReasonStringMap kCompositingReasonString Map[];
169 PLATFORM_EXPORT extern size_t kNumberOfCompositingReasons; 167 PLATFORM_EXPORT extern size_t kNumberOfCompositingReasons;
170 168
171 } // namespace blink 169 } // namespace blink
172 170
173 #endif // CompositingReasons_h 171 #endif // CompositingReasons_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/compositing/RenderLayerCompositor.cpp ('k') | sky/engine/platform/graphics/CompositingReasons.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698