| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 // Notifies the layer that the device scale factor has changed. | 295 // Notifies the layer that the device scale factor has changed. |
| 296 void OnDeviceScaleFactorChanged(float device_scale_factor); | 296 void OnDeviceScaleFactorChanged(float device_scale_factor); |
| 297 | 297 |
| 298 // Requets a copy of the layer's output as a texture or bitmap. | 298 // Requets a copy of the layer's output as a texture or bitmap. |
| 299 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); | 299 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); |
| 300 | 300 |
| 301 // ContentLayerClient | 301 // ContentLayerClient |
| 302 virtual void PaintContents( | 302 virtual void PaintContents( |
| 303 SkCanvas* canvas, | 303 SkCanvas* canvas, |
| 304 const gfx::Rect& clip, | 304 const gfx::Rect& clip, |
| 305 bool can_paint_lcd_text, |
| 305 gfx::RectF* opaque, | 306 gfx::RectF* opaque, |
| 306 ContentLayerClient::GraphicsContextStatus gc_status) OVERRIDE; | 307 ContentLayerClient::GraphicsContextStatus gc_status) OVERRIDE; |
| 307 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} | 308 virtual bool PaintsLCDText() const OVERRIDE; |
| 308 virtual bool FillsBoundsCompletely() const OVERRIDE; | 309 virtual bool FillsBoundsCompletely() const OVERRIDE; |
| 309 | 310 |
| 310 cc::Layer* cc_layer() { return cc_layer_; } | 311 cc::Layer* cc_layer() { return cc_layer_; } |
| 311 | 312 |
| 312 // TextureLayerClient | 313 // TextureLayerClient |
| 313 virtual bool PrepareTextureMailbox( | 314 virtual bool PrepareTextureMailbox( |
| 314 cc::TextureMailbox* mailbox, | 315 cc::TextureMailbox* mailbox, |
| 315 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 316 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
| 316 bool use_shared_memory) OVERRIDE; | 317 bool use_shared_memory) OVERRIDE; |
| 317 | 318 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 483 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
| 483 // or SetTextureMailbox was called. | 484 // or SetTextureMailbox was called. |
| 484 gfx::Size frame_size_in_dip_; | 485 gfx::Size frame_size_in_dip_; |
| 485 | 486 |
| 486 DISALLOW_COPY_AND_ASSIGN(Layer); | 487 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 487 }; | 488 }; |
| 488 | 489 |
| 489 } // namespace ui | 490 } // namespace ui |
| 490 | 491 |
| 491 #endif // UI_COMPOSITOR_LAYER_H_ | 492 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |