| 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 bool use_shared_memory) override; | 355 bool use_shared_memory) override; |
| 356 | 356 |
| 357 float device_scale_factor() const { return device_scale_factor_; } | 357 float device_scale_factor() const { return device_scale_factor_; } |
| 358 | 358 |
| 359 // Forces a render surface to be used on this layer. This has no positive | 359 // Forces a render surface to be used on this layer. This has no positive |
| 360 // impact, and is only used for benchmarking/testing purpose. | 360 // impact, and is only used for benchmarking/testing purpose. |
| 361 void SetForceRenderSurface(bool force); | 361 void SetForceRenderSurface(bool force); |
| 362 bool force_render_surface() const { return force_render_surface_; } | 362 bool force_render_surface() const { return force_render_surface_; } |
| 363 | 363 |
| 364 // LayerClient | 364 // LayerClient |
| 365 scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo() override; | 365 scoped_refptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo() |
| 366 override; |
| 366 | 367 |
| 367 // LayerAnimationEventObserver | 368 // LayerAnimationEventObserver |
| 368 void OnAnimationStarted(const cc::AnimationEvent& event) override; | 369 void OnAnimationStarted(const cc::AnimationEvent& event) override; |
| 369 | 370 |
| 370 // Whether this layer has animations waiting to get sent to its cc::Layer. | 371 // Whether this layer has animations waiting to get sent to its cc::Layer. |
| 371 bool HasPendingThreadedAnimations() { | 372 bool HasPendingThreadedAnimations() { |
| 372 return pending_threaded_animations_.size() != 0; | 373 return pending_threaded_animations_.size() != 0; |
| 373 } | 374 } |
| 374 | 375 |
| 375 // Triggers a call to SwitchToLayer. | 376 // Triggers a call to SwitchToLayer. |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 522 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
| 522 // or SetTextureMailbox was called. | 523 // or SetTextureMailbox was called. |
| 523 gfx::Size frame_size_in_dip_; | 524 gfx::Size frame_size_in_dip_; |
| 524 | 525 |
| 525 DISALLOW_COPY_AND_ASSIGN(Layer); | 526 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 526 }; | 527 }; |
| 527 | 528 |
| 528 } // namespace ui | 529 } // namespace ui |
| 529 | 530 |
| 530 #endif // UI_COMPOSITOR_LAYER_H_ | 531 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |