OLD | NEW |
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 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() = 0; | 50 virtual const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() = 0; |
51 virtual scoped_refptr<base::SingleThreadTaskRunner> | 51 virtual scoped_refptr<base::SingleThreadTaskRunner> |
52 GetCompositorMainThreadTaskRunner() = 0; | 52 GetCompositorMainThreadTaskRunner() = 0; |
53 // Returns null if the compositor is in single-threaded mode (ie. there is no | 53 // Returns null if the compositor is in single-threaded mode (ie. there is no |
54 // compositor thread). | 54 // compositor thread). |
55 virtual scoped_refptr<base::SingleThreadTaskRunner> | 55 virtual scoped_refptr<base::SingleThreadTaskRunner> |
56 GetCompositorImplThreadTaskRunner() = 0; | 56 GetCompositorImplThreadTaskRunner() = 0; |
57 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | 57 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
58 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | 58 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
59 virtual blink::scheduler::RendererScheduler* GetRendererScheduler() = 0; | 59 virtual blink::scheduler::RendererScheduler* GetRendererScheduler() = 0; |
60 // TODO(danakj): This should be part of RenderThreadImpl (or some API from it | |
61 // to RenderWidget). But RenderThreadImpl is null in RenderViewTest. | |
62 virtual std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | |
63 int routing_id) = 0; | |
64 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor() = 0; | 60 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor() = 0; |
65 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; | 61 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
66 virtual bool AreImageDecodeTasksEnabled() = 0; | 62 virtual bool AreImageDecodeTasksEnabled() = 0; |
67 virtual bool IsThreadedAnimationEnabled() = 0; | 63 virtual bool IsThreadedAnimationEnabled() = 0; |
68 | 64 |
69 virtual ~CompositorDependencies() {} | 65 virtual ~CompositorDependencies() {} |
70 }; | 66 }; |
71 | 67 |
72 } // namespace content | 68 } // namespace content |
73 | 69 |
74 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ | 70 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ |
OLD | NEW |