Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 GraphicsLayerPaintChildClippingMask = (1 << 5), | 45 GraphicsLayerPaintChildClippingMask = (1 << 5), |
| 46 GraphicsLayerPaintAllWithOverflowClip = | 46 GraphicsLayerPaintAllWithOverflowClip = |
| 47 (GraphicsLayerPaintBackground | GraphicsLayerPaintForeground | | 47 (GraphicsLayerPaintBackground | GraphicsLayerPaintForeground | |
| 48 GraphicsLayerPaintMask) | 48 GraphicsLayerPaintMask) |
| 49 }; | 49 }; |
| 50 typedef unsigned GraphicsLayerPaintingPhase; | 50 typedef unsigned GraphicsLayerPaintingPhase; |
| 51 | 51 |
| 52 enum { | 52 enum { |
| 53 LayerTreeNormal = 0, | 53 LayerTreeNormal = 0, |
| 54 LayerTreeIncludesDebugInfo = | 54 LayerTreeIncludesDebugInfo = |
| 55 1 << 0, // Dump extra debugging info like layer addresses. | 55 1 << 0, // Dump extra debugging info like layer addresses. |
|
dcheng
2016/10/05 21:18:31
I guess this got wrapped during the mega reformat,
Nico
2016/10/05 21:23:01
Done.
| |
| 56 LayerTreeIncludesPaintInvalidations = 1 << 1, | 56 LayerTreeIncludesPaintInvalidations = 1 << 1, |
| 57 LayerTreeIncludesPaintingPhases = 1 << 2, | 57 LayerTreeIncludesPaintingPhases = 1 << 2, |
| 58 LayerTreeIncludesRootLayer = 1 << 3, | 58 LayerTreeIncludesRootLayer = 1 << 3, |
| 59 LayerTreeIncludesClipAndScrollParents = 1 << 4, | 59 LayerTreeIncludesClipAndScrollParents = 1 << 4, |
| 60 LayerTreeIncludesCompositingReasons = 1 << 5, | 60 LayerTreeIncludesCompositingReasons = 1 << 5, |
| 61 OutputChildrenAsLayerList = | 61 OutputChildrenAsLayerList = 1 << 6, // Outputs all children of the given |
| 62 1 | 62 // layer as a layer list, in paint order. |
| 63 << 6, // Outputs all children of the given layer as a layer list, in pain t order. | |
| 64 }; | 63 }; |
| 65 typedef unsigned LayerTreeFlags; | 64 typedef unsigned LayerTreeFlags; |
| 66 | 65 |
| 67 class PLATFORM_EXPORT GraphicsLayerClient { | 66 class PLATFORM_EXPORT GraphicsLayerClient { |
| 68 public: | 67 public: |
| 69 virtual ~GraphicsLayerClient() {} | 68 virtual ~GraphicsLayerClient() {} |
| 70 | 69 |
| 71 virtual void invalidateTargetElementForTesting() {} | 70 virtual void invalidateTargetElementForTesting() {} |
| 72 virtual void notifyPaint(bool isFirstPaint, | 71 virtual void notifyPaint(bool isFirstPaint, |
| 73 bool textPainted, | 72 bool textPainted, |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 95 // This is executed in GraphicsLayer construction and destruction | 94 // This is executed in GraphicsLayer construction and destruction |
| 96 // to verify that we don't create or destroy GraphicsLayers | 95 // to verify that we don't create or destroy GraphicsLayers |
| 97 // while painting. | 96 // while painting. |
| 98 virtual void verifyNotPainting() {} | 97 virtual void verifyNotPainting() {} |
| 99 #endif | 98 #endif |
| 100 }; | 99 }; |
| 101 | 100 |
| 102 } // namespace blink | 101 } // namespace blink |
| 103 | 102 |
| 104 #endif // GraphicsLayerClient_h | 103 #endif // GraphicsLayerClient_h |
| OLD | NEW |