| Index: services/ui/service.cc
|
| diff --git a/services/ui/service.cc b/services/ui/service.cc
|
| index 88892a933ce5cc9cb1e4c7bce35735e4de25b45c..3e4c2207d772efcd2dcf6e044ee17d968eb4c24c 100644
|
| --- a/services/ui/service.cc
|
| +++ b/services/ui/service.cc
|
| @@ -20,7 +20,6 @@
|
| #include "services/ui/clipboard/clipboard_impl.h"
|
| #include "services/ui/common/switches.h"
|
| #include "services/ui/display/platform_screen.h"
|
| -#include "services/ui/gles2/gpu_impl.h"
|
| #include "services/ui/gpu/gpu_service_impl.h"
|
| #include "services/ui/gpu/gpu_service_mus.h"
|
| #include "services/ui/ws/accessibility_manager.h"
|
| @@ -53,7 +52,6 @@
|
|
|
| using shell::Connection;
|
| using mojo::InterfaceRequest;
|
| -using ui::mojom::Gpu;
|
| using ui::mojom::WindowServerTest;
|
| using ui::mojom::WindowTreeHostFactory;
|
|
|
| @@ -81,13 +79,6 @@
|
|
|
| Service::Service()
|
| : test_config_(false),
|
| -// TODO(penghuang): Kludge: Use mojo command buffer when running on
|
| -// Windows since chrome command buffer breaks unit tests
|
| -#if defined(OS_WIN)
|
| - use_chrome_gpu_command_buffer_(false),
|
| -#else
|
| - use_chrome_gpu_command_buffer_(true),
|
| -#endif
|
| platform_screen_(display::PlatformScreen::Create()),
|
| weak_ptr_factory_(this) {
|
| }
|
| @@ -97,9 +88,6 @@
|
| // WindowServer (or more correctly its Displays) may have state that needs to
|
| // be destroyed before GpuState as well.
|
| window_server_.reset();
|
| -
|
| - if (platform_display_init_params_.gpu_state)
|
| - platform_display_init_params_.gpu_state->StopThreads();
|
| }
|
|
|
| void Service::InitializeResources(shell::Connector* connector) {
|
| @@ -152,15 +140,6 @@
|
|
|
| test_config_ = base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kUseTestConfig);
|
| -// TODO(penghuang): Kludge: use mojo command buffer when running on Windows
|
| -// since Chrome command buffer breaks unit tests
|
| -#if defined(OS_WIN)
|
| - use_chrome_gpu_command_buffer_ = false;
|
| -#else
|
| - use_chrome_gpu_command_buffer_ =
|
| - !base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kUseMojoGpuCommandBufferInMus);
|
| -#endif
|
| #if defined(USE_X11)
|
| XInitThreads();
|
| if (test_config_)
|
| @@ -202,13 +181,7 @@
|
| // so keep this line below both of those.
|
| input_device_server_.RegisterAsObserver();
|
|
|
| - if (use_chrome_gpu_command_buffer_) {
|
| - GpuServiceMus::GetInstance();
|
| - } else {
|
| - // TODO(rjkroege): It is possible that we might want to generalize the
|
| - // GpuState object.
|
| - platform_display_init_params_.gpu_state = new GpuState();
|
| - }
|
| + GpuServiceMus::GetInstance();
|
|
|
| // Gpu must be running before the PlatformScreen can be initialized.
|
| platform_screen_->Init();
|
| @@ -226,6 +199,7 @@
|
| connection->AddInterface<mojom::AccessibilityManager>(this);
|
| connection->AddInterface<mojom::Clipboard>(this);
|
| connection->AddInterface<mojom::DisplayManager>(this);
|
| + connection->AddInterface<mojom::GpuService>(this);
|
| connection->AddInterface<mojom::UserAccessManager>(this);
|
| connection->AddInterface<mojom::UserActivityMonitor>(this);
|
| connection->AddInterface<WindowTreeHostFactory>(this);
|
| @@ -233,12 +207,6 @@
|
| connection->AddInterface<mojom::WindowTreeFactory>(this);
|
| if (test_config_)
|
| connection->AddInterface<WindowServerTest>(this);
|
| -
|
| - if (use_chrome_gpu_command_buffer_) {
|
| - connection->AddInterface<mojom::GpuService>(this);
|
| - } else {
|
| - connection->AddInterface<Gpu>(this);
|
| - }
|
|
|
| // On non-Linux platforms there will be no DeviceDataManager instance and no
|
| // purpose in adding the Mojo interface to connect to.
|
| @@ -314,17 +282,7 @@
|
| }
|
|
|
| void Service::Create(const shell::Identity& remote_identity,
|
| - mojom::GpuRequest request) {
|
| - if (use_chrome_gpu_command_buffer_)
|
| - return;
|
| - DCHECK(platform_display_init_params_.gpu_state);
|
| - new GpuImpl(std::move(request), platform_display_init_params_.gpu_state);
|
| -}
|
| -
|
| -void Service::Create(const shell::Identity& remote_identity,
|
| mojom::GpuServiceRequest request) {
|
| - if (!use_chrome_gpu_command_buffer_)
|
| - return;
|
| new GpuServiceImpl(std::move(request));
|
| }
|
|
|
|
|