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

Unified Diff: content/public/test/test_renderer_host.cc

Issue 2514633002: Revert of Android: support multiple displays on C++ side (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/test/test_renderer_host.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_renderer_host.cc
diff --git a/content/public/test/test_renderer_host.cc b/content/public/test/test_renderer_host.cc
index 6817a5a0ac6e40a6008973d12b39e46571055ffb..01f729a9be75d29c009f325f8508ddaff9b662f6 100644
--- a/content/public/test/test_renderer_host.cc
+++ b/content/public/test/test_renderer_host.cc
@@ -32,8 +32,6 @@
#if defined(OS_ANDROID)
#include "content/browser/renderer_host/context_provider_factory_impl_android.h"
#include "content/test/mock_gpu_channel_establish_factory.h"
-#include "ui/android/dummy_screen_android.h"
-#include "ui/display/screen.h"
#endif
#if defined(OS_WIN)
@@ -245,9 +243,6 @@
ContextProviderFactoryImpl::Initialize(gpu_channel_factory_.get());
ui::ContextProviderFactory::SetInstance(
ContextProviderFactoryImpl::GetInstance());
- if (!screen_)
- screen_.reset(ui::CreateDummyScreenAndroid());
- display::Screen::SetScreenInstance(screen_.get());
#endif
#if defined(USE_AURA)
ui::ContextFactory* context_factory =
@@ -313,7 +308,6 @@
// must be shut down before the ImageTransportFactory.
ImageTransportFactory::Terminate();
#else
- display::Screen::SetScreenInstance(nullptr);
ui::ContextProviderFactory::SetInstance(nullptr);
ContextProviderFactoryImpl::Terminate();
gpu_channel_factory_.reset();
« no previous file with comments | « content/public/test/test_renderer_host.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698