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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 // ContentLayerClient | 305 // ContentLayerClient |
306 virtual void PaintContents( | 306 virtual void PaintContents( |
307 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE; | 307 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE; |
308 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} | 308 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} |
309 | 309 |
310 cc::Layer* cc_layer() { return cc_layer_; } | 310 cc::Layer* cc_layer() { return cc_layer_; } |
311 | 311 |
312 // TextureLayerClient | 312 // TextureLayerClient |
313 virtual unsigned PrepareTexture(cc::ResourceUpdateQueue* queue) OVERRIDE; | 313 virtual unsigned PrepareTexture(cc::ResourceUpdateQueue* queue) OVERRIDE; |
314 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE; | 314 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE; |
315 virtual bool PrepareTextureMailbox(cc::TextureMailbox* mailbox) OVERRIDE; | 315 virtual bool PrepareTextureMailbox(cc::TextureMailbox* mailbox, |
| 316 bool use_shared_memory) OVERRIDE; |
316 | 317 |
317 float device_scale_factor() const { return device_scale_factor_; } | 318 float device_scale_factor() const { return device_scale_factor_; } |
318 | 319 |
319 // Forces a render surface to be used on this layer. This has no positive | 320 // Forces a render surface to be used on this layer. This has no positive |
320 // impact, and is only used for benchmarking/testing purpose. | 321 // impact, and is only used for benchmarking/testing purpose. |
321 void SetForceRenderSurface(bool force); | 322 void SetForceRenderSurface(bool force); |
322 bool force_render_surface() const { return force_render_surface_; } | 323 bool force_render_surface() const { return force_render_surface_; } |
323 | 324 |
324 // LayerAnimationEventObserver | 325 // LayerAnimationEventObserver |
325 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; | 326 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 // The size of the delegated frame in DIP, set when SetDelegatedFrame was | 478 // The size of the delegated frame in DIP, set when SetDelegatedFrame was |
478 // called. | 479 // called. |
479 gfx::Size delegated_frame_size_in_dip_; | 480 gfx::Size delegated_frame_size_in_dip_; |
480 | 481 |
481 DISALLOW_COPY_AND_ASSIGN(Layer); | 482 DISALLOW_COPY_AND_ASSIGN(Layer); |
482 }; | 483 }; |
483 | 484 |
484 } // namespace ui | 485 } // namespace ui |
485 | 486 |
486 #endif // UI_COMPOSITOR_LAYER_H_ | 487 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |