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

Unified Diff: android_webview/browser/surfaces_instance.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/surfaces_instance.cc
diff --git a/android_webview/browser/surfaces_instance.cc b/android_webview/browser/surfaces_instance.cc
index f84809de8ccc7b9b6af8b7b03ee2adc190e0b260..ef96e989804b30acded4c6eb47684a526ad8f56c 100644
--- a/android_webview/browser/surfaces_instance.cc
+++ b/android_webview/browser/surfaces_instance.cc
@@ -52,6 +52,8 @@ SurfacesInstance::SurfacesInstance()
surface_manager_.reset(new cc::SurfaceManager);
surface_id_allocator_.reset(new cc::SurfaceIdAllocator());
surface_manager_->RegisterFrameSinkId(frame_sink_id_);
+ surface_factory_.reset(
+ new cc::SurfaceFactory(frame_sink_id_, surface_manager_.get(), this));
std::unique_ptr<cc::BeginFrameSource> begin_frame_source(
new cc::StubBeginFrameSource);
@@ -73,9 +75,6 @@ SurfacesInstance::SurfacesInstance()
display_->Initialize(this, surface_manager_.get(), frame_sink_id_);
display_->SetVisible(true);
- surface_factory_.reset(
- new cc::SurfaceFactory(frame_sink_id_, surface_manager_.get(), this));
-
DCHECK(!g_surfaces_instance);
g_surfaces_instance = this;

Powered by Google App Engine
This is Rietveld 408576698