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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 // ContentLayerClient | 313 // ContentLayerClient |
314 virtual void PaintContents( | 314 virtual void PaintContents( |
315 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE; | 315 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE; |
316 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} | 316 virtual void DidChangeLayerCanUseLCDText() OVERRIDE {} |
317 | 317 |
318 cc::Layer* cc_layer() { return cc_layer_; } | 318 cc::Layer* cc_layer() { return cc_layer_; } |
319 | 319 |
320 // TextureLayerClient | 320 // TextureLayerClient |
321 virtual unsigned PrepareTexture(cc::ResourceUpdateQueue* queue) OVERRIDE; | 321 virtual unsigned PrepareTexture(cc::ResourceUpdateQueue* queue) OVERRIDE; |
322 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE; | 322 virtual WebKit::WebGraphicsContext3D* Context3d() OVERRIDE; |
323 virtual bool PrepareTextureMailbox(cc::TextureMailbox* mailbox) OVERRIDE; | 323 virtual bool PrepareTextureMailbox(cc::TextureMailbox* mailbox, |
| 324 bool use_shared_memory) OVERRIDE; |
324 | 325 |
325 float device_scale_factor() const { return device_scale_factor_; } | 326 float device_scale_factor() const { return device_scale_factor_; } |
326 | 327 |
327 // Forces a render surface to be used on this layer. This has no positive | 328 // Forces a render surface to be used on this layer. This has no positive |
328 // impact, and is only used for benchmarking/testing purpose. | 329 // impact, and is only used for benchmarking/testing purpose. |
329 void SetForceRenderSurface(bool force); | 330 void SetForceRenderSurface(bool force); |
330 bool force_render_surface() const { return force_render_surface_; } | 331 bool force_render_surface() const { return force_render_surface_; } |
331 | 332 |
332 // LayerAnimationEventObserver | 333 // LayerAnimationEventObserver |
333 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; | 334 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 // The size of the delegated frame in DIP, set when SetDelegatedFrame was | 486 // The size of the delegated frame in DIP, set when SetDelegatedFrame was |
486 // called. | 487 // called. |
487 gfx::Size delegated_frame_size_in_dip_; | 488 gfx::Size delegated_frame_size_in_dip_; |
488 | 489 |
489 DISALLOW_COPY_AND_ASSIGN(Layer); | 490 DISALLOW_COPY_AND_ASSIGN(Layer); |
490 }; | 491 }; |
491 | 492 |
492 } // namespace ui | 493 } // namespace ui |
493 | 494 |
494 #endif // UI_COMPOSITOR_LAYER_H_ | 495 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |