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

Unified Diff: content/browser/android/synchronous_compositor_host.cc

Issue 1908223002: Remove content/gpu from content/browser/android/DEPS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: owned_sync_point_manager_ 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
« no previous file with comments | « content/browser/android/DEPS ('k') | content/content_gpu.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/synchronous_compositor_host.cc
diff --git a/content/browser/android/synchronous_compositor_host.cc b/content/browser/android/synchronous_compositor_host.cc
index 42e7994e1c6051c8c2e0f0a985776634bda74f0b..737bb98056e38c54b6771abb940b13bd716c7e8f 100644
--- a/content/browser/android/synchronous_compositor_host.cc
+++ b/content/browser/android/synchronous_compositor_host.cc
@@ -13,12 +13,10 @@
#include "base/trace_event/trace_event_argument.h"
#include "cc/output/compositor_frame_ack.h"
#include "content/browser/android/in_process/synchronous_compositor_renderer_statics.h"
-#include "content/browser/gpu/gpu_process_host.h"
#include "content/browser/renderer_host/render_widget_host_view_android.h"
#include "content/browser/web_contents/web_contents_android.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/common/android/sync_compositor_messages.h"
-#include "content/gpu/in_process_gpu_thread.h"
#include "content/public/browser/android/synchronous_compositor_client.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_view_host.h"
@@ -32,29 +30,6 @@
namespace content {
-namespace {
-
-base::LazyInstance<scoped_refptr<gpu::InProcessCommandBuffer::Service>>
- g_gpu_service = LAZY_INSTANCE_INITIALIZER;
-
-base::Thread* CreateInProcessGpuThreadForSynchronousCompositor(
- const InProcessChildThreadParams& params,
- const gpu::GpuPreferences& gpu_preferences) {
- DCHECK(g_gpu_service.Get());
- return new InProcessGpuThread(params, gpu_preferences,
- g_gpu_service.Get()->sync_point_manager());
-}
-
-} // namespace
-
-void SynchronousCompositor::SetGpuService(
- scoped_refptr<gpu::InProcessCommandBuffer::Service> service) {
- DCHECK(!g_gpu_service.Get());
- g_gpu_service.Get() = service;
- GpuProcessHost::RegisterGpuMainThreadFactory(
- CreateInProcessGpuThreadForSynchronousCompositor);
-}
-
// static
void SynchronousCompositor::SetClientForWebContents(
WebContents* contents,
« no previous file with comments | « content/browser/android/DEPS ('k') | content/content_gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698