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 {} | |
343 bool FillsBoundsCompletely() const override; | 342 bool FillsBoundsCompletely() const override; |
344 | 343 |
345 cc::Layer* cc_layer() { return cc_layer_; } | 344 cc::Layer* cc_layer() { return cc_layer_; } |
346 | 345 |
347 // TextureLayerClient | 346 // TextureLayerClient |
348 bool PrepareTextureMailbox( | 347 bool PrepareTextureMailbox( |
349 cc::TextureMailbox* mailbox, | 348 cc::TextureMailbox* mailbox, |
350 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 349 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
351 bool use_shared_memory) override; | 350 bool use_shared_memory) override; |
352 | 351 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 516 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
518 // or SetTextureMailbox was called. | 517 // or SetTextureMailbox was called. |
519 gfx::Size frame_size_in_dip_; | 518 gfx::Size frame_size_in_dip_; |
520 | 519 |
521 DISALLOW_COPY_AND_ASSIGN(Layer); | 520 DISALLOW_COPY_AND_ASSIGN(Layer); |
522 }; | 521 }; |
523 | 522 |
524 } // namespace ui | 523 } // namespace ui |
525 | 524 |
526 #endif // UI_COMPOSITOR_LAYER_H_ | 525 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |