| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 CC_LAYERS_LAYER_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 // TODO(chrishtr): Blink no longer resizes anything during paint. We can | 334 // TODO(chrishtr): Blink no longer resizes anything during paint. We can |
| 335 // remove this. | 335 // remove this. |
| 336 virtual void SavePaintProperties(); | 336 virtual void SavePaintProperties(); |
| 337 // Returns true iff anything was updated that needs to be committed. | 337 // Returns true iff anything was updated that needs to be committed. |
| 338 virtual bool Update(); | 338 virtual bool Update(); |
| 339 virtual void SetIsMask(bool is_mask) {} | 339 virtual void SetIsMask(bool is_mask) {} |
| 340 virtual bool IsSuitableForGpuRasterization() const; | 340 virtual bool IsSuitableForGpuRasterization() const; |
| 341 | 341 |
| 342 virtual std::unique_ptr<base::trace_event::ConvertableToTraceFormat> | 342 virtual std::unique_ptr<base::trace_event::ConvertableToTraceFormat> |
| 343 TakeDebugInfo(); | 343 TakeDebugInfo(); |
| 344 virtual void didUpdateMainThreadScrollingReasons(); |
| 344 | 345 |
| 345 void SetLayerClient(LayerClient* client) { inputs_.client = client; } | 346 void SetLayerClient(LayerClient* client) { inputs_.client = client; } |
| 346 | 347 |
| 347 virtual void PushPropertiesTo(LayerImpl* layer); | 348 virtual void PushPropertiesTo(LayerImpl* layer); |
| 348 | 349 |
| 349 // Sets the type proto::LayerType that should be used for serialization | 350 // Sets the type proto::LayerType that should be used for serialization |
| 350 // of the current layer by calling LayerNode::set_type(proto::LayerType). | 351 // of the current layer by calling LayerNode::set_type(proto::LayerType). |
| 351 // TODO(nyquist): Start using a forward declared enum class when | 352 // TODO(nyquist): Start using a forward declared enum class when |
| 352 // https://github.com/google/protobuf/issues/67 has been fixed and rolled in. | 353 // https://github.com/google/protobuf/issues/67 has been fixed and rolled in. |
| 353 // This function would preferably instead return a proto::LayerType, but | 354 // This function would preferably instead return a proto::LayerType, but |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 // These all act like draw properties, so don't need push properties. | 719 // These all act like draw properties, so don't need push properties. |
| 719 gfx::Rect visible_layer_rect_; | 720 gfx::Rect visible_layer_rect_; |
| 720 size_t num_unclipped_descendants_; | 721 size_t num_unclipped_descendants_; |
| 721 | 722 |
| 722 DISALLOW_COPY_AND_ASSIGN(Layer); | 723 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 723 }; | 724 }; |
| 724 | 725 |
| 725 } // namespace cc | 726 } // namespace cc |
| 726 | 727 |
| 727 #endif // CC_LAYERS_LAYER_H_ | 728 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |