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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 typedef unsigned GraphicsLayerPaintingPhase; | 48 typedef unsigned GraphicsLayerPaintingPhase; |
49 | 49 |
50 enum { | 50 enum { |
51 LayerTreeNormal = 0, | 51 LayerTreeNormal = 0, |
52 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer
addresses. | 52 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer
addresses. |
53 LayerTreeIncludesPaintInvalidations = 1 << 1, | 53 LayerTreeIncludesPaintInvalidations = 1 << 1, |
54 LayerTreeIncludesPaintingPhases = 1 << 2, | 54 LayerTreeIncludesPaintingPhases = 1 << 2, |
55 LayerTreeIncludesRootLayer = 1 << 3, | 55 LayerTreeIncludesRootLayer = 1 << 3, |
56 LayerTreeIncludesClipAndScrollParents = 1 << 4, | 56 LayerTreeIncludesClipAndScrollParents = 1 << 4, |
57 LayerTreeIncludesCompositingReasons = 1 << 5, | 57 LayerTreeIncludesCompositingReasons = 1 << 5, |
| 58 OutputChildrenAsLayerList = 1 << 6, // Outputs all children of the given lay
er as a layer list, in paint order. |
58 }; | 59 }; |
59 typedef unsigned LayerTreeFlags; | 60 typedef unsigned LayerTreeFlags; |
60 | 61 |
61 class PLATFORM_EXPORT GraphicsLayerClient { | 62 class PLATFORM_EXPORT GraphicsLayerClient { |
62 public: | 63 public: |
63 virtual ~GraphicsLayerClient() {} | 64 virtual ~GraphicsLayerClient() {} |
64 | 65 |
65 virtual void notifyPaint(bool isFirstPaint, bool textPainted, bool imagePain
ted) { } | 66 virtual void notifyPaint(bool isFirstPaint, bool textPainted, bool imagePain
ted) { } |
66 | 67 |
67 virtual IntRect computeInterestRect(const GraphicsLayer*, const IntRect& pre
viousInterestRect) const = 0; | 68 virtual IntRect computeInterestRect(const GraphicsLayer*, const IntRect& pre
viousInterestRect) const = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
80 // This is executed in GraphicsLayer construction and destruction | 81 // This is executed in GraphicsLayer construction and destruction |
81 // to verify that we don't create or destroy GraphicsLayers | 82 // to verify that we don't create or destroy GraphicsLayers |
82 // while painting. | 83 // while painting. |
83 virtual void verifyNotPainting() { } | 84 virtual void verifyNotPainting() { } |
84 #endif | 85 #endif |
85 }; | 86 }; |
86 | 87 |
87 } // namespace blink | 88 } // namespace blink |
88 | 89 |
89 #endif // GraphicsLayerClient_h | 90 #endif // GraphicsLayerClient_h |
OLD | NEW |