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

Side by Side Diff: services/ui/ws/frame_generator.h

Issue 2701663003: CompositorFrameSinkSupportClient::WillDraw needs to take in arguments (Closed)
Patch Set: c 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_UI_WS_FRAME_GENERATOR_H_ 5 #ifndef SERVICES_UI_WS_FRAME_GENERATOR_H_
6 #define SERVICES_UI_WS_FRAME_GENERATOR_H_ 6 #define SERVICES_UI_WS_FRAME_GENERATOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 void OnWindowDamaged(); 53 void OnWindowDamaged();
54 54
55 private: 55 private:
56 friend class ui::ws::test::FrameGeneratorTest; 56 friend class ui::ws::test::FrameGeneratorTest;
57 57
58 // cc::mojom::MojoCompositorFrameSinkClient implementation: 58 // cc::mojom::MojoCompositorFrameSinkClient implementation:
59 void DidReceiveCompositorFrameAck() override; 59 void DidReceiveCompositorFrameAck() override;
60 void OnBeginFrame(const cc::BeginFrameArgs& begin_frame_arags) override; 60 void OnBeginFrame(const cc::BeginFrameArgs& begin_frame_arags) override;
61 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 61 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
62 void WillDrawSurface() override; 62 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
63 const gfx::Rect& damage_rect) override;
63 64
64 // Generates the CompositorFrame. 65 // Generates the CompositorFrame.
65 cc::CompositorFrame GenerateCompositorFrame(const gfx::Rect& output_rect); 66 cc::CompositorFrame GenerateCompositorFrame(const gfx::Rect& output_rect);
66 67
67 // DrawWindow creates SurfaceDrawQuad for the window manager and appends it to 68 // DrawWindow creates SurfaceDrawQuad for the window manager and appends it to
68 // the provided cc::RenderPass. 69 // the provided cc::RenderPass.
69 void DrawWindow(cc::RenderPass* pass); 70 void DrawWindow(cc::RenderPass* pass);
70 71
71 FrameGeneratorDelegate* delegate_; 72 FrameGeneratorDelegate* delegate_;
72 ServerWindow* const root_window_; 73 ServerWindow* const root_window_;
(...skipping 10 matching lines...) Expand all
83 mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient> binding_; 84 mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient> binding_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(FrameGenerator); 86 DISALLOW_COPY_AND_ASSIGN(FrameGenerator);
86 }; 87 };
87 88
88 } // namespace ws 89 } // namespace ws
89 90
90 } // namespace ui 91 } // namespace ui
91 92
92 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_ 93 #endif // SERVICES_UI_WS_FRAME_GENERATOR_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window_compositor_frame_sink.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698