| 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 <memory> | 10 #include <memory> |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 bool PrepareTextureMailbox( | 365 bool PrepareTextureMailbox( |
| 366 cc::TextureMailbox* mailbox, | 366 cc::TextureMailbox* mailbox, |
| 367 std::unique_ptr<cc::SingleReleaseCallback>* release_callback, | 367 std::unique_ptr<cc::SingleReleaseCallback>* release_callback, |
| 368 bool use_shared_memory) override; | 368 bool use_shared_memory) override; |
| 369 | 369 |
| 370 float device_scale_factor() const { return device_scale_factor_; } | 370 float device_scale_factor() const { return device_scale_factor_; } |
| 371 | 371 |
| 372 // LayerClient | 372 // LayerClient |
| 373 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo( | 373 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo( |
| 374 cc::Layer* layer) override; | 374 cc::Layer* layer) override; |
| 375 void didUpdateMainThreadScrollingReasons() override; |
| 375 | 376 |
| 376 // Whether this layer has animations waiting to get sent to its cc::Layer. | 377 // Whether this layer has animations waiting to get sent to its cc::Layer. |
| 377 bool HasPendingThreadedAnimationsForTesting() const; | 378 bool HasPendingThreadedAnimationsForTesting() const; |
| 378 | 379 |
| 379 // Triggers a call to SwitchToLayer. | 380 // Triggers a call to SwitchToLayer. |
| 380 void SwitchCCLayerForTest(); | 381 void SwitchCCLayerForTest(); |
| 381 | 382 |
| 382 const cc::Region& damaged_region_for_testing() const { | 383 const cc::Region& damaged_region_for_testing() const { |
| 383 return damaged_region_; | 384 return damaged_region_; |
| 384 } | 385 } |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 // The texture scale. | 530 // The texture scale. |
| 530 float texture_x_scale_; | 531 float texture_x_scale_; |
| 531 float texture_y_scale_; | 532 float texture_y_scale_; |
| 532 | 533 |
| 533 DISALLOW_COPY_AND_ASSIGN(Layer); | 534 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 534 }; | 535 }; |
| 535 | 536 |
| 536 } // namespace ui | 537 } // namespace ui |
| 537 | 538 |
| 538 #endif // UI_COMPOSITOR_LAYER_H_ | 539 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |