| 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 // delegated frame. | 323 // delegated frame. |
| 324 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip); | 324 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip); |
| 325 | 325 |
| 326 // Requets a copy of the layer's output as a texture or bitmap. | 326 // Requets a copy of the layer's output as a texture or bitmap. |
| 327 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); | 327 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); |
| 328 | 328 |
| 329 // ContentLayerClient | 329 // ContentLayerClient |
| 330 virtual void PaintContents( | 330 virtual void PaintContents( |
| 331 SkCanvas* canvas, | 331 SkCanvas* canvas, |
| 332 const gfx::Rect& clip, | 332 const gfx::Rect& clip, |
| 333 gfx::RectF* opaque, | |
| 334 ContentLayerClient::GraphicsContextStatus gc_status) OVERRIDE; | 333 ContentLayerClient::GraphicsContextStatus gc_status) OVERRIDE; |
| 335 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} | 334 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} |
| 336 virtual bool FillsBoundsCompletely() const OVERRIDE; | 335 virtual bool FillsBoundsCompletely() const OVERRIDE; |
| 337 | 336 |
| 338 cc::Layer* cc_layer() { return cc_layer_; } | 337 cc::Layer* cc_layer() { return cc_layer_; } |
| 339 | 338 |
| 340 // TextureLayerClient | 339 // TextureLayerClient |
| 341 virtual bool PrepareTextureMailbox( | 340 virtual bool PrepareTextureMailbox( |
| 342 cc::TextureMailbox* mailbox, | 341 cc::TextureMailbox* mailbox, |
| 343 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 342 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 512 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
| 514 // or SetTextureMailbox was called. | 513 // or SetTextureMailbox was called. |
| 515 gfx::Size frame_size_in_dip_; | 514 gfx::Size frame_size_in_dip_; |
| 516 | 515 |
| 517 DISALLOW_COPY_AND_ASSIGN(Layer); | 516 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 518 }; | 517 }; |
| 519 | 518 |
| 520 } // namespace ui | 519 } // namespace ui |
| 521 | 520 |
| 522 #endif // UI_COMPOSITOR_LAYER_H_ | 521 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |