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

Unified Diff: components/mus/surfaces/top_level_display_client.cc

Issue 2036563002: Delete OnscreenDisplayClient and TopLevelDisplayClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: onscreendisplayclient: webview-scoped-allow-gl-for-hardwarerenderer-constructor Created 4 years, 6 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: components/mus/surfaces/top_level_display_client.cc
diff --git a/components/mus/surfaces/top_level_display_client.cc b/components/mus/surfaces/top_level_display_client.cc
deleted file mode 100644
index b2f6f161643f3231c97c80acf39b39e5224d56fa..0000000000000000000000000000000000000000
--- a/components/mus/surfaces/top_level_display_client.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2015 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 "components/mus/surfaces/top_level_display_client.h"
-
-#include "base/memory/ptr_util.h"
-#include "cc/output/output_surface.h"
-#include "cc/surfaces/display.h"
-
-namespace mus {
-
-TopLevelDisplayClient::TopLevelDisplayClient(
- std::unique_ptr<cc::OutputSurface> output_surface,
- cc::SurfaceManager* surface_manager,
- cc::SharedBitmapManager* bitmap_manager,
- gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
- const cc::RendererSettings& settings,
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- uint32_t compositor_surface_namespace)
- : output_surface_(std::move(output_surface)),
- task_runner_(task_runner),
- display_(new cc::Display(this,
- surface_manager,
- bitmap_manager,
- gpu_memory_buffer_manager,
- settings,
- compositor_surface_namespace)) {}
-
-TopLevelDisplayClient::~TopLevelDisplayClient() {
-}
-
-bool TopLevelDisplayClient::Initialize() {
- DCHECK(output_surface_);
- return display_->Initialize(std::move(output_surface_), task_runner_.get());
-}
-
-void TopLevelDisplayClient::OutputSurfaceLost() {
- if (!display_) // Shutdown case
- return;
- display_.reset();
-}
-
-void TopLevelDisplayClient::SetMemoryPolicy(
- const cc::ManagedMemoryPolicy& policy) {}
-
-} // namespace mus
« no previous file with comments | « components/mus/surfaces/top_level_display_client.h ('k') | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698