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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 float device_scale_factor() const { return device_scale_factor_; } | 329 float device_scale_factor() const { return device_scale_factor_; } |
330 | 330 |
331 // Forces a render surface to be used on this layer. This has no positive | 331 // Forces a render surface to be used on this layer. This has no positive |
332 // impact, and is only used for benchmarking/testing purpose. | 332 // impact, and is only used for benchmarking/testing purpose. |
333 void SetForceRenderSurface(bool force); | 333 void SetForceRenderSurface(bool force); |
334 bool force_render_surface() const { return force_render_surface_; } | 334 bool force_render_surface() const { return force_render_surface_; } |
335 | 335 |
336 // LayerClient | 336 // LayerClient |
337 virtual std::string DebugName() OVERRIDE; | 337 virtual std::string DebugName() OVERRIDE; |
338 | 338 |
| 339 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> |
| 340 TakeDebugInfo() OVERRIDE; |
| 341 |
339 // LayerAnimationEventObserver | 342 // LayerAnimationEventObserver |
340 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; | 343 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; |
341 | 344 |
342 // Whether this layer has animations waiting to get sent to its cc::Layer. | 345 // Whether this layer has animations waiting to get sent to its cc::Layer. |
343 bool HasPendingThreadedAnimations() { | 346 bool HasPendingThreadedAnimations() { |
344 return pending_threaded_animations_.size() != 0; | 347 return pending_threaded_animations_.size() != 0; |
345 } | 348 } |
346 | 349 |
347 // Triggers a call to SwitchToLayer. | 350 // Triggers a call to SwitchToLayer. |
348 void SwitchCCLayerForTest(); | 351 void SwitchCCLayerForTest(); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 // The size of the delegated frame in DIP, set when SetShowDelegatedContent | 495 // The size of the delegated frame in DIP, set when SetShowDelegatedContent |
493 // was called. | 496 // was called. |
494 gfx::Size delegated_frame_size_in_dip_; | 497 gfx::Size delegated_frame_size_in_dip_; |
495 | 498 |
496 DISALLOW_COPY_AND_ASSIGN(Layer); | 499 DISALLOW_COPY_AND_ASSIGN(Layer); |
497 }; | 500 }; |
498 | 501 |
499 } // namespace ui | 502 } // namespace ui |
500 | 503 |
501 #endif // UI_COMPOSITOR_LAYER_H_ | 504 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |