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

Side by Side Diff: content/test/fake_compositor_dependencies.cc

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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 | « content/test/fake_compositor_dependencies.h ('k') | content/test/fake_renderer_scheduler.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 "content/test/fake_compositor_dependencies.h" 5 #include "content/test/fake_compositor_dependencies.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/memory/ptr_util.h"
9 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h" 11 #include "base/thread_task_runner_handle.h"
11 #include "cc/test/fake_external_begin_frame_source.h" 12 #include "cc/test/fake_external_begin_frame_source.h"
12 #include "third_party/khronos/GLES2/gl2.h" 13 #include "third_party/khronos/GLES2/gl2.h"
13 #include "ui/gfx/buffer_types.h" 14 #include "ui/gfx/buffer_types.h"
14 15
15 namespace content { 16 namespace content {
16 17
17 FakeCompositorDependencies::FakeCompositorDependencies() { 18 FakeCompositorDependencies::FakeCompositorDependencies() {
18 } 19 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 FakeCompositorDependencies::GetRendererScheduler() { 84 FakeCompositorDependencies::GetRendererScheduler() {
84 return &renderer_scheduler_; 85 return &renderer_scheduler_;
85 } 86 }
86 87
87 cc::ContextProvider* 88 cc::ContextProvider*
88 FakeCompositorDependencies::GetSharedMainThreadContextProvider() { 89 FakeCompositorDependencies::GetSharedMainThreadContextProvider() {
89 NOTREACHED(); 90 NOTREACHED();
90 return nullptr; 91 return nullptr;
91 } 92 }
92 93
93 scoped_ptr<cc::BeginFrameSource> 94 std::unique_ptr<cc::BeginFrameSource>
94 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) { 95 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) {
95 double refresh_rate = 200.0; 96 double refresh_rate = 200.0;
96 return make_scoped_ptr(new cc::FakeExternalBeginFrameSource(refresh_rate)); 97 return base::WrapUnique(new cc::FakeExternalBeginFrameSource(refresh_rate));
97 } 98 }
98 99
99 cc::ImageSerializationProcessor* 100 cc::ImageSerializationProcessor*
100 FakeCompositorDependencies::GetImageSerializationProcessor() { 101 FakeCompositorDependencies::GetImageSerializationProcessor() {
101 return nullptr; 102 return nullptr;
102 } 103 }
103 104
104 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { 105 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() {
105 return &task_graph_runner_; 106 return &task_graph_runner_;
106 } 107 }
107 108
108 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { 109 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() {
109 return false; 110 return false;
110 } 111 }
111 112
112 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { 113 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() {
113 return true; 114 return true;
114 } 115 }
115 116
116 } // namespace content 117 } // namespace content
OLDNEW
« no previous file with comments | « content/test/fake_compositor_dependencies.h ('k') | content/test/fake_renderer_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698