| 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( | 368 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( |
| 369 ContentLayerClient::PaintingControlSetting painting_control) override; | 369 ContentLayerClient::PaintingControlSetting painting_control) override; |
| 370 bool FillsBoundsCompletely() const override; | 370 bool FillsBoundsCompletely() const override; |
| 371 size_t GetApproximateUnsharedMemoryUsage() const override; | 371 size_t GetApproximateUnsharedMemoryUsage() const override; |
| 372 | 372 |
| 373 cc::Layer* cc_layer_for_testing() { return cc_layer_; } | 373 cc::Layer* cc_layer_for_testing() { return cc_layer_; } |
| 374 | 374 |
| 375 // TextureLayerClient | 375 // TextureLayerClient |
| 376 bool PrepareTextureMailbox( | 376 bool PrepareTextureMailbox( |
| 377 cc::TextureMailbox* mailbox, | 377 cc::TextureMailbox* mailbox, |
| 378 std::unique_ptr<cc::SingleReleaseCallback>* release_callback, | 378 std::unique_ptr<cc::SingleReleaseCallback>* release_callback) override; |
| 379 bool use_shared_memory) override; | |
| 380 | 379 |
| 381 float device_scale_factor() const { return device_scale_factor_; } | 380 float device_scale_factor() const { return device_scale_factor_; } |
| 382 | 381 |
| 383 // LayerClient | 382 // LayerClient |
| 384 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo( | 383 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo( |
| 385 cc::Layer* layer) override; | 384 cc::Layer* layer) override; |
| 386 void didUpdateMainThreadScrollingReasons() override; | 385 void didUpdateMainThreadScrollingReasons() override; |
| 387 | 386 |
| 388 // Whether this layer has animations waiting to get sent to its cc::Layer. | 387 // Whether this layer has animations waiting to get sent to its cc::Layer. |
| 389 bool HasPendingThreadedAnimationsForTesting() const; | 388 bool HasPendingThreadedAnimationsForTesting() const; |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 // The texture scale. | 540 // The texture scale. |
| 542 float texture_x_scale_; | 541 float texture_x_scale_; |
| 543 float texture_y_scale_; | 542 float texture_y_scale_; |
| 544 | 543 |
| 545 DISALLOW_COPY_AND_ASSIGN(Layer); | 544 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 546 }; | 545 }; |
| 547 | 546 |
| 548 } // namespace ui | 547 } // namespace ui |
| 549 | 548 |
| 550 #endif // UI_COMPOSITOR_LAYER_H_ | 549 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |