OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 virtual void finishAllRendering() = 0; | 115 virtual void finishAllRendering() = 0; |
116 | 116 |
117 // Prevents updates to layer tree from becoming visible. | 117 // Prevents updates to layer tree from becoming visible. |
118 virtual void setDeferCommits(bool deferCommits) { } | 118 virtual void setDeferCommits(bool deferCommits) { } |
119 | 119 |
120 // Take responsiblity for this layer's animations, even if this layer hasn't
yet | 120 // Take responsiblity for this layer's animations, even if this layer hasn't
yet |
121 // been added to the tree. | 121 // been added to the tree. |
122 virtual void registerForAnimations(WebLayer* layer) { } | 122 virtual void registerForAnimations(WebLayer* layer) { } |
123 | 123 |
124 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. | 124 // Identify key layers to the compositor when using the pinch virtual viewpo
rt. |
125 virtual void registerPinchViewportLayers( | 125 virtual void registerViewportLayers( |
126 const WebLayer* innerViewportContainerLayer, | |
127 const WebLayer* pageScaleLayerLayer, | 126 const WebLayer* pageScaleLayerLayer, |
128 const WebLayer* innerViewportScrollLayer, | 127 const WebLayer* innerViewportScrollLayer, |
129 const WebLayer* outerViewportScrollLayer, | 128 const WebLayer* outerViewportScrollLayer) { } |
130 const WebLayer* innerViewportHorizontalScrollbarLayer, | 129 virtual void clearViewportLayers() { } |
131 const WebLayer* innerViewportVerticalScrollbarLayer) { } | |
132 virtual void clearPinchViewportLayers() { } | |
133 | 130 |
134 // Debugging / dangerous --------------------------------------------- | 131 // Debugging / dangerous --------------------------------------------- |
135 | 132 |
136 // Toggles the FPS counter in the HUD layer | 133 // Toggles the FPS counter in the HUD layer |
137 virtual void setShowFPSCounter(bool) { } | 134 virtual void setShowFPSCounter(bool) { } |
138 | 135 |
139 // Toggles the paint rects in the HUD layer | 136 // Toggles the paint rects in the HUD layer |
140 virtual void setShowPaintRects(bool) { } | 137 virtual void setShowPaintRects(bool) { } |
141 | 138 |
142 // Toggles the debug borders on layers | 139 // Toggles the debug borders on layers |
143 virtual void setShowDebugBorders(bool) { } | 140 virtual void setShowDebugBorders(bool) { } |
144 | 141 |
145 // Toggles continuous painting | 142 // Toggles continuous painting |
146 virtual void setContinuousPaintingEnabled(bool) { } | 143 virtual void setContinuousPaintingEnabled(bool) { } |
147 | 144 |
148 // Toggles scroll bottleneck rects on the HUD layer | 145 // Toggles scroll bottleneck rects on the HUD layer |
149 virtual void setShowScrollBottleneckRects(bool) { } | 146 virtual void setShowScrollBottleneckRects(bool) { } |
150 }; | 147 }; |
151 | 148 |
152 } // namespace WebKit | 149 } // namespace WebKit |
153 | 150 |
154 #endif // WebLayerTreeView_h | 151 #endif // WebLayerTreeView_h |
OLD | NEW |