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 12 matching lines...) Expand all Loading... |
23 namespace scheduler { | 23 namespace scheduler { |
24 class RendererScheduler; | 24 class RendererScheduler; |
25 } | 25 } |
26 } | 26 } |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 | 29 |
30 class CompositorDependencies { | 30 class CompositorDependencies { |
31 public: | 31 public: |
32 virtual bool IsGpuRasterizationForced() = 0; | 32 virtual bool IsGpuRasterizationForced() = 0; |
33 virtual bool IsGpuRasterizationEnabled() = 0; | |
34 virtual bool IsAsyncWorkerContextEnabled() = 0; | 33 virtual bool IsAsyncWorkerContextEnabled() = 0; |
35 virtual int GetGpuRasterizationMSAASampleCount() = 0; | 34 virtual int GetGpuRasterizationMSAASampleCount() = 0; |
36 virtual bool IsLcdTextEnabled() = 0; | 35 virtual bool IsLcdTextEnabled() = 0; |
37 virtual bool IsDistanceFieldTextEnabled() = 0; | 36 virtual bool IsDistanceFieldTextEnabled() = 0; |
38 virtual bool IsZeroCopyEnabled() = 0; | 37 virtual bool IsZeroCopyEnabled() = 0; |
39 virtual bool IsPartialRasterEnabled() = 0; | 38 virtual bool IsPartialRasterEnabled() = 0; |
40 virtual bool IsGpuMemoryBufferCompositorResourcesEnabled() = 0; | 39 virtual bool IsGpuMemoryBufferCompositorResourcesEnabled() = 0; |
41 virtual bool IsElasticOverscrollEnabled() = 0; | 40 virtual bool IsElasticOverscrollEnabled() = 0; |
42 virtual const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() = 0; | 41 virtual const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() = 0; |
43 virtual scoped_refptr<base::SingleThreadTaskRunner> | 42 virtual scoped_refptr<base::SingleThreadTaskRunner> |
44 GetCompositorMainThreadTaskRunner() = 0; | 43 GetCompositorMainThreadTaskRunner() = 0; |
45 // Returns null if the compositor is in single-threaded mode (ie. there is no | 44 // Returns null if the compositor is in single-threaded mode (ie. there is no |
46 // compositor thread). | 45 // compositor thread). |
47 virtual scoped_refptr<base::SingleThreadTaskRunner> | 46 virtual scoped_refptr<base::SingleThreadTaskRunner> |
48 GetCompositorImplThreadTaskRunner() = 0; | 47 GetCompositorImplThreadTaskRunner() = 0; |
49 virtual blink::scheduler::RendererScheduler* GetRendererScheduler() = 0; | 48 virtual blink::scheduler::RendererScheduler* GetRendererScheduler() = 0; |
50 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; | 49 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
51 virtual bool AreImageDecodeTasksEnabled() = 0; | 50 virtual bool AreImageDecodeTasksEnabled() = 0; |
52 virtual bool IsThreadedAnimationEnabled() = 0; | 51 virtual bool IsThreadedAnimationEnabled() = 0; |
53 virtual bool IsScrollAnimatorEnabled() = 0; | 52 virtual bool IsScrollAnimatorEnabled() = 0; |
54 | 53 |
55 virtual ~CompositorDependencies() {} | 54 virtual ~CompositorDependencies() {} |
56 }; | 55 }; |
57 | 56 |
58 } // namespace content | 57 } // namespace content |
59 | 58 |
60 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ | 59 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ |
OLD | NEW |