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

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

Issue 2452483002: Move GpuMemoryBufferManager and SharedBitmapManager to CompositorFrameSink (Closed)
Patch Set: rebase Created 4 years, 1 month 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 <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "cc/output/renderer_settings.h" 12 #include "cc/output/renderer_settings.h"
13 13
14 namespace base { 14 namespace base {
15 class SingleThreadTaskRunner; 15 class SingleThreadTaskRunner;
16 } 16 }
17 17
18 namespace cc { 18 namespace cc {
19 class BeginFrameSource; 19 class BeginFrameSource;
20 class ContextProvider; 20 class ContextProvider;
21 class ImageSerializationProcessor; 21 class ImageSerializationProcessor;
22 class SharedBitmapManager;
23 class TaskGraphRunner; 22 class TaskGraphRunner;
24 } 23 }
25 24
26 namespace gpu {
27 class GpuMemoryBufferManager;
28 }
29
30 namespace blink { 25 namespace blink {
31 namespace scheduler { 26 namespace scheduler {
32 class RendererScheduler; 27 class RendererScheduler;
33 } 28 }
34 } 29 }
35 30
36 namespace content { 31 namespace content {
37 32
38 class CompositorDependencies { 33 class CompositorDependencies {
39 public: 34 public:
40 virtual bool IsGpuRasterizationForced() = 0; 35 virtual bool IsGpuRasterizationForced() = 0;
41 virtual bool IsGpuRasterizationEnabled() = 0; 36 virtual bool IsGpuRasterizationEnabled() = 0;
42 virtual bool IsAsyncWorkerContextEnabled() = 0; 37 virtual bool IsAsyncWorkerContextEnabled() = 0;
43 virtual int GetGpuRasterizationMSAASampleCount() = 0; 38 virtual int GetGpuRasterizationMSAASampleCount() = 0;
44 virtual bool IsLcdTextEnabled() = 0; 39 virtual bool IsLcdTextEnabled() = 0;
45 virtual bool IsDistanceFieldTextEnabled() = 0; 40 virtual bool IsDistanceFieldTextEnabled() = 0;
46 virtual bool IsZeroCopyEnabled() = 0; 41 virtual bool IsZeroCopyEnabled() = 0;
47 virtual bool IsPartialRasterEnabled() = 0; 42 virtual bool IsPartialRasterEnabled() = 0;
48 virtual bool IsGpuMemoryBufferCompositorResourcesEnabled() = 0; 43 virtual bool IsGpuMemoryBufferCompositorResourcesEnabled() = 0;
49 virtual bool IsElasticOverscrollEnabled() = 0; 44 virtual bool IsElasticOverscrollEnabled() = 0;
50 virtual const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() = 0; 45 virtual const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() = 0;
51 virtual scoped_refptr<base::SingleThreadTaskRunner> 46 virtual scoped_refptr<base::SingleThreadTaskRunner>
52 GetCompositorMainThreadTaskRunner() = 0; 47 GetCompositorMainThreadTaskRunner() = 0;
53 // Returns null if the compositor is in single-threaded mode (ie. there is no 48 // Returns null if the compositor is in single-threaded mode (ie. there is no
54 // compositor thread). 49 // compositor thread).
55 virtual scoped_refptr<base::SingleThreadTaskRunner> 50 virtual scoped_refptr<base::SingleThreadTaskRunner>
56 GetCompositorImplThreadTaskRunner() = 0; 51 GetCompositorImplThreadTaskRunner() = 0;
57 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
58 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
59 virtual blink::scheduler::RendererScheduler* GetRendererScheduler() = 0; 52 virtual blink::scheduler::RendererScheduler* GetRendererScheduler() = 0;
60 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor() = 0; 53 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor() = 0;
61 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; 54 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0;
62 virtual bool AreImageDecodeTasksEnabled() = 0; 55 virtual bool AreImageDecodeTasksEnabled() = 0;
63 virtual bool IsThreadedAnimationEnabled() = 0; 56 virtual bool IsThreadedAnimationEnabled() = 0;
64 57
65 virtual ~CompositorDependencies() {} 58 virtual ~CompositorDependencies() {}
66 }; 59 };
67 60
68 } // namespace content 61 } // namespace content
69 62
70 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ 63 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_
OLDNEW
« no previous file with comments | « content/renderer/android/synchronous_compositor_frame_sink.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698