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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 bool use_shared_memory) override; | 362 bool use_shared_memory) override; |
363 | 363 |
364 float device_scale_factor() const { return device_scale_factor_; } | 364 float device_scale_factor() const { return device_scale_factor_; } |
365 | 365 |
366 // Forces a render surface to be used on this layer. This has no positive | 366 // Forces a render surface to be used on this layer. This has no positive |
367 // impact, and is only used for benchmarking/testing purpose. | 367 // impact, and is only used for benchmarking/testing purpose. |
368 void SetForceRenderSurface(bool force); | 368 void SetForceRenderSurface(bool force); |
369 bool force_render_surface() const { return force_render_surface_; } | 369 bool force_render_surface() const { return force_render_surface_; } |
370 | 370 |
371 // LayerClient | 371 // LayerClient |
372 scoped_refptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo() | 372 scoped_refptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo( |
373 override; | 373 cc::Layer* layer) override; |
374 | 374 |
375 // LayerAnimationEventObserver | 375 // LayerAnimationEventObserver |
376 void OnAnimationStarted(const cc::AnimationEvent& event) override; | 376 void OnAnimationStarted(const cc::AnimationEvent& event) override; |
377 | 377 |
378 // Whether this layer has animations waiting to get sent to its cc::Layer. | 378 // Whether this layer has animations waiting to get sent to its cc::Layer. |
379 bool HasPendingThreadedAnimations() { | 379 bool HasPendingThreadedAnimations() { |
380 return pending_threaded_animations_.size() != 0; | 380 return pending_threaded_animations_.size() != 0; |
381 } | 381 } |
382 | 382 |
383 // Triggers a call to SwitchToLayer. | 383 // Triggers a call to SwitchToLayer. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 534 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
535 // or SetTextureMailbox was called. | 535 // or SetTextureMailbox was called. |
536 gfx::Size frame_size_in_dip_; | 536 gfx::Size frame_size_in_dip_; |
537 | 537 |
538 DISALLOW_COPY_AND_ASSIGN(Layer); | 538 DISALLOW_COPY_AND_ASSIGN(Layer); |
539 }; | 539 }; |
540 | 540 |
541 } // namespace ui | 541 } // namespace ui |
542 | 542 |
543 #endif // UI_COMPOSITOR_LAYER_H_ | 543 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |