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

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

Issue 2527443002: Display Compositor: Allocate LocalFrameId in client. (Closed)
Patch Set: Addressed sadrul's comment Created 4 years, 1 month 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 ef3e5028dd2badceb18abc18d53049747e2caecc..5546720fe8d79fdb4030f535a345e6092b539c5f 100644
--- a/services/ui/ws/frame_generator.h
+++ b/services/ui/ws/frame_generator.h
@@ -12,6 +12,7 @@
#include "base/timer/timer.h"
#include "cc/surfaces/frame_sink_id.h"
#include "cc/surfaces/surface_id.h"
+#include "cc/surfaces/surface_id_allocator.h"
#include "services/ui/public/interfaces/window_tree_constants.mojom.h"
#include "services/ui/ws/ids.h"
#include "services/ui/ws/server_window_tracker.h"
@@ -121,6 +122,9 @@ class FrameGenerator : public ServerWindowTracker,
ServerWindow* const root_window_;
scoped_refptr<gpu::GpuChannelHost> gpu_channel_;
+ gfx::Size last_submitted_frame_size_;
+ cc::LocalFrameId local_frame_id_;
+ cc::SurfaceIdAllocator id_allocator_;
cc::mojom::MojoCompositorFrameSinkPtr compositor_frame_sink_;
gfx::AcceleratedWidget widget_ = gfx::kNullAcceleratedWidget;

Powered by Google App Engine
This is Rietveld 408576698