Home | History | Annotate | Download | only in layers
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef CC_LAYERS_COMPOSITING_REASONS_H_
      6 #define CC_LAYERS_COMPOSITING_REASONS_H_
      7 
      8 #include "base/port.h"
      9 
     10 namespace cc {
     11 
     12 // This is a clone of CompositingReasons and WebCompositingReasons from Blink.
     13 const uint64 kCompositingReasonUnknown = 0;
     14 const uint64 kCompositingReason3DTransform = GG_UINT64_C(1) << 0;
     15 const uint64 kCompositingReasonVideo = GG_UINT64_C(1) << 1;
     16 const uint64 kCompositingReasonCanvas = GG_UINT64_C(1) << 2;
     17 const uint64 kCompositingReasonPlugin = GG_UINT64_C(1) << 3;
     18 const uint64 kCompositingReasonIFrame = GG_UINT64_C(1) << 4;
     19 const uint64 kCompositingReasonBackfaceVisibilityHidden = GG_UINT64_C(1) << 5;
     20 const uint64 kCompositingReasonAnimation = GG_UINT64_C(1) << 6;
     21 const uint64 kCompositingReasonFilters = GG_UINT64_C(1) << 7;
     22 const uint64 kCompositingReasonPositionFixed = GG_UINT64_C(1) << 8;
     23 const uint64 kCompositingReasonPositionSticky = GG_UINT64_C(1) << 9;
     24 const uint64 kCompositingReasonOverflowScrollingTouch = GG_UINT64_C(1) << 10;
     25 const uint64 kCompositingReasonBlending = GG_UINT64_C(1) << 11;
     26 const uint64 kCompositingReasonAssumedOverlap = GG_UINT64_C(1) << 12;
     27 const uint64 kCompositingReasonOverlap = GG_UINT64_C(1) << 13;
     28 const uint64 kCompositingReasonNegativeZIndexChildren = GG_UINT64_C(1) << 14;
     29 const uint64 kCompositingReasonTransformWithCompositedDescendants =
     30     GG_UINT64_C(1) << 15;
     31 const uint64 kCompositingReasonOpacityWithCompositedDescendants =
     32     GG_UINT64_C(1) << 16;
     33 const uint64 kCompositingReasonMaskWithCompositedDescendants =
     34     GG_UINT64_C(1) << 17;
     35 const uint64 kCompositingReasonReflectionWithCompositedDescendants =
     36     GG_UINT64_C(1) << 18;
     37 const uint64 kCompositingReasonFilterWithCompositedDescendants =
     38     GG_UINT64_C(1) << 19;
     39 const uint64 kCompositingReasonBlendingWithCompositedDescendants =
     40     GG_UINT64_C(1) << 20;
     41 const uint64 kCompositingReasonClipsCompositingDescendants =
     42     GG_UINT64_C(1) << 21;
     43 const uint64 kCompositingReasonPerspective = GG_UINT64_C(1) << 22;
     44 const uint64 kCompositingReasonPreserve3D = GG_UINT64_C(1) << 23;
     45 const uint64 kCompositingReasonReflectionOfCompositedParent =
     46     GG_UINT64_C(1) << 24;
     47 const uint64 kCompositingReasonRoot = GG_UINT64_C(1) << 25;
     48 const uint64 kCompositingReasonLayerForClip = GG_UINT64_C(1) << 26;
     49 const uint64 kCompositingReasonLayerForScrollbar = GG_UINT64_C(1) << 27;
     50 const uint64 kCompositingReasonLayerForScrollingContainer =
     51     GG_UINT64_C(1) << 28;
     52 const uint64 kCompositingReasonLayerForForeground = GG_UINT64_C(1) << 29;
     53 const uint64 kCompositingReasonLayerForBackground = GG_UINT64_C(1) << 30;
     54 const uint64 kCompositingReasonLayerForMask = GG_UINT64_C(1) << 31;
     55 
     56 typedef uint64 CompositingReasons;
     57 
     58 }  // namespace cc
     59 
     60 #endif  // CC_LAYERS_COMPOSITING_REASONS_H_
     61