OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GFX_COMPOSITOR_LAYER_H_ | 5 #ifndef UI_GFX_COMPOSITOR_LAYER_H_ |
6 #define UI_GFX_COMPOSITOR_LAYER_H_ | 6 #define UI_GFX_COMPOSITOR_LAYER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 void ScheduleDraw(); | 172 void ScheduleDraw(); |
173 | 173 |
174 // Does drawing for the layer. | 174 // Does drawing for the layer. |
175 void Draw(); | 175 void Draw(); |
176 | 176 |
177 // Draws a tree of Layers, by calling Draw() on each in the hierarchy starting | 177 // Draws a tree of Layers, by calling Draw() on each in the hierarchy starting |
178 // with the receiver. | 178 // with the receiver. |
179 void DrawTree(); | 179 void DrawTree(); |
180 | 180 |
181 // Sometimes the Layer is being updated by something other than SetCanvas | 181 // Sometimes the Layer is being updated by something other than SetCanvas |
182 // (e.g. the GPU process on TOUCH_UI). | 182 // (e.g. the GPU process on UI_COMPOSITOR_IMAGE_TRANSPORT). |
183 bool layer_updated_externally() const { return layer_updated_externally_; } | 183 bool layer_updated_externally() const { return layer_updated_externally_; } |
184 | 184 |
185 // WebLayerClient | 185 // WebLayerClient |
186 virtual void notifyNeedsComposite(); | 186 virtual void notifyNeedsComposite(); |
187 | 187 |
188 // WebContentLayerClient | 188 // WebContentLayerClient |
189 virtual void paintContents(WebKit::WebCanvas*, const WebKit::WebRect& clip); | 189 virtual void paintContents(WebKit::WebCanvas*, const WebKit::WebRect& clip); |
190 | 190 |
191 #if defined(USE_WEBKIT_COMPOSITOR) | 191 #if defined(USE_WEBKIT_COMPOSITOR) |
192 WebKit::WebLayer web_layer() { return web_layer_; } | 192 WebKit::WebLayer web_layer() { return web_layer_; } |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 WebKit::WebLayer web_layer_; | 333 WebKit::WebLayer web_layer_; |
334 bool web_layer_is_accelerated_; | 334 bool web_layer_is_accelerated_; |
335 #endif | 335 #endif |
336 | 336 |
337 DISALLOW_COPY_AND_ASSIGN(Layer); | 337 DISALLOW_COPY_AND_ASSIGN(Layer); |
338 }; | 338 }; |
339 | 339 |
340 } // namespace ui | 340 } // namespace ui |
341 | 341 |
342 #endif // UI_GFX_COMPOSITOR_LAYER_H_ | 342 #endif // UI_GFX_COMPOSITOR_LAYER_H_ |
OLD | NEW |