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

Side by Side Diff: android_webview/browser/hardware_renderer.cc

Issue 2807653003: Move Work From CompositorFrameSinkSupport() To Init() (Closed)
Patch Set: More Init Created 3 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "android_webview/browser/hardware_renderer.h" 5 #include "android_webview/browser/hardware_renderer.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "android_webview/browser/aw_gl_surface.h" 9 #include "android_webview/browser/aw_gl_surface.h"
10 #include "android_webview/browser/aw_render_thread_context_provider.h" 10 #include "android_webview/browser/aw_render_thread_context_provider.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 render_thread_manager_->InsertReturnedResourcesOnRT(resources, compositor_id, 254 render_thread_manager_->InsertReturnedResourcesOnRT(resources, compositor_id,
255 compositor_frame_sink_id); 255 compositor_frame_sink_id);
256 } 256 }
257 257
258 void HardwareRenderer::CreateNewCompositorFrameSinkSupport() { 258 void HardwareRenderer::CreateNewCompositorFrameSinkSupport() {
259 support_.reset(); 259 support_.reset();
260 support_ = base::MakeUnique<cc::CompositorFrameSinkSupport>( 260 support_ = base::MakeUnique<cc::CompositorFrameSinkSupport>(
261 this, surfaces_->GetSurfaceManager(), frame_sink_id_, false /* is_root */, 261 this, surfaces_->GetSurfaceManager(), frame_sink_id_, false /* is_root */,
262 false /* handles_frame_sink_id_invalidation */, 262 false /* handles_frame_sink_id_invalidation */,
263 true /* needs_sync_points */); 263 true /* needs_sync_points */);
264 support_->Init();
264 } 265 }
265 266
266 } // namespace android_webview 267 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/surfaces_instance.cc » ('j') | cc/surfaces/compositor_frame_sink_support.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698