| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 // (e.g. the GPU process on UI_COMPOSITOR_IMAGE_TRANSPORT). | 291 // (e.g. the GPU process on UI_COMPOSITOR_IMAGE_TRANSPORT). |
| 292 bool layer_updated_externally() const { return layer_updated_externally_; } | 292 bool layer_updated_externally() const { return layer_updated_externally_; } |
| 293 | 293 |
| 294 // ContentLayerClient | 294 // ContentLayerClient |
| 295 virtual void PaintContents( | 295 virtual void PaintContents( |
| 296 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE; | 296 SkCanvas* canvas, gfx::Rect clip, gfx::RectF* opaque) OVERRIDE; |
| 297 | 297 |
| 298 cc::Layer* cc_layer() { return cc_layer_; } | 298 cc::Layer* cc_layer() { return cc_layer_; } |
| 299 | 299 |
| 300 // TextureLayerClient | 300 // TextureLayerClient |
| 301 virtual unsigned prepareTexture(cc::ResourceUpdateQueue&) OVERRIDE; | 301 virtual unsigned PrepareTexture(cc::ResourceUpdateQueue* queue) OVERRIDE; |
| 302 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE; | 302 virtual WebKit::WebGraphicsContext3D* Context() OVERRIDE; |
| 303 | 303 |
| 304 float device_scale_factor() const { return device_scale_factor_; } | 304 float device_scale_factor() const { return device_scale_factor_; } |
| 305 | 305 |
| 306 // Forces a render surface to be used on this layer. This has no positive | 306 // Forces a render surface to be used on this layer. This has no positive |
| 307 // impact, and is only used for benchmarking/testing purpose. | 307 // impact, and is only used for benchmarking/testing purpose. |
| 308 void SetForceRenderSurface(bool force); | 308 void SetForceRenderSurface(bool force); |
| 309 bool force_render_surface() const { return force_render_surface_; } | 309 bool force_render_surface() const { return force_render_surface_; } |
| 310 | 310 |
| 311 // LayerAnimationEventObserver | 311 // LayerAnimationEventObserver |
| 312 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; | 312 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 // The size of the delegated frame in DIP, set when SetDelegatedFrame was | 463 // The size of the delegated frame in DIP, set when SetDelegatedFrame was |
| 464 // called. | 464 // called. |
| 465 gfx::Size delegated_frame_size_in_dip_; | 465 gfx::Size delegated_frame_size_in_dip_; |
| 466 | 466 |
| 467 DISALLOW_COPY_AND_ASSIGN(Layer); | 467 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 468 }; | 468 }; |
| 469 | 469 |
| 470 } // namespace ui | 470 } // namespace ui |
| 471 | 471 |
| 472 #endif // UI_COMPOSITOR_LAYER_H_ | 472 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |