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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
308 void set_scale_content(bool scale_content) { scale_content_ = scale_content; } | 308 void set_scale_content(bool scale_content) { scale_content_ = scale_content; } |
309 | 309 |
310 // Returns true if the layer scales its content. | 310 // Returns true if the layer scales its content. |
311 bool scale_content() const { return scale_content_; } | 311 bool scale_content() const { return scale_content_; } |
312 | 312 |
313 // Requets a copy of the layer's output as a texture or bitmap. | 313 // Requets a copy of the layer's output as a texture or bitmap. |
314 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); | 314 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request); |
315 | 315 |
316 // ContentLayerClient | 316 // ContentLayerClient |
317 virtual void PaintContents( | 317 virtual void PaintContents( |
318 SkCanvas* canvas, const gfx::Rect& clip, gfx::RectF* opaque) OVERRIDE; | 318 SkCanvas* canvas, |
319 const gfx::Rect& clip, | |
320 gfx::RectF* opaque, | |
321 ContentLayerClient::GraphicsContextStatus) OVERRIDE; | |
danakj
2014/05/01 17:07:11
needs a var name also
Stephen Chennney
2014/05/01 19:12:26
Done.
| |
319 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} | 322 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} |
320 virtual bool FillsBoundsCompletely() const OVERRIDE; | 323 virtual bool FillsBoundsCompletely() const OVERRIDE; |
321 | 324 |
322 cc::Layer* cc_layer() { return cc_layer_; } | 325 cc::Layer* cc_layer() { return cc_layer_; } |
323 | 326 |
324 // TextureLayerClient | 327 // TextureLayerClient |
325 virtual bool PrepareTextureMailbox( | 328 virtual bool PrepareTextureMailbox( |
326 cc::TextureMailbox* mailbox, | 329 cc::TextureMailbox* mailbox, |
327 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 330 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
328 bool use_shared_memory) OVERRIDE; | 331 bool use_shared_memory) OVERRIDE; |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
490 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 493 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
491 // or SetTextureMailbox was called. | 494 // or SetTextureMailbox was called. |
492 gfx::Size frame_size_in_dip_; | 495 gfx::Size frame_size_in_dip_; |
493 | 496 |
494 DISALLOW_COPY_AND_ASSIGN(Layer); | 497 DISALLOW_COPY_AND_ASSIGN(Layer); |
495 }; | 498 }; |
496 | 499 |
497 } // namespace ui | 500 } // namespace ui |
498 | 501 |
499 #endif // UI_COMPOSITOR_LAYER_H_ | 502 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |