OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMPOSITOR_LAYER_H_ | 5 #ifndef UI_COMPOSITOR_LAYER_H_ |
6 #define UI_COMPOSITOR_LAYER_H_ | 6 #define UI_COMPOSITOR_LAYER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 // Notifies the layer that the device scale factor has changed. | 293 // Notifies the layer that the device scale factor has changed. |
294 void OnDeviceScaleFactorChanged(float device_scale_factor); | 294 void OnDeviceScaleFactorChanged(float device_scale_factor); |
295 | 295 |
296 // Requets a copy of the layer's output as a texture or bitmap. | 296 // Requets a copy of the layer's output as a texture or bitmap. |
297 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); | 297 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); |
298 | 298 |
299 // ContentLayerClient | 299 // ContentLayerClient |
300 virtual void PaintContents( | 300 virtual void PaintContents( |
301 SkCanvas* canvas, | 301 SkCanvas* canvas, |
302 const gfx::Rect& clip, | 302 const gfx::Rect& clip, |
| 303 bool can_paint_lcd_text, |
303 gfx::RectF* opaque, | 304 gfx::RectF* opaque, |
304 ContentLayerClient::GraphicsContextStatus gc_status) OVERRIDE; | 305 ContentLayerClient::GraphicsContextStatus gc_status) OVERRIDE; |
305 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} | 306 virtual bool PaintsLCDText() const OVERRIDE; |
306 virtual bool FillsBoundsCompletely() const OVERRIDE; | 307 virtual bool FillsBoundsCompletely() const OVERRIDE; |
307 | 308 |
308 cc::Layer* cc_layer() { return cc_layer_; } | 309 cc::Layer* cc_layer() { return cc_layer_; } |
309 | 310 |
310 // TextureLayerClient | 311 // TextureLayerClient |
311 virtual bool PrepareTextureMailbox( | 312 virtual bool PrepareTextureMailbox( |
312 cc::TextureMailbox* mailbox, | 313 cc::TextureMailbox* mailbox, |
313 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 314 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
314 bool use_shared_memory) OVERRIDE; | 315 bool use_shared_memory) OVERRIDE; |
315 | 316 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 472 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
472 // or SetTextureMailbox was called. | 473 // or SetTextureMailbox was called. |
473 gfx::Size frame_size_in_dip_; | 474 gfx::Size frame_size_in_dip_; |
474 | 475 |
475 DISALLOW_COPY_AND_ASSIGN(Layer); | 476 DISALLOW_COPY_AND_ASSIGN(Layer); |
476 }; | 477 }; |
477 | 478 |
478 } // namespace ui | 479 } // namespace ui |
479 | 480 |
480 #endif // UI_COMPOSITOR_LAYER_H_ | 481 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |