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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 bool AnimationStartScale(const Layer* layer, float* start_scale) const; | 396 bool AnimationStartScale(const Layer* layer, float* start_scale) const; |
397 bool HasAnyAnimationTargetingProperty(const Layer* layer, | 397 bool HasAnyAnimationTargetingProperty(const Layer* layer, |
398 TargetProperty::Type property) const; | 398 TargetProperty::Type property) const; |
399 bool AnimationsPreserveAxisAlignment(const Layer* layer) const; | 399 bool AnimationsPreserveAxisAlignment(const Layer* layer) const; |
400 bool HasAnyAnimation(const Layer* layer) const; | 400 bool HasAnyAnimation(const Layer* layer) const; |
401 bool HasActiveAnimationForTesting(const Layer* layer) const; | 401 bool HasActiveAnimationForTesting(const Layer* layer) const; |
402 | 402 |
403 // Serializes the parts of this LayerTreeHost that is needed for a commit to a | 403 // Serializes the parts of this LayerTreeHost that is needed for a commit to a |
404 // protobuf message. Not all members are serialized as they are not helpful | 404 // protobuf message. Not all members are serialized as they are not helpful |
405 // for remote usage. | 405 // for remote usage. |
406 void ToProtobufForCommit(proto::LayerTreeHost* proto); | 406 // The |swap_promise_list_| is transferred to the serializer in |
| 407 // |swap_promises|. |
| 408 void ToProtobufForCommit( |
| 409 proto::LayerTreeHost* proto, |
| 410 std::vector<std::unique_ptr<SwapPromise>>* swap_promises); |
407 | 411 |
408 // Deserializes the protobuf into this LayerTreeHost before a commit. The | 412 // Deserializes the protobuf into this LayerTreeHost before a commit. The |
409 // expected input is a serialized remote LayerTreeHost. After deserializing | 413 // expected input is a serialized remote LayerTreeHost. After deserializing |
410 // the protobuf, the normal commit-flow should continue. | 414 // the protobuf, the normal commit-flow should continue. |
411 void FromProtobufForCommit(const proto::LayerTreeHost& proto); | 415 void FromProtobufForCommit(const proto::LayerTreeHost& proto); |
412 | 416 |
413 bool IsSingleThreaded() const; | 417 bool IsSingleThreaded() const; |
414 bool IsThreaded() const; | 418 bool IsThreaded() const; |
415 bool IsRemoteServer() const; | 419 bool IsRemoteServer() const; |
416 bool IsRemoteClient() const; | 420 bool IsRemoteClient() const; |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 | 595 |
592 uint32_t surface_id_namespace_; | 596 uint32_t surface_id_namespace_; |
593 uint32_t next_surface_sequence_; | 597 uint32_t next_surface_sequence_; |
594 | 598 |
595 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 599 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
596 }; | 600 }; |
597 | 601 |
598 } // namespace cc | 602 } // namespace cc |
599 | 603 |
600 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 604 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |