| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_TREES_LAYER_TREE_HOST_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 // Deserializes the protobuf into this LayerTreeHost before a commit. The | 239 // Deserializes the protobuf into this LayerTreeHost before a commit. The |
| 240 // expected input is a serialized remote LayerTreeHost. After deserializing | 240 // expected input is a serialized remote LayerTreeHost. After deserializing |
| 241 // the protobuf, the normal commit-flow should continue. | 241 // the protobuf, the normal commit-flow should continue. |
| 242 void FromProtobufForCommit(const proto::LayerTreeHost& proto); | 242 void FromProtobufForCommit(const proto::LayerTreeHost& proto); |
| 243 | 243 |
| 244 bool IsSingleThreaded() const; | 244 bool IsSingleThreaded() const; |
| 245 bool IsThreaded() const; | 245 bool IsThreaded() const; |
| 246 bool IsRemoteServer() const; | 246 bool IsRemoteServer() const; |
| 247 bool IsRemoteClient() const; | 247 bool IsRemoteClient() const; |
| 248 void BuildPropertyTreesForTesting(); | |
| 249 | 248 |
| 250 ImageSerializationProcessor* image_serialization_processor() const { | 249 ImageSerializationProcessor* image_serialization_processor() const { |
| 251 return image_serialization_processor_; | 250 return image_serialization_processor_; |
| 252 } | 251 } |
| 253 | 252 |
| 254 EnginePictureCache* engine_picture_cache() const { | 253 EnginePictureCache* engine_picture_cache() const { |
| 255 return engine_picture_cache_ ? engine_picture_cache_.get() : nullptr; | 254 return engine_picture_cache_ ? engine_picture_cache_.get() : nullptr; |
| 256 } | 255 } |
| 257 | 256 |
| 258 ClientPictureCache* client_picture_cache() const { | 257 ClientPictureCache* client_picture_cache() const { |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 383 |
| 385 SurfaceSequenceGenerator surface_sequence_generator_; | 384 SurfaceSequenceGenerator surface_sequence_generator_; |
| 386 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; | 385 uint32_t num_consecutive_frames_suitable_for_gpu_ = 0; |
| 387 | 386 |
| 388 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 387 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 389 }; | 388 }; |
| 390 | 389 |
| 391 } // namespace cc | 390 } // namespace cc |
| 392 | 391 |
| 393 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 392 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |