| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |