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

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

Issue 2694043003: FrameGenerator should not be created until an AcceleratedWidget is available (Closed)
Patch Set: Fix frame size Created 3 years, 10 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 | « services/ui/ws/BUILD.gn ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/frame_generator.h
diff --git a/services/ui/ws/frame_generator.h b/services/ui/ws/frame_generator.h
index bfad392a9902e872b256055f3016ee00c0af9cb5..e8ac31c1b6d554152137e9045c8db9663a0334b5 100644
--- a/services/ui/ws/frame_generator.h
+++ b/services/ui/ws/frame_generator.h
@@ -39,14 +39,13 @@ class ServerWindow;
// submitting CompositorFrames to the owned CompositorFrameSink.
class FrameGenerator : public cc::mojom::MojoCompositorFrameSinkClient {
public:
- FrameGenerator(FrameGeneratorDelegate* delegate, ServerWindow* root_window);
+ FrameGenerator(FrameGeneratorDelegate* delegate,
+ ServerWindow* root_window,
+ gfx::AcceleratedWidget widget);
~FrameGenerator() override;
void SetDeviceScaleFactor(float device_scale_factor);
- // Schedules a redraw for the provided region.
- void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget);
-
// Updates the WindowManager's SurfaceInfo.
void OnSurfaceCreated(const cc::SurfaceInfo& surface_info);
« no previous file with comments | « services/ui/ws/BUILD.gn ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698