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