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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // object alive until it is called. | 114 // object alive until it is called. |
115 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { } | 115 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback*
) { } |
116 | 116 |
117 // Blocks until the most recently composited frame has finished rendering on
the GPU. | 117 // Blocks until the most recently composited frame has finished rendering on
the GPU. |
118 // This can have a significant performance impact and should be used with ca
re. | 118 // This can have a significant performance impact and should be used with ca
re. |
119 virtual void finishAllRendering() = 0; | 119 virtual void finishAllRendering() = 0; |
120 | 120 |
121 // Prevents updates to layer tree from becoming visible. | 121 // Prevents updates to layer tree from becoming visible. |
122 virtual void setDeferCommits(bool deferCommits) { } | 122 virtual void setDeferCommits(bool deferCommits) { } |
123 | 123 |
124 // Take responsiblity for this layer's animations, even if this layer hasn't
yet | |
125 // been added to the tree. | |
126 virtual void registerForAnimations(WebLayer* layer) { } | |
127 | |
128 // 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. |
129 virtual void registerViewportLayers( | 125 virtual void registerViewportLayers( |
130 const WebLayer* overscrollElasticityLayer, | 126 const WebLayer* overscrollElasticityLayer, |
131 const WebLayer* pageScaleLayer, | 127 const WebLayer* pageScaleLayer, |
132 const WebLayer* innerViewportScrollLayer, | 128 const WebLayer* innerViewportScrollLayer, |
133 const WebLayer* outerViewportScrollLayer) { } | 129 const WebLayer* outerViewportScrollLayer) { } |
134 virtual void clearViewportLayers() { } | 130 virtual void clearViewportLayers() { } |
135 | 131 |
136 // Used to update the active selection bounds. | 132 // Used to update the active selection bounds. |
137 // FIXME: Remove this overload when downstream consumers have been updated t
o use WebSelection, crbug.com/466672. | 133 // FIXME: Remove this overload when downstream consumers have been updated t
o use WebSelection, crbug.com/466672. |
(...skipping 17 matching lines...) Expand all Loading... |
155 // Toggles continuous painting | 151 // Toggles continuous painting |
156 virtual void setContinuousPaintingEnabled(bool) { } | 152 virtual void setContinuousPaintingEnabled(bool) { } |
157 | 153 |
158 // Toggles scroll bottleneck rects on the HUD layer | 154 // Toggles scroll bottleneck rects on the HUD layer |
159 virtual void setShowScrollBottleneckRects(bool) { } | 155 virtual void setShowScrollBottleneckRects(bool) { } |
160 }; | 156 }; |
161 | 157 |
162 } // namespace blink | 158 } // namespace blink |
163 | 159 |
164 #endif // WebLayerTreeView_h | 160 #endif // WebLayerTreeView_h |
OLD | NEW |