summaryrefslogtreecommitdiff
path: root/chromium/third_party/WebKit/Source/platform/graphics/SquashingDisallowedReasons.h
blob: 70b346c4fa59a4cff84ff01305093054c4bb71a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SquashingDisallowedReasons_h
#define SquashingDisallowedReasons_h

#include <stdint.h>
#include "platform/PlatformExport.h"
#include "platform/wtf/Allocator.h"

namespace blink {

enum SquashingDisallowedReason {
  kSquashingDisallowedReasonsNone = 0,
  kSquashingDisallowedReasonScrollsWithRespectToSquashingLayer = 1 << 0,
  kSquashingDisallowedReasonSquashingSparsityExceeded = 1 << 1,
  kSquashingDisallowedReasonClippingContainerMismatch = 1 << 2,
  kSquashingDisallowedReasonOpacityAncestorMismatch = 1 << 3,
  kSquashingDisallowedReasonTransformAncestorMismatch = 1 << 4,
  kSquashingDisallowedReasonFilterMismatch = 1 << 5,
  kSquashingDisallowedReasonWouldBreakPaintOrder = 1 << 6,
  kSquashingDisallowedReasonSquashingVideoIsDisallowed = 1 << 7,
  kSquashingDisallowedReasonSquashedLayerClipsCompositingDescendants = 1 << 8,
  kSquashingDisallowedReasonSquashingLayoutEmbeddedContentIsDisallowed = 1 << 9,
  kSquashingDisallowedReasonSquashingBlendingIsDisallowed = 1 << 10,
  kSquashingDisallowedReasonNearestFixedPositionMismatch = 1 << 11,
  kSquashingDisallowedReasonScrollChildWithCompositedDescendants = 1 << 12,
  kSquashingDisallowedReasonSquashingLayerIsAnimating = 1 << 13,
  kSquashingDisallowedReasonRenderingContextMismatch = 1 << 14,
  kSquashingDisallowedReasonFragmentedContent = 1 << 15,
};

typedef unsigned SquashingDisallowedReasons;

struct SquashingDisallowedReasonStringMap {
  STACK_ALLOCATED();
  SquashingDisallowedReasons reason;
  const char* short_name;
  const char* description;
};

PLATFORM_EXPORT extern const SquashingDisallowedReasonStringMap
    kSquashingDisallowedReasonStringMap[];
PLATFORM_EXPORT extern const size_t kNumberOfSquashingDisallowedReasons;

}  // namespace blink

#endif  // SquashingDisallowedReasons_h