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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 AnimatedPropertyWebkitTransform, | 50 AnimatedPropertyWebkitTransform, |
51 AnimatedPropertyOpacity, | 51 AnimatedPropertyOpacity, |
52 AnimatedPropertyBackgroundColor, | 52 AnimatedPropertyBackgroundColor, |
53 AnimatedPropertyWebkitFilter | 53 AnimatedPropertyWebkitFilter |
54 }; | 54 }; |
55 | 55 |
56 enum { | 56 enum { |
57 LayerTreeNormal = 0, | 57 LayerTreeNormal = 0, |
58 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer
addresses. | 58 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer
addresses. |
59 LayerTreeIncludesRepaintRects = 1 << 1, | 59 LayerTreeIncludesRepaintRects = 1 << 1, |
60 LayerTreeIncludesPaintingPhases = 1 << 2 | 60 LayerTreeIncludesPaintingPhases = 1 << 2, |
| 61 LayerTreeIncludesRootLayer = 1 << 3 |
61 }; | 62 }; |
62 typedef unsigned LayerTreeFlags; | 63 typedef unsigned LayerTreeFlags; |
63 | 64 |
64 class GraphicsLayerClient { | 65 class GraphicsLayerClient { |
65 public: | 66 public: |
66 virtual ~GraphicsLayerClient() {} | 67 virtual ~GraphicsLayerClient() {} |
67 | 68 |
68 // Callback for when hardware-accelerated animation started. | 69 // Callback for when hardware-accelerated animation started. |
69 virtual void notifyAnimationStarted(const GraphicsLayer*, double time) = 0; | 70 virtual void notifyAnimationStarted(const GraphicsLayer*, double time) = 0; |
70 | 71 |
(...skipping 12 matching lines...) Expand all Loading... |
83 // This is executed in GraphicsLayer construction and destruction | 84 // This is executed in GraphicsLayer construction and destruction |
84 // to verify that we don't create or destroy GraphicsLayers | 85 // to verify that we don't create or destroy GraphicsLayers |
85 // while painting. | 86 // while painting. |
86 virtual void verifyNotPainting() { } | 87 virtual void verifyNotPainting() { } |
87 #endif | 88 #endif |
88 }; | 89 }; |
89 | 90 |
90 } // namespace WebCore | 91 } // namespace WebCore |
91 | 92 |
92 #endif // GraphicsLayerClient_h | 93 #endif // GraphicsLayerClient_h |
OLD | NEW |