| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ | 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 void DisplayWillDrawAndSwap( | 141 void DisplayWillDrawAndSwap( |
| 142 bool will_draw_and_swap, | 142 bool will_draw_and_swap, |
| 143 const cc::RenderPassList& render_passes) override {} | 143 const cc::RenderPassList& render_passes) override {} |
| 144 void DisplayDidDrawAndSwap() override {} | 144 void DisplayDidDrawAndSwap() override {} |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 // TODO(danakj): These don't to be stored in unique_ptrs when OutputSurface | 147 // TODO(danakj): These don't to be stored in unique_ptrs when OutputSurface |
| 148 // is owned/destroyed on the compositor thread. | 148 // is owned/destroyed on the compositor thread. |
| 149 std::unique_ptr<cc::SurfaceManager> surface_manager_; | 149 std::unique_ptr<cc::SurfaceManager> surface_manager_; |
| 150 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; | 150 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; |
| 151 cc::SurfaceId root_surface_id_; | 151 cc::LocalFrameId root_local_frame_id_; |
| 152 cc::SurfaceId child_surface_id_; | 152 cc::LocalFrameId child_local_frame_id_; |
| 153 // Uses surface_manager_. | 153 // Uses surface_manager_. |
| 154 std::unique_ptr<cc::SurfaceFactory> surface_factory_; | 154 std::unique_ptr<cc::SurfaceFactory> surface_factory_; |
| 155 StubDisplayClient display_client_; | 155 StubDisplayClient display_client_; |
| 156 // Uses surface_manager_. | 156 // Uses surface_manager_. |
| 157 std::unique_ptr<cc::Display> display_; | 157 std::unique_ptr<cc::Display> display_; |
| 158 // Owned by |display_|. | 158 // Owned by |display_|. |
| 159 SoftwareOutputSurface* software_output_surface_ = nullptr; | 159 SoftwareOutputSurface* software_output_surface_ = nullptr; |
| 160 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; | 160 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; |
| 161 | 161 |
| 162 gfx::Rect sw_viewport_for_current_draw_; | 162 gfx::Rect sw_viewport_for_current_draw_; |
| 163 | 163 |
| 164 base::ThreadChecker thread_checker_; | 164 base::ThreadChecker thread_checker_; |
| 165 | 165 |
| 166 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorFrameSink); | 166 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorFrameSink); |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 } // namespace content | 169 } // namespace content |
| 170 | 170 |
| 171 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ | 171 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |