| 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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 | 10 |
| 11 namespace base { | 11 namespace base { |
| 12 class SingleThreadTaskRunner; | 12 class SingleThreadTaskRunner; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace cc { | 15 namespace cc { |
| 16 class BeginFrameSource; | 16 class BeginFrameSource; |
| 17 class ContextProvider; | 17 class ContextProvider; |
| 18 class SharedBitmapManager; | 18 class SharedBitmapManager; |
| 19 class TaskGraphRunner; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace gpu { | 22 namespace gpu { |
| 22 class GpuMemoryBufferManager; | 23 class GpuMemoryBufferManager; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace content { | 26 namespace content { |
| 26 class RendererScheduler; | 27 class RendererScheduler; |
| 27 | 28 |
| 28 class CompositorDependencies { | 29 class CompositorDependencies { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 45 // Returns null if the compositor is in single-threaded mode (ie. there is no | 46 // Returns null if the compositor is in single-threaded mode (ie. there is no |
| 46 // compositor thread). | 47 // compositor thread). |
| 47 virtual scoped_refptr<base::SingleThreadTaskRunner> | 48 virtual scoped_refptr<base::SingleThreadTaskRunner> |
| 48 GetCompositorImplThreadTaskRunner() = 0; | 49 GetCompositorImplThreadTaskRunner() = 0; |
| 49 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | 50 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
| 50 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | 51 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
| 51 virtual RendererScheduler* GetRendererScheduler() = 0; | 52 virtual RendererScheduler* GetRendererScheduler() = 0; |
| 52 virtual cc::ContextProvider* GetSharedMainThreadContextProvider() = 0; | 53 virtual cc::ContextProvider* GetSharedMainThreadContextProvider() = 0; |
| 53 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 54 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
| 54 int routing_id) = 0; | 55 int routing_id) = 0; |
| 56 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
| 57 virtual bool IsGatherPixelRefsEnabled() = 0; |
| 55 | 58 |
| 56 virtual ~CompositorDependencies() {} | 59 virtual ~CompositorDependencies() {} |
| 57 }; | 60 }; |
| 58 | 61 |
| 59 } // namespace content | 62 } // namespace content |
| 60 | 63 |
| 61 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ | 64 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ |
| OLD | NEW |