| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 bool use_shared_memory) override; | 357 bool use_shared_memory) override; |
| 358 | 358 |
| 359 float device_scale_factor() const { return device_scale_factor_; } | 359 float device_scale_factor() const { return device_scale_factor_; } |
| 360 | 360 |
| 361 // Forces a render surface to be used on this layer. This has no positive | 361 // Forces a render surface to be used on this layer. This has no positive |
| 362 // impact, and is only used for benchmarking/testing purpose. | 362 // impact, and is only used for benchmarking/testing purpose. |
| 363 void SetForceRenderSurface(bool force); | 363 void SetForceRenderSurface(bool force); |
| 364 bool force_render_surface() const { return force_render_surface_; } | 364 bool force_render_surface() const { return force_render_surface_; } |
| 365 | 365 |
| 366 // LayerClient | 366 // LayerClient |
| 367 scoped_refptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo( | 367 scoped_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo( |
| 368 cc::Layer* layer) override; | 368 cc::Layer* layer) override; |
| 369 | 369 |
| 370 // Whether this layer has animations waiting to get sent to its cc::Layer. | 370 // Whether this layer has animations waiting to get sent to its cc::Layer. |
| 371 bool HasPendingThreadedAnimationsForTesting() const; | 371 bool HasPendingThreadedAnimationsForTesting() const; |
| 372 | 372 |
| 373 // Triggers a call to SwitchToLayer. | 373 // Triggers a call to SwitchToLayer. |
| 374 void SwitchCCLayerForTest(); | 374 void SwitchCCLayerForTest(); |
| 375 | 375 |
| 376 private: | 376 private: |
| 377 friend class LayerOwner; | 377 friend class LayerOwner; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 524 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
| 525 // or SetTextureMailbox was called. | 525 // or SetTextureMailbox was called. |
| 526 gfx::Size frame_size_in_dip_; | 526 gfx::Size frame_size_in_dip_; |
| 527 | 527 |
| 528 DISALLOW_COPY_AND_ASSIGN(Layer); | 528 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 529 }; | 529 }; |
| 530 | 530 |
| 531 } // namespace ui | 531 } // namespace ui |
| 532 | 532 |
| 533 #endif // UI_COMPOSITOR_LAYER_H_ | 533 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |