| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 bool use_shared_memory) OVERRIDE; | 343 bool use_shared_memory) OVERRIDE; |
| 344 | 344 |
| 345 float device_scale_factor() const { return device_scale_factor_; } | 345 float device_scale_factor() const { return device_scale_factor_; } |
| 346 | 346 |
| 347 // Forces a render surface to be used on this layer. This has no positive | 347 // Forces a render surface to be used on this layer. This has no positive |
| 348 // impact, and is only used for benchmarking/testing purpose. | 348 // impact, and is only used for benchmarking/testing purpose. |
| 349 void SetForceRenderSurface(bool force); | 349 void SetForceRenderSurface(bool force); |
| 350 bool force_render_surface() const { return force_render_surface_; } | 350 bool force_render_surface() const { return force_render_surface_; } |
| 351 | 351 |
| 352 // LayerClient | 352 // LayerClient |
| 353 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> | 353 virtual scoped_refptr<cc::LayerDebugInfo> TakeDebugInfo() OVERRIDE; |
| 354 TakeDebugInfo() OVERRIDE; | |
| 355 | 354 |
| 356 // LayerAnimationEventObserver | 355 // LayerAnimationEventObserver |
| 357 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; | 356 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; |
| 358 | 357 |
| 359 // Whether this layer has animations waiting to get sent to its cc::Layer. | 358 // Whether this layer has animations waiting to get sent to its cc::Layer. |
| 360 bool HasPendingThreadedAnimations() { | 359 bool HasPendingThreadedAnimations() { |
| 361 return pending_threaded_animations_.size() != 0; | 360 return pending_threaded_animations_.size() != 0; |
| 362 } | 361 } |
| 363 | 362 |
| 364 // Triggers a call to SwitchToLayer. | 363 // Triggers a call to SwitchToLayer. |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 511 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
| 513 // or SetTextureMailbox was called. | 512 // or SetTextureMailbox was called. |
| 514 gfx::Size frame_size_in_dip_; | 513 gfx::Size frame_size_in_dip_; |
| 515 | 514 |
| 516 DISALLOW_COPY_AND_ASSIGN(Layer); | 515 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 517 }; | 516 }; |
| 518 | 517 |
| 519 } // namespace ui | 518 } // namespace ui |
| 520 | 519 |
| 521 #endif // UI_COMPOSITOR_LAYER_H_ | 520 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |