| 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 // delegated frame. | 333 // delegated frame. |
| 334 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip); | 334 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip); |
| 335 | 335 |
| 336 // Requets a copy of the layer's output as a texture or bitmap. | 336 // Requets a copy of the layer's output as a texture or bitmap. |
| 337 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); | 337 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); |
| 338 | 338 |
| 339 // ContentLayerClient | 339 // ContentLayerClient |
| 340 void PaintContents( | 340 void PaintContents( |
| 341 SkCanvas* canvas, | 341 SkCanvas* canvas, |
| 342 const gfx::Rect& clip, | 342 const gfx::Rect& clip, |
| 343 ContentLayerClient::GraphicsContextStatus gc_status) override; | 343 ContentLayerClient::PaintingControlSetting painting_control) override; |
| 344 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( | 344 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( |
| 345 const gfx::Rect& clip, | 345 const gfx::Rect& clip, |
| 346 GraphicsContextStatus gc_status) override; | 346 ContentLayerClient::PaintingControlSetting painting_control) override; |
| 347 bool FillsBoundsCompletely() const override; | 347 bool FillsBoundsCompletely() const override; |
| 348 | 348 |
| 349 cc::Layer* cc_layer() { return cc_layer_; } | 349 cc::Layer* cc_layer() { return cc_layer_; } |
| 350 | 350 |
| 351 // TextureLayerClient | 351 // TextureLayerClient |
| 352 bool PrepareTextureMailbox( | 352 bool PrepareTextureMailbox( |
| 353 cc::TextureMailbox* mailbox, | 353 cc::TextureMailbox* mailbox, |
| 354 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 354 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
| 355 bool use_shared_memory) override; | 355 bool use_shared_memory) override; |
| 356 | 356 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 521 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
| 522 // or SetTextureMailbox was called. | 522 // or SetTextureMailbox was called. |
| 523 gfx::Size frame_size_in_dip_; | 523 gfx::Size frame_size_in_dip_; |
| 524 | 524 |
| 525 DISALLOW_COPY_AND_ASSIGN(Layer); | 525 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 526 }; | 526 }; |
| 527 | 527 |
| 528 } // namespace ui | 528 } // namespace ui |
| 529 | 529 |
| 530 #endif // UI_COMPOSITOR_LAYER_H_ | 530 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |