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

Unified Diff: cc/surfaces/onscreen_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
« no previous file with comments | « cc/surfaces/onscreen_display_client.h ('k') | cc/surfaces/surface_display_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/onscreen_display_client.cc
diff --git a/cc/surfaces/onscreen_display_client.cc b/cc/surfaces/onscreen_display_client.cc
deleted file mode 100644
index b408ed4bebc47caed1b7ac0b43431f943c010159..0000000000000000000000000000000000000000
--- a/cc/surfaces/onscreen_display_client.cc
+++ /dev/null
@@ -1,52 +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 "cc/surfaces/onscreen_display_client.h"
-
-#include "base/trace_event/trace_event.h"
-#include "cc/output/output_surface.h"
-#include "cc/scheduler/begin_frame_source.h"
-#include "cc/surfaces/display_scheduler.h"
-#include "cc/surfaces/surface_display_output_surface.h"
-#include "cc/surfaces/surface_factory.h"
-#include "cc/surfaces/surface_manager.h"
-
-namespace cc {
-
-OnscreenDisplayClient::OnscreenDisplayClient(
- std::unique_ptr<OutputSurface> output_surface,
- SurfaceManager* manager,
- SharedBitmapManager* bitmap_manager,
- gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
- const 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 Display(this,
- manager,
- bitmap_manager,
- gpu_memory_buffer_manager,
- settings,
- compositor_surface_namespace)),
- output_surface_lost_(false) {}
-
-OnscreenDisplayClient::~OnscreenDisplayClient() {
-}
-
-bool OnscreenDisplayClient::Initialize() {
- DCHECK(output_surface_);
- return display_->Initialize(std::move(output_surface_), task_runner_.get());
-}
-
-void OnscreenDisplayClient::OutputSurfaceLost() {
- output_surface_lost_ = true;
- surface_display_output_surface_->DidLoseOutputSurface();
-}
-
-void OnscreenDisplayClient::SetMemoryPolicy(const ManagedMemoryPolicy& policy) {
- surface_display_output_surface_->SetMemoryPolicy(policy);
-}
-
-} // namespace cc
« no previous file with comments | « cc/surfaces/onscreen_display_client.h ('k') | cc/surfaces/surface_display_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698