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

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

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 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
« no previous file with comments | « services/ui/ws/display_manager.cc ('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 6479e92a1f1b32ab3792ff46db4fde953a088f4f..af46505aca75f509eb11a0d56ee8f6592bf4b5ea 100644
--- a/services/ui/ws/frame_generator.h
+++ b/services/ui/ws/frame_generator.h
@@ -60,23 +60,15 @@ class FrameGenerator : public ServerWindowTracker,
void RequestRedraw(const gfx::Rect& redraw_region);
void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget);
- bool is_frame_pending() { return frame_pending_; }
-
private:
friend class ui::ws::test::FrameGeneratorTest;
// cc::mojom::MojoCompositorFrameSinkClient implementation:
void DidReceiveCompositorFrameAck() override;
+ void OnBeginFrame(const cc::BeginFrameArgs& begin_frame_arags) override;
void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
- void WantToDraw();
-
- // This method initiates a top level redraw of the display.
- // TODO(fsamuel): In polliwog, this only gets called when the window manager
- // changes.
- void Draw();
-
- // Generates the CompositorFrame for the current |dirty_rect_|.
+ // Generates the CompositorFrame.
cc::CompositorFrame GenerateCompositorFrame(const gfx::Rect& output_rect);
// DrawWindowTree recursively visits ServerWindows, creating a SurfaceDrawQuad
@@ -122,11 +114,6 @@ class FrameGenerator : public ServerWindowTracker,
cc::mojom::MojoCompositorFrameSinkPtr compositor_frame_sink_;
gfx::AcceleratedWidget widget_ = gfx::kNullAcceleratedWidget;
- // The region that needs to be redrawn next time the compositor frame is
- // generated.
- gfx::Rect dirty_rect_;
- base::Timer draw_timer_;
- bool frame_pending_ = false;
struct SurfaceDependency {
cc::LocalFrameId local_frame_id;
cc::SurfaceSequence sequence;
« no previous file with comments | « services/ui/ws/display_manager.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698