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

Unified Diff: ui/aura/mus/in_flight_change.cc

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: First cut propagating LocalSurfaceId when WindowTreeHost requests resize Created 3 years, 9 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 | « ui/aura/mus/in_flight_change.h ('k') | ui/aura/mus/window_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/in_flight_change.cc
diff --git a/ui/aura/mus/in_flight_change.cc b/ui/aura/mus/in_flight_change.cc
index b96299c8409a0190e5bcc245fd45c6cd69a6df2f..5f5a9bfcdc9ea1277bce5087a4e59ab95d0b48ed 100644
--- a/ui/aura/mus/in_flight_change.cc
+++ b/ui/aura/mus/in_flight_change.cc
@@ -31,20 +31,28 @@ void InFlightChange::ChangeFailed() {}
// InFlightBoundsChange -------------------------------------------------------
-InFlightBoundsChange::InFlightBoundsChange(WindowTreeClient* window_tree_client,
- WindowMus* window,
- const gfx::Rect& revert_bounds)
+InFlightBoundsChange::InFlightBoundsChange(
+ WindowTreeClient* window_tree_client,
+ WindowMus* window,
+ const gfx::Rect& revert_bounds,
+ const base::Optional<cc::LocalSurfaceId>& revert_local_surface_id)
: InFlightChange(window, ChangeType::BOUNDS),
window_tree_client_(window_tree_client),
- revert_bounds_(revert_bounds) {}
+ revert_bounds_(revert_bounds),
+ revert_local_surface_id_(revert_local_surface_id) {}
+
+InFlightBoundsChange::~InFlightBoundsChange() {}
void InFlightBoundsChange::SetRevertValueFrom(const InFlightChange& change) {
revert_bounds_ =
static_cast<const InFlightBoundsChange&>(change).revert_bounds_;
+ revert_local_surface_id_ =
+ static_cast<const InFlightBoundsChange&>(change).revert_local_surface_id_;
}
void InFlightBoundsChange::Revert() {
- window_tree_client_->SetWindowBoundsFromServer(window(), revert_bounds_);
+ window_tree_client_->SetWindowBoundsFromServer(window(), revert_bounds_,
+ revert_local_surface_id_);
}
// InFlightDragChange -----------------------------------------------------
« no previous file with comments | « ui/aura/mus/in_flight_change.h ('k') | ui/aura/mus/window_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698