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