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

Unified Diff: blimp/client/app/compositor/browser_compositor.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
« no previous file with comments | « blimp/client/app/compositor/browser_compositor.h ('k') | blimp/client/app/linux/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/app/compositor/browser_compositor.cc
diff --git a/blimp/client/app/compositor/browser_compositor.cc b/blimp/client/app/compositor/browser_compositor.cc
deleted file mode 100644
index bb6029c52bbd8786adbb974d55a844bf296fdcc8..0000000000000000000000000000000000000000
--- a/blimp/client/app/compositor/browser_compositor.cc
+++ /dev/null
@@ -1,58 +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/app/compositor/browser_compositor.h"
-
-#include "blimp/client/public/compositor/compositor_dependencies.h"
-#include "blimp/client/support/compositor/blimp_context_provider.h"
-#include "cc/output/context_provider.h"
-
-#if !defined(GPU_SURFACE_HANDLE_IS_ACCELERATED_WINDOW)
-#include "gpu/ipc/common/gpu_surface_tracker.h"
-#endif
-
-namespace blimp {
-namespace client {
-
-BrowserCompositor::BrowserCompositor(
- CompositorDependencies* compositor_dependencies)
- : BlimpEmbedderCompositor(compositor_dependencies) {}
-
-BrowserCompositor::~BrowserCompositor() {
- SetAcceleratedWidget(gfx::kNullAcceleratedWidget);
-}
-
-void BrowserCompositor::SetAcceleratedWidget(gfx::AcceleratedWidget widget) {
- scoped_refptr<cc::ContextProvider> provider;
-
- if (surface_handle_ != gpu::kNullSurfaceHandle) {
-#if !defined(GPU_SURFACE_HANDLE_IS_ACCELERATED_WINDOW)
- gpu::GpuSurfaceTracker::Get()->RemoveSurface(surface_handle_);
-#endif
- surface_handle_ = gpu::kNullSurfaceHandle;
- }
-
- if (widget != gfx::kNullAcceleratedWidget) {
-#if !defined(GPU_SURFACE_HANDLE_IS_ACCELERATED_WINDOW)
- surface_handle_ =
- gpu::GpuSurfaceTracker::Get()->AddSurfaceForNativeWidget(widget);
-#else
- surface_handle_ = widget;
-#endif
- provider = BlimpContextProvider::Create(
- surface_handle_,
- compositor_dependencies()->GetGpuMemoryBufferManager());
- }
-
- SetContextProvider(std::move(provider));
-}
-
-void BrowserCompositor::DidReceiveCompositorFrameAck() {
- if (!did_complete_swap_buffers_.is_null()) {
- did_complete_swap_buffers_.Run();
- }
-}
-
-} // namespace client
-} // namespace blimp
« no previous file with comments | « blimp/client/app/compositor/browser_compositor.h ('k') | blimp/client/app/linux/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698