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

Side by Side Diff: content/renderer/android/synchronous_compositor_frame_sink.h

Issue 2506883002: Revert of Remove SurfaceFactory::Create and SurfaceFactory::Destroy (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 void DisplayWillDrawAndSwap( 139 void DisplayWillDrawAndSwap(
140 bool will_draw_and_swap, 140 bool will_draw_and_swap,
141 const cc::RenderPassList& render_passes) override {} 141 const cc::RenderPassList& render_passes) override {}
142 void DisplayDidDrawAndSwap() override {} 142 void DisplayDidDrawAndSwap() override {}
143 }; 143 };
144 144
145 // TODO(danakj): These don't to be stored in unique_ptrs when OutputSurface 145 // TODO(danakj): These don't to be stored in unique_ptrs when OutputSurface
146 // is owned/destroyed on the compositor thread. 146 // is owned/destroyed on the compositor thread.
147 std::unique_ptr<cc::SurfaceManager> surface_manager_; 147 std::unique_ptr<cc::SurfaceManager> surface_manager_;
148 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; 148 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
149 cc::LocalFrameId root_local_frame_id_;
149 cc::LocalFrameId child_local_frame_id_; 150 cc::LocalFrameId child_local_frame_id_;
150 cc::LocalFrameId root_local_frame_id_;
151 // Uses surface_manager_. 151 // Uses surface_manager_.
152 std::unique_ptr<cc::SurfaceFactory> root_factory_; 152 std::unique_ptr<cc::SurfaceFactory> surface_factory_;
153 std::unique_ptr<cc::SurfaceFactory> child_factory_;
154 StubDisplayClient display_client_; 153 StubDisplayClient display_client_;
155 // Uses surface_manager_. 154 // Uses surface_manager_.
156 std::unique_ptr<cc::Display> display_; 155 std::unique_ptr<cc::Display> display_;
157 // Owned by |display_|. 156 // Owned by |display_|.
158 SoftwareOutputSurface* software_output_surface_ = nullptr; 157 SoftwareOutputSurface* software_output_surface_ = nullptr;
159 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; 158 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_;
160 159
161 gfx::Rect sw_viewport_for_current_draw_; 160 gfx::Rect sw_viewport_for_current_draw_;
162 161
163 base::ThreadChecker thread_checker_; 162 base::ThreadChecker thread_checker_;
164 163
165 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorFrameSink); 164 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorFrameSink);
166 }; 165 };
167 166
168 } // namespace content 167 } // namespace content
169 168
170 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_ 169 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698