Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 1986883002: blimp: Update page load status update indicator to use first paint. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Wez's comments. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 bool AnimationStartScale(const Layer* layer, float* start_scale) const; 395 bool AnimationStartScale(const Layer* layer, float* start_scale) const;
396 bool HasAnyAnimationTargetingProperty(const Layer* layer, 396 bool HasAnyAnimationTargetingProperty(const Layer* layer,
397 TargetProperty::Type property) const; 397 TargetProperty::Type property) const;
398 bool AnimationsPreserveAxisAlignment(const Layer* layer) const; 398 bool AnimationsPreserveAxisAlignment(const Layer* layer) const;
399 bool HasAnyAnimation(const Layer* layer) const; 399 bool HasAnyAnimation(const Layer* layer) const;
400 bool HasActiveAnimationForTesting(const Layer* layer) const; 400 bool HasActiveAnimationForTesting(const Layer* layer) const;
401 401
402 // Serializes the parts of this LayerTreeHost that is needed for a commit to a 402 // Serializes the parts of this LayerTreeHost that is needed for a commit to a
403 // protobuf message. Not all members are serialized as they are not helpful 403 // protobuf message. Not all members are serialized as they are not helpful
404 // for remote usage. 404 // for remote usage.
405 void ToProtobufForCommit(proto::LayerTreeHost* proto); 405 // The |swap_promise_list_| is transferred to the serializer in
406 // |swap_promises|.
407 void ToProtobufForCommit(
408 proto::LayerTreeHost* proto,
409 std::vector<std::unique_ptr<SwapPromise>>* swap_promises);
406 410
407 // Deserializes the protobuf into this LayerTreeHost before a commit. The 411 // Deserializes the protobuf into this LayerTreeHost before a commit. The
408 // expected input is a serialized remote LayerTreeHost. After deserializing 412 // expected input is a serialized remote LayerTreeHost. After deserializing
409 // the protobuf, the normal commit-flow should continue. 413 // the protobuf, the normal commit-flow should continue.
410 void FromProtobufForCommit(const proto::LayerTreeHost& proto); 414 void FromProtobufForCommit(const proto::LayerTreeHost& proto);
411 415
412 bool IsSingleThreaded() const; 416 bool IsSingleThreaded() const;
413 bool IsThreaded() const; 417 bool IsThreaded() const;
414 bool IsRemoteServer() const; 418 bool IsRemoteServer() const;
415 bool IsRemoteClient() const; 419 bool IsRemoteClient() const;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 594
591 uint32_t surface_id_namespace_; 595 uint32_t surface_id_namespace_;
592 uint32_t next_surface_sequence_; 596 uint32_t next_surface_sequence_;
593 597
594 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 598 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
595 }; 599 };
596 600
597 } // namespace cc 601 } // namespace cc
598 602
599 #endif // CC_TREES_LAYER_TREE_HOST_H_ 603 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698