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

Unified Diff: blimp/client/support/compositor/compositor_dependencies_impl.cc

Issue 2624903006: Remove all blimp client code. (Closed)
Patch Set: Update buildbot configuration Created 3 years, 11 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: blimp/client/support/compositor/compositor_dependencies_impl.cc
diff --git a/blimp/client/support/compositor/compositor_dependencies_impl.cc b/blimp/client/support/compositor/compositor_dependencies_impl.cc
deleted file mode 100644
index 1613215e33bb3c648a935027b94d62ea064f19c3..0000000000000000000000000000000000000000
--- a/blimp/client/support/compositor/compositor_dependencies_impl.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2016 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 "blimp/client/support/compositor/compositor_dependencies_impl.h"
-
-#include "base/memory/ptr_util.h"
-#include "blimp/client/support/compositor/blimp_context_provider.h"
-#include "blimp/client/support/compositor/blimp_gpu_memory_buffer_manager.h"
-#include "blimp/client/support/compositor/blimp_layer_tree_settings.h"
-#include "cc/output/context_provider.h"
-#include "cc/surfaces/surface_manager.h"
-#include "cc/trees/layer_tree_settings.h"
-#include "gpu/ipc/common/surface_handle.h"
-
-namespace blimp {
-namespace client {
-
-CompositorDependenciesImpl::CompositorDependenciesImpl()
- : gpu_memory_buffer_manager_(
- base::MakeUnique<BlimpGpuMemoryBufferManager>()),
- surface_manager_(base::MakeUnique<cc::SurfaceManager>()),
- next_surface_id_(0) {}
-
-CompositorDependenciesImpl::~CompositorDependenciesImpl() = default;
-
-gpu::GpuMemoryBufferManager*
-CompositorDependenciesImpl::GetGpuMemoryBufferManager() {
- return gpu_memory_buffer_manager_.get();
-}
-
-cc::SurfaceManager* CompositorDependenciesImpl::GetSurfaceManager() {
- return surface_manager_.get();
-}
-
-cc::FrameSinkId CompositorDependenciesImpl::AllocateFrameSinkId() {
- return cc::FrameSinkId(++next_surface_id_, 0 /* sink_id */);
-}
-
-void CompositorDependenciesImpl::GetContextProviders(
- const CompositorDependencies::ContextProviderCallback& callback) {
- scoped_refptr<cc::ContextProvider> compositor_context =
- BlimpContextProvider::Create(gpu::kNullSurfaceHandle,
- gpu_memory_buffer_manager_.get());
-
- // TODO(khushalsagar): Make a worker context and bind to the current thread.
- callback.Run(compositor_context, nullptr);
-}
-
-} // namespace client
-} // namespace blimp
« no previous file with comments | « blimp/client/support/compositor/compositor_dependencies_impl.h ('k') | blimp/client/support/resources/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698