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

Side by Side Diff: Source/core/rendering/CompositingReasons.h

Issue 23503046: [CSS Blending] Implement mix-blend-mode in software. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 2 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
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 #ifndef CompositingReasons_h 5 #ifndef CompositingReasons_h
6 #define CompositingReasons_h 6 #define CompositingReasons_h
7 7
8 #include "wtf/MathExtras.h" 8 #include "wtf/MathExtras.h"
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 namespace WebCore { 11 namespace WebCore {
12 12
13 const uint64_t CompositingReasonNone = 0; 13 const uint64_t CompositingReasonNone = 0;
14 14
15 // Intrinsic reasons that can be known right away by the layer 15 // Intrinsic reasons that can be known right away by the layer
16 const uint64_t CompositingReason3DTransform = UINT64_ C(1) << 0; 16 const uint64_t CompositingReason3DTransform = UINT64_ C(1) << 0;
17 const uint64_t CompositingReasonVideo = UINT64_ C(1) << 1; 17 const uint64_t CompositingReasonVideo = UINT64_ C(1) << 1;
18 const uint64_t CompositingReasonCanvas = UINT64_ C(1) << 2; 18 const uint64_t CompositingReasonCanvas = UINT64_ C(1) << 2;
19 const uint64_t CompositingReasonPlugin = UINT64_ C(1) << 3; 19 const uint64_t CompositingReasonPlugin = UINT64_ C(1) << 3;
20 const uint64_t CompositingReasonIFrame = UINT64_ C(1) << 4; 20 const uint64_t CompositingReasonIFrame = UINT64_ C(1) << 4;
21 const uint64_t CompositingReasonBackfaceVisibilityHidden = UINT64_ C(1) << 5; 21 const uint64_t CompositingReasonBackfaceVisibilityHidden = UINT64_ C(1) << 5;
22 const uint64_t CompositingReasonAnimation = UINT64_ C(1) << 6; 22 const uint64_t CompositingReasonAnimation = UINT64_ C(1) << 6;
23 const uint64_t CompositingReasonFilters = UINT64_ C(1) << 7; 23 const uint64_t CompositingReasonFilters = UINT64_ C(1) << 7;
24 const uint64_t CompositingReasonPositionFixed = UINT64_ C(1) << 8; 24 const uint64_t CompositingReasonPositionFixed = UINT64_ C(1) << 8;
25 const uint64_t CompositingReasonPositionSticky = UINT64_ C(1) << 9; 25 const uint64_t CompositingReasonPositionSticky = UINT64_ C(1) << 9;
26 const uint64_t CompositingReasonOverflowScrollingTouch = UINT64_ C(1) << 10; 26 const uint64_t CompositingReasonOverflowScrollingTouch = UINT64_ C(1) << 10;
27 const uint64_t CompositingReasonBlending = UINT64_ C(1) << 11;
28 27
29 // Overlap reasons that require knowing what's behind you in paint-order before knowing the answer 28 // Overlap reasons that require knowing what's behind you in paint-order before knowing the answer
30 const uint64_t CompositingReasonAssumedOverlap = UINT64_ C(1) << 12; 29 const uint64_t CompositingReasonAssumedOverlap = UINT64_ C(1) << 12;
31 const uint64_t CompositingReasonOverlap = UINT64_ C(1) << 13; 30 const uint64_t CompositingReasonOverlap = UINT64_ C(1) << 13;
32 const uint64_t CompositingReasonNegativeZIndexChildren = UINT64_ C(1) << 14; 31 const uint64_t CompositingReasonNegativeZIndexChildren = UINT64_ C(1) << 14;
33 32
34 // Subtree reasons that require knowing what the status of your subtree is befor e knowing the answer 33 // Subtree reasons that require knowing what the status of your subtree is befor e knowing the answer
35 const uint64_t CompositingReasonTransformWithCompositedDescendants = UINT64_ C(1) << 15; 34 const uint64_t CompositingReasonTransformWithCompositedDescendants = UINT64_ C(1) << 15;
36 const uint64_t CompositingReasonOpacityWithCompositedDescendants = UINT64_ C(1) << 16; 35 const uint64_t CompositingReasonOpacityWithCompositedDescendants = UINT64_ C(1) << 16;
37 const uint64_t CompositingReasonMaskWithCompositedDescendants = UINT64_ C(1) << 17; 36 const uint64_t CompositingReasonMaskWithCompositedDescendants = UINT64_ C(1) << 17;
(...skipping 24 matching lines...) Expand all
62 61
63 const uint64_t CompositingReasonLayerForVideoOverlay = UINT64_ C(1) << 34; 62 const uint64_t CompositingReasonLayerForVideoOverlay = UINT64_ C(1) << 34;
64 63
65 // Note: if you add more reasons here, you will need to update WebCompositingRea sons as well. 64 // Note: if you add more reasons here, you will need to update WebCompositingRea sons as well.
66 typedef uint64_t CompositingReasons; 65 typedef uint64_t CompositingReasons;
67 66
68 67
69 } // namespace WebCore 68 } // namespace WebCore
70 69
71 #endif // CompositingReasons_h 70 #endif // CompositingReasons_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/repaint/mix-blend-mode-separate-stacking-context.html ('k') | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698