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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 // not apply to the canvas passed to the pending draw. | 307 // not apply to the canvas passed to the pending draw. |
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(SkCanvas* canvas, |
318 SkCanvas* canvas, const gfx::Rect& clip, gfx::RectF* opaque) OVERRIDE; | 318 const gfx::Rect& clip, |
| 319 gfx::RectF* opaque, |
| 320 bool disableContext) OVERRIDE; |
319 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} | 321 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} |
320 virtual bool FillsBoundsCompletely() const OVERRIDE; | 322 virtual bool FillsBoundsCompletely() const OVERRIDE; |
321 | 323 |
322 cc::Layer* cc_layer() { return cc_layer_; } | 324 cc::Layer* cc_layer() { return cc_layer_; } |
323 | 325 |
324 // TextureLayerClient | 326 // TextureLayerClient |
325 virtual bool PrepareTextureMailbox( | 327 virtual bool PrepareTextureMailbox( |
326 cc::TextureMailbox* mailbox, | 328 cc::TextureMailbox* mailbox, |
327 scoped_ptr<cc::SingleReleaseCallback>* release_callback, | 329 scoped_ptr<cc::SingleReleaseCallback>* release_callback, |
328 bool use_shared_memory) OVERRIDE; | 330 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 | 492 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
491 // or SetTextureMailbox was called. | 493 // or SetTextureMailbox was called. |
492 gfx::Size frame_size_in_dip_; | 494 gfx::Size frame_size_in_dip_; |
493 | 495 |
494 DISALLOW_COPY_AND_ASSIGN(Layer); | 496 DISALLOW_COPY_AND_ASSIGN(Layer); |
495 }; | 497 }; |
496 | 498 |
497 } // namespace ui | 499 } // namespace ui |
498 | 500 |
499 #endif // UI_COMPOSITOR_LAYER_H_ | 501 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |