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

Side by Side Diff: content/renderer/gpu/compositor_dependencies.h

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_
6 #define CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_
7 7
8 #include <memory>
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
12 12
13 namespace base { 13 namespace base {
14 class SingleThreadTaskRunner; 14 class SingleThreadTaskRunner;
15 } 15 }
16 16
17 namespace cc { 17 namespace cc {
18 class BeginFrameSource; 18 class BeginFrameSource;
19 class ContextProvider; 19 class ContextProvider;
20 class ImageSerializationProcessor; 20 class ImageSerializationProcessor;
21 class SharedBitmapManager; 21 class SharedBitmapManager;
(...skipping 25 matching lines...) Expand all
47 virtual scoped_refptr<base::SingleThreadTaskRunner> 47 virtual scoped_refptr<base::SingleThreadTaskRunner>
48 GetCompositorMainThreadTaskRunner() = 0; 48 GetCompositorMainThreadTaskRunner() = 0;
49 // Returns null if the compositor is in single-threaded mode (ie. there is no 49 // Returns null if the compositor is in single-threaded mode (ie. there is no
50 // compositor thread). 50 // compositor thread).
51 virtual scoped_refptr<base::SingleThreadTaskRunner> 51 virtual scoped_refptr<base::SingleThreadTaskRunner>
52 GetCompositorImplThreadTaskRunner() = 0; 52 GetCompositorImplThreadTaskRunner() = 0;
53 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; 53 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
54 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; 54 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
55 virtual scheduler::RendererScheduler* GetRendererScheduler() = 0; 55 virtual scheduler::RendererScheduler* GetRendererScheduler() = 0;
56 virtual cc::ContextProvider* GetSharedMainThreadContextProvider() = 0; 56 virtual cc::ContextProvider* GetSharedMainThreadContextProvider() = 0;
57 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 57 virtual std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
58 int routing_id) = 0; 58 int routing_id) = 0;
59 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor() = 0; 59 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor() = 0;
60 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; 60 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0;
61 virtual bool AreImageDecodeTasksEnabled() = 0; 61 virtual bool AreImageDecodeTasksEnabled() = 0;
62 virtual bool IsThreadedAnimationEnabled() = 0; 62 virtual bool IsThreadedAnimationEnabled() = 0;
63 63
64 virtual ~CompositorDependencies() {} 64 virtual ~CompositorDependencies() {}
65 }; 65 };
66 66
67 } // namespace content 67 } // namespace content
68 68
69 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ 69 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_
OLDNEW
« no previous file with comments | « content/renderer/geolocation_dispatcher.h ('k') | content/renderer/gpu/compositor_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698