| 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 |
| 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 ImageSerializationProcessor; | |
| 20 class TaskGraphRunner; | 19 class TaskGraphRunner; |
| 21 } | 20 } |
| 22 | 21 |
| 23 namespace blink { | 22 namespace blink { |
| 24 namespace scheduler { | 23 namespace scheduler { |
| 25 class RendererScheduler; | 24 class RendererScheduler; |
| 26 } | 25 } |
| 27 } | 26 } |
| 28 | 27 |
| 29 namespace content { | 28 namespace content { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 41 virtual bool IsGpuMemoryBufferCompositorResourcesEnabled() = 0; | 40 virtual bool IsGpuMemoryBufferCompositorResourcesEnabled() = 0; |
| 42 virtual bool IsElasticOverscrollEnabled() = 0; | 41 virtual bool IsElasticOverscrollEnabled() = 0; |
| 43 virtual const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() = 0; | 42 virtual const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() = 0; |
| 44 virtual scoped_refptr<base::SingleThreadTaskRunner> | 43 virtual scoped_refptr<base::SingleThreadTaskRunner> |
| 45 GetCompositorMainThreadTaskRunner() = 0; | 44 GetCompositorMainThreadTaskRunner() = 0; |
| 46 // Returns null if the compositor is in single-threaded mode (ie. there is no | 45 // Returns null if the compositor is in single-threaded mode (ie. there is no |
| 47 // compositor thread). | 46 // compositor thread). |
| 48 virtual scoped_refptr<base::SingleThreadTaskRunner> | 47 virtual scoped_refptr<base::SingleThreadTaskRunner> |
| 49 GetCompositorImplThreadTaskRunner() = 0; | 48 GetCompositorImplThreadTaskRunner() = 0; |
| 50 virtual blink::scheduler::RendererScheduler* GetRendererScheduler() = 0; | 49 virtual blink::scheduler::RendererScheduler* GetRendererScheduler() = 0; |
| 51 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor() = 0; | |
| 52 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; | 50 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
| 53 virtual bool AreImageDecodeTasksEnabled() = 0; | 51 virtual bool AreImageDecodeTasksEnabled() = 0; |
| 54 virtual bool IsThreadedAnimationEnabled() = 0; | 52 virtual bool IsThreadedAnimationEnabled() = 0; |
| 55 | 53 |
| 56 virtual ~CompositorDependencies() {} | 54 virtual ~CompositorDependencies() {} |
| 57 }; | 55 }; |
| 58 | 56 |
| 59 } // namespace content | 57 } // namespace content |
| 60 | 58 |
| 61 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ | 59 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ |
| OLD | NEW |