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

Side by Side Diff: cc/surfaces/onscreen_display_client.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase 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 unified diff | Download patch
« no previous file with comments | « cc/surfaces/onscreen_display_client.h ('k') | cc/surfaces/surface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/surfaces/onscreen_display_client.h" 5 #include "cc/surfaces/onscreen_display_client.h"
6 6
7 #include "base/trace_event/trace_event.h" 7 #include "base/trace_event/trace_event.h"
8 #include "cc/output/output_surface.h" 8 #include "cc/output/output_surface.h"
9 #include "cc/scheduler/begin_frame_source.h" 9 #include "cc/scheduler/begin_frame_source.h"
10 #include "cc/surfaces/display_scheduler.h" 10 #include "cc/surfaces/display_scheduler.h"
11 #include "cc/surfaces/surface_display_output_surface.h" 11 #include "cc/surfaces/surface_display_output_surface.h"
12 #include "cc/surfaces/surface_factory.h" 12 #include "cc/surfaces/surface_factory.h"
13 #include "cc/surfaces/surface_manager.h" 13 #include "cc/surfaces/surface_manager.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 OnscreenDisplayClient::OnscreenDisplayClient( 17 OnscreenDisplayClient::OnscreenDisplayClient(
18 scoped_ptr<OutputSurface> output_surface, 18 std::unique_ptr<OutputSurface> output_surface,
19 SurfaceManager* manager, 19 SurfaceManager* manager,
20 SharedBitmapManager* bitmap_manager, 20 SharedBitmapManager* bitmap_manager,
21 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 21 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
22 const RendererSettings& settings, 22 const RendererSettings& settings,
23 scoped_refptr<base::SingleThreadTaskRunner> task_runner) 23 scoped_refptr<base::SingleThreadTaskRunner> task_runner)
24 : output_surface_(std::move(output_surface)), 24 : output_surface_(std::move(output_surface)),
25 task_runner_(task_runner), 25 task_runner_(task_runner),
26 display_(new Display(this, 26 display_(new Display(this,
27 manager, 27 manager,
28 bitmap_manager, 28 bitmap_manager,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void OnscreenDisplayClient::OutputSurfaceLost() { 70 void OnscreenDisplayClient::OutputSurfaceLost() {
71 output_surface_lost_ = true; 71 output_surface_lost_ = true;
72 surface_display_output_surface_->DidLoseOutputSurface(); 72 surface_display_output_surface_->DidLoseOutputSurface();
73 } 73 }
74 74
75 void OnscreenDisplayClient::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { 75 void OnscreenDisplayClient::SetMemoryPolicy(const ManagedMemoryPolicy& policy) {
76 surface_display_output_surface_->SetMemoryPolicy(policy); 76 surface_display_output_surface_->SetMemoryPolicy(policy);
77 } 77 }
78 78
79 } // namespace cc 79 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/onscreen_display_client.h ('k') | cc/surfaces/surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698