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