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

Unified Diff: services/ui/ws/test_change_tracker.h

Issue 2414683003: Mus+Ash: propagate Surface ID to parents (Closed)
Patch Set: Addressed sky's comments Created 4 years, 2 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
Index: services/ui/ws/test_change_tracker.h
diff --git a/services/ui/ws/test_change_tracker.h b/services/ui/ws/test_change_tracker.h
index cbc06562dbac68e501ad86807f5ce54f0b1c50da..47c76bf5030655091bf002fa23ba45ebe4e016e3 100644
--- a/services/ui/ws/test_change_tracker.h
+++ b/services/ui/ws/test_change_tracker.h
@@ -42,6 +42,7 @@ enum ChangeType {
CHANGE_TYPE_ON_CHANGE_COMPLETED,
CHANGE_TYPE_ON_TOP_LEVEL_CREATED,
CHANGE_TYPE_OPACITY,
+ CHANGE_TYPE_SURFACE_CHANGED,
};
// TODO(sky): consider nuking and converting directly to WindowData.
@@ -87,6 +88,10 @@ struct Change {
std::string property_value;
int32_t cursor_id;
uint32_t change_id;
+ cc::SurfaceId surface_id;
+ cc::SurfaceSequence surface_sequence;
+ gfx::Size frame_size;
+ float device_scale_factor;
};
// Converts Changes to string descriptions.
@@ -169,6 +174,11 @@ class TestChangeTracker {
void OnTopLevelCreated(uint32_t change_id,
mojom::WindowDataPtr window_data,
bool drawn);
+ void OnWindowSurfaceChanged(Id window_id,
+ const cc::SurfaceId& surface_id,
+ const cc::SurfaceSequence& surface_sequence,
+ const gfx::Size& frame_size,
+ float device_scale_factor);
private:
void AddChange(const Change& change);

Powered by Google App Engine
This is Rietveld 408576698