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

Unified Diff: cc/base/synced_property.h

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/base/region.cc ('k') | cc/blink/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/synced_property.h
diff --git a/cc/base/synced_property.h b/cc/base/synced_property.h
index 5c4793282259c8266cf88c0f18bd05fc2d2fa331..8b554c62eda7b141196a064585e5ee403cec5cf2 100644
--- a/cc/base/synced_property.h
+++ b/cc/base/synced_property.h
@@ -97,12 +97,17 @@ class SyncedProperty : public base::RefCounted<SyncedProperty<T>> {
sent_delta_ = T::Identity();
}
- private:
+ // Values as last pushed to the pending or active tree respectively, with no
+ // impl-thread delta applied.
+ typename T::ValueType PendingBase() const { return pending_base_.get(); }
+ typename T::ValueType ActiveBase() const { return active_base_.get(); }
+
// The new delta we would use if we decide to activate now. This delta
// excludes the amount that we expect the main thread to reflect back at the
// impl thread during the commit.
T PendingDelta() const { return active_delta_.InverseCombine(sent_delta_); }
+ private:
// Value last committed to the pending tree.
T pending_base_;
// Value last committed to the active tree (on the last activation).
« no previous file with comments | « cc/base/region.cc ('k') | cc/blink/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698