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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2285593002: Add ScopedSurfaceRequestManager (Closed)
Patch Set: Addressing comments Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 2109f7cc5c1be0c3c5f08456837ee579621836f1..b22503f2294e3793758110cf245b9d06a683c422 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -109,6 +109,7 @@
#include "components/tracing/common/graphics_memory_dump_provider_android.h"
#include "content/browser/android/browser_startup_controller.h"
#include "content/browser/android/browser_surface_texture_manager.h"
+#include "content/browser/android/scoped_surface_request_manager.h"
#include "content/browser/android/tracing_controller_android.h"
#include "content/browser/media/android/browser_media_player_manager.h"
#include "content/browser/renderer_host/context_provider_factory_impl_android.h"
@@ -630,6 +631,8 @@ void BrowserMainLoop::PostMainMessageLoopStart() {
if (parsed_command_line_.HasSwitch(switches::kSingleProcess)) {
gpu::SurfaceTextureManager::SetInstance(
gpu::InProcessSurfaceTextureManager::GetInstance());
+ gpu::ScopedSurfaceRequestConduit::SetInstance(
+ ScopedSurfaceRequestManager::GetInstance());
} else {
gpu::SurfaceTextureManager::SetInstance(
BrowserSurfaceTextureManager::GetInstance());
@@ -638,7 +641,7 @@ void BrowserMainLoop::PostMainMessageLoopStart() {
}
if (!parsed_command_line_.HasSwitch(
- switches::kDisableScreenOrientationLock)) {
+ switches::kDisableScreenOrientationLock)) {
TRACE_EVENT0("startup",
"BrowserMainLoop::Subsystem:ScreenOrientationProvider");
screen_orientation_delegate_.reset(

Powered by Google App Engine
This is Rietveld 408576698