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