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

Unified Diff: content/browser/android/in_process/synchronous_compositor_factory_impl.cc

Issue 1838853005: android: Remove in-process sync compositor code path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_in_proc_video
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/android/in_process/synchronous_compositor_factory_impl.cc
diff --git a/content/browser/android/in_process/synchronous_compositor_factory_impl.cc b/content/browser/android/in_process/synchronous_compositor_factory_impl.cc
deleted file mode 100644
index 76331a11e5294b23a2a076490cd40996764c0d7e..0000000000000000000000000000000000000000
--- a/content/browser/android/in_process/synchronous_compositor_factory_impl.cc
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/android/in_process/synchronous_compositor_factory_impl.h"
-
-#include <stdint.h>
-
-#include <utility>
-
-#include "base/command_line.h"
-#include "base/macros.h"
-#include "base/memory/ptr_util.h"
-#include "base/thread_task_runner_handle.h"
-#include "content/browser/android/in_process/synchronous_compositor_impl.h"
-#include "content/browser/android/in_process/synchronous_compositor_registry_in_proc.h"
-#include "content/public/browser/browser_thread.h"
-#include "content/public/common/content_switches.h"
-#include "content/renderer/android/synchronous_compositor_external_begin_frame_source.h"
-#include "content/renderer/android/synchronous_compositor_output_surface.h"
-#include "content/renderer/gpu/frame_swap_message_queue.h"
-#include "content/renderer/render_thread_impl.h"
-#include "gpu/command_buffer/client/gles2_interface.h"
-#include "gpu/command_buffer/common/gles2_cmd_utils.h"
-#include "gpu/ipc/client/gpu_channel_host.h"
-
-namespace content {
-
-SynchronousCompositorFactoryImpl::SynchronousCompositorFactoryImpl() {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kSingleProcess)) {
- // TODO(boliu): Figure out how to deal with this more nicely.
- SynchronousCompositorFactory::SetInstance(this);
- }
-}
-
-SynchronousCompositorFactoryImpl::~SynchronousCompositorFactoryImpl() {}
-
-scoped_refptr<base::SingleThreadTaskRunner>
-SynchronousCompositorFactoryImpl::GetCompositorTaskRunner() {
- return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI);
-}
-
-std::unique_ptr<cc::OutputSurface>
-SynchronousCompositorFactoryImpl::CreateOutputSurface(
- int routing_id,
- uint32_t output_surface_id,
- const scoped_refptr<FrameSwapMessageQueue>& frame_swap_message_queue,
- const scoped_refptr<cc::ContextProvider>& onscreen_context,
- const scoped_refptr<cc::ContextProvider>& worker_context) {
- return base::WrapUnique(new SynchronousCompositorOutputSurface(
- onscreen_context, worker_context, routing_id, output_surface_id,
- SynchronousCompositorRegistryInProc::GetInstance(),
- frame_swap_message_queue));
-}
-
-InputHandlerManagerClient*
-SynchronousCompositorFactoryImpl::GetInputHandlerManagerClient() {
- return synchronous_input_event_filter();
-}
-
-SynchronousInputHandlerProxyClient*
-SynchronousCompositorFactoryImpl::GetSynchronousInputHandlerProxyClient() {
- return synchronous_input_event_filter();
-}
-
-std::unique_ptr<cc::BeginFrameSource>
-SynchronousCompositorFactoryImpl::CreateExternalBeginFrameSource(
- int routing_id) {
- return base::WrapUnique(new SynchronousCompositorExternalBeginFrameSource(
- routing_id, SynchronousCompositorRegistryInProc::GetInstance()));
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698