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

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

Issue 2651843002: FrameGenerator should receive SurfaceInfo and use it in frame generation (Closed)
Patch Set: c Created 3 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
Index: services/ui/ws/frame_generator.h
diff --git a/services/ui/ws/frame_generator.h b/services/ui/ws/frame_generator.h
index 9b7e742e43daa45c2722114a5c2576d404f0b2db..97d4a99c255c8a4a14d5ebe184c6723c52f713a5 100644
--- a/services/ui/ws/frame_generator.h
+++ b/services/ui/ws/frame_generator.h
@@ -23,7 +23,6 @@
namespace cc {
class RenderPass;
-class SurfaceId;
}
namespace ui {
@@ -51,9 +50,8 @@ class FrameGenerator : public ServerWindowTracker,
// Schedules a redraw for the provided region.
void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget);
- // If |window| corresponds to the active WM for the display then update
- // |window_manager_surface_id_|.
- void OnSurfaceCreated(const cc::SurfaceId& surface_id, ServerWindow* window);
+ // Updates the WindowManager's SurfaceInfo.
+ void OnSurfaceCreated(const cc::SurfaceInfo& surface_info);
private:
friend class ui::ws::test::FrameGeneratorTest;
@@ -84,7 +82,7 @@ class FrameGenerator : public ServerWindowTracker,
cc::mojom::MojoCompositorFrameSinkPtr compositor_frame_sink_;
cc::mojom::DisplayPrivatePtr display_private_;
- cc::SurfaceId window_manager_surface_id_;
+ cc::SurfaceInfo window_manager_surface_info_;
mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient> binding_;

Powered by Google App Engine
This is Rietveld 408576698