| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 | 357 |
| 358 // This methods typically need to be overwritten by derived classes. | 358 // This methods typically need to be overwritten by derived classes. |
| 359 // TODO(chrishtr): Blink no longer resizes anything during paint. We can | 359 // TODO(chrishtr): Blink no longer resizes anything during paint. We can |
| 360 // remove this. | 360 // remove this. |
| 361 virtual void SavePaintProperties(); | 361 virtual void SavePaintProperties(); |
| 362 // Returns true iff anything was updated that needs to be committed. | 362 // Returns true iff anything was updated that needs to be committed. |
| 363 virtual bool Update(); | 363 virtual bool Update(); |
| 364 virtual void SetIsMask(bool is_mask) {} | 364 virtual void SetIsMask(bool is_mask) {} |
| 365 virtual bool IsSuitableForGpuRasterization() const; | 365 virtual bool IsSuitableForGpuRasterization() const; |
| 366 | 366 |
| 367 virtual scoped_refptr<base::trace_event::ConvertableToTraceFormat> | 367 virtual scoped_ptr<base::trace_event::ConvertableToTraceFormat> |
| 368 TakeDebugInfo(); | 368 TakeDebugInfo(); |
| 369 | 369 |
| 370 void SetLayerClient(LayerClient* client) { client_ = client; } | 370 void SetLayerClient(LayerClient* client) { client_ = client; } |
| 371 | 371 |
| 372 virtual void PushPropertiesTo(LayerImpl* layer); | 372 virtual void PushPropertiesTo(LayerImpl* layer); |
| 373 | 373 |
| 374 // Sets the type proto::LayerType that should be used for serialization | 374 // Sets the type proto::LayerType that should be used for serialization |
| 375 // of the current layer by calling LayerNode::set_type(proto::LayerType). | 375 // of the current layer by calling LayerNode::set_type(proto::LayerType). |
| 376 // TODO(nyquist): Start using a forward declared enum class when | 376 // TODO(nyquist): Start using a forward declared enum class when |
| 377 // https://github.com/google/protobuf/issues/67 has been fixed and rolled in. | 377 // https://github.com/google/protobuf/issues/67 has been fixed and rolled in. |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 | 788 |
| 789 std::vector<FrameTimingRequest> frame_timing_requests_; | 789 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 790 bool frame_timing_requests_dirty_; | 790 bool frame_timing_requests_dirty_; |
| 791 | 791 |
| 792 DISALLOW_COPY_AND_ASSIGN(Layer); | 792 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 793 }; | 793 }; |
| 794 | 794 |
| 795 } // namespace cc | 795 } // namespace cc |
| 796 | 796 |
| 797 #endif // CC_LAYERS_LAYER_H_ | 797 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |