mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This caused us to lose our gn check certification. :( Turns out gn check was just ignoring all the header paths it didn't understand and so gn check passing for sky wasn't meaning much. I tried to straighten out some of the mess in this CL, but its going to take several more rounds of massaging before gn check passes again. On the bright side (almost) all of our headers are absolute now. Turns out my script (attached to the bug) didn't notice ../ includes but I'll fix that in the next patch. R=abarth@chromium.org BUG=435361 Review URL: https://codereview.chromium.org/746023002
144 lines
6.7 KiB
C++
144 lines
6.7 KiB
C++
// Copyright 2014 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.
|
|
|
|
#include "sky/engine/config.h"
|
|
#include "sky/engine/platform/graphics/CompositingReasons.h"
|
|
|
|
#include "sky/engine/wtf/StdLibExtras.h"
|
|
|
|
namespace blink {
|
|
|
|
const CompositingReasonStringMap kCompositingReasonStringMap[] = {
|
|
{ CompositingReasonNone,
|
|
"Unknown",
|
|
"No reason given" },
|
|
{ CompositingReason3DTransform,
|
|
"transform3D",
|
|
"Has a 3d transform" },
|
|
{ CompositingReasonVideo,
|
|
"video",
|
|
"Is an accelerated video" },
|
|
{ CompositingReasonCanvas,
|
|
"canvas",
|
|
"Is an accelerated canvas" },
|
|
{ CompositingReasonIFrame,
|
|
"iFrame",
|
|
"Is an accelerated iFrame" },
|
|
{ CompositingReasonBackfaceVisibilityHidden,
|
|
"backfaceVisibilityHidden",
|
|
"Has backface-visibility: hidden" },
|
|
{ CompositingReasonActiveAnimation,
|
|
"activeAnimation",
|
|
"Has an active accelerated animation or transition" },
|
|
{ CompositingReasonTransitionProperty,
|
|
"transitionProperty",
|
|
"Has an acceleratable transition property (active or inactive)" },
|
|
{ CompositingReasonOverflowScrollingTouch,
|
|
"overflowScrollingTouch",
|
|
"Is a scrollable overflow element" },
|
|
{ CompositingReasonOverflowScrollingParent,
|
|
"overflowScrollingParent",
|
|
"Scroll parent is not an ancestor" },
|
|
{ CompositingReasonOutOfFlowClipping,
|
|
"outOfFlowClipping",
|
|
"Has clipping ancestor" },
|
|
{ CompositingReasonWillChangeCompositingHint,
|
|
"willChange",
|
|
"Has a will-change compositing hint" },
|
|
{ CompositingReasonAssumedOverlap,
|
|
"assumedOverlap",
|
|
"Might overlap other composited content" },
|
|
{ CompositingReasonOverlap,
|
|
"overlap",
|
|
"Overlaps other composited content" },
|
|
{ CompositingReasonNegativeZIndexChildren,
|
|
"negativeZIndexChildren",
|
|
"Parent with composited negative z-index content" },
|
|
{ CompositingReasonScrollsWithRespectToSquashingLayer,
|
|
"scrollsWithRespectToSquashingLayer",
|
|
"Cannot be squashed since this layer scrolls with respect to the squashing layer" },
|
|
{ CompositingReasonSquashingClippingContainerMismatch,
|
|
"squashingClippingContainerMismatch",
|
|
"Cannot be squashed because this layer has a different clipping container than the squashing layer" },
|
|
{ CompositingReasonSquashingOpacityAncestorMismatch,
|
|
"squashingOpacityAncestorMismatch",
|
|
"Cannot be squashed because this layer has a different opacity ancestor than the squashing layer" },
|
|
{ CompositingReasonSquashingTransformAncestorMismatch,
|
|
"squashingTransformAncestorMismatch",
|
|
"Cannot be squashed because this layer has a different transform ancestor than the squashing layer" },
|
|
{ CompositingReasonSquashingFilterAncestorMismatch,
|
|
"squashingFilterAncestorMismatch",
|
|
"Cannot be squashed because this layer has a different filter ancestor than the squashing layer" },
|
|
{ CompositingReasonSquashingWouldBreakPaintOrder,
|
|
"squashingWouldBreakPaintOrder",
|
|
"Cannot be squashed without breaking paint order" },
|
|
{ CompositingReasonSquashingVideoIsDisallowed,
|
|
"squashingVideoIsDisallowed",
|
|
"Squashing video is not supported" },
|
|
{ CompositingReasonSquashedLayerClipsCompositingDescendants,
|
|
"squashedLayerClipsCompositingDescendants",
|
|
"Squashing a layer that clips composited descendants is not supported." },
|
|
{ CompositingReasonTransformWithCompositedDescendants,
|
|
"transformWithCompositedDescendants",
|
|
"Has a transform that needs to be known by compositor because of composited descendants" },
|
|
{ CompositingReasonOpacityWithCompositedDescendants,
|
|
"opacityWithCompositedDescendants",
|
|
"Has opacity that needs to be applied by compositor because of composited descendants" },
|
|
{ CompositingReasonMaskWithCompositedDescendants,
|
|
"maskWithCompositedDescendants",
|
|
"Has a mask that needs to be known by compositor because of composited descendants" },
|
|
{ CompositingReasonFilterWithCompositedDescendants,
|
|
"filterWithCompositedDescendants",
|
|
"Has a filter effect that needs to be known by compositor because of composited descendants" },
|
|
{ CompositingReasonClipsCompositingDescendants,
|
|
"clipsCompositingDescendants",
|
|
"Has a clip that needs to be known by compositor because of composited descendants" },
|
|
{ CompositingReasonPerspectiveWith3DDescendants,
|
|
"perspectiveWith3DDescendants",
|
|
"Has a perspective transform that needs to be known by compositor because of 3d descendants" },
|
|
{ CompositingReasonPreserve3DWith3DDescendants,
|
|
"preserve3DWith3DDescendants",
|
|
"Has a preserves-3d property that needs to be known by compositor because of 3d descendants" },
|
|
{ CompositingReasonRoot,
|
|
"root",
|
|
"Is the root layer" },
|
|
{ CompositingReasonLayerForAncestorClip,
|
|
"layerForAncestorClip",
|
|
"Secondary layer, applies a clip due to a sibling in the compositing tree" },
|
|
{ CompositingReasonLayerForDescendantClip,
|
|
"layerForDescendantClip",
|
|
"Secondary layer, to clip descendants of the owning layer" },
|
|
{ CompositingReasonLayerForPerspective,
|
|
"layerForPerspective",
|
|
"Secondary layer, to house the perspective transform for all descendants" },
|
|
{ CompositingReasonLayerForOverflowControlsHost,
|
|
"layerForOverflowControlsHost",
|
|
"Secondary layer, the overflow controls host layer" },
|
|
{ CompositingReasonLayerForSquashingContents,
|
|
"layerForSquashingContents",
|
|
"Secondary layer, home for a group of squashable content" },
|
|
{ CompositingReasonLayerForSquashingContainer,
|
|
"layerForSquashingContainer",
|
|
"Secondary layer, no-op layer to place the squashing layer correctly in the composited layer tree" },
|
|
{ CompositingReasonLayerForForeground,
|
|
"layerForForeground",
|
|
"Secondary layer, to contain any normal flow and positive z-index contents on top of a negative z-index layer" },
|
|
{ CompositingReasonLayerForBackground,
|
|
"layerForBackground",
|
|
"Secondary layer, to contain acceleratable background content" },
|
|
{ CompositingReasonLayerForMask,
|
|
"layerForMask",
|
|
"Secondary layer, to contain the mask contents" },
|
|
{ CompositingReasonLayerForClippingMask,
|
|
"layerForClippingMask",
|
|
"Secondary layer, for clipping mask" },
|
|
{ CompositingReasonInlineTransform,
|
|
"inlineTransform",
|
|
"Has an inline transform, which causes subsequent layers to assume overlap" },
|
|
};
|
|
|
|
size_t kNumberOfCompositingReasons = WTF_ARRAY_LENGTH(kCompositingReasonStringMap);
|
|
|
|
} // namespace blink
|