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 <vector> |
| 9 |
8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
10 | 12 |
11 namespace base { | 13 namespace base { |
12 class SingleThreadTaskRunner; | 14 class SingleThreadTaskRunner; |
13 } | 15 } |
14 | 16 |
15 namespace cc { | 17 namespace cc { |
16 class BeginFrameSource; | 18 class BeginFrameSource; |
17 class ContextProvider; | 19 class ContextProvider; |
(...skipping 14 matching lines...) Expand all Loading... |
32 class CompositorDependencies { | 34 class CompositorDependencies { |
33 public: | 35 public: |
34 virtual bool IsGpuRasterizationForced() = 0; | 36 virtual bool IsGpuRasterizationForced() = 0; |
35 virtual bool IsGpuRasterizationEnabled() = 0; | 37 virtual bool IsGpuRasterizationEnabled() = 0; |
36 virtual int GetGpuRasterizationMSAASampleCount() = 0; | 38 virtual int GetGpuRasterizationMSAASampleCount() = 0; |
37 virtual bool IsLcdTextEnabled() = 0; | 39 virtual bool IsLcdTextEnabled() = 0; |
38 virtual bool IsDistanceFieldTextEnabled() = 0; | 40 virtual bool IsDistanceFieldTextEnabled() = 0; |
39 virtual bool IsZeroCopyEnabled() = 0; | 41 virtual bool IsZeroCopyEnabled() = 0; |
40 virtual bool IsOneCopyEnabled() = 0; | 42 virtual bool IsOneCopyEnabled() = 0; |
41 virtual bool IsElasticOverscrollEnabled() = 0; | 43 virtual bool IsElasticOverscrollEnabled() = 0; |
42 virtual uint32 GetImageTextureTarget() = 0; | 44 virtual std::vector<unsigned> GetImageTextureTargets() = 0; |
43 virtual scoped_refptr<base::SingleThreadTaskRunner> | 45 virtual scoped_refptr<base::SingleThreadTaskRunner> |
44 GetCompositorMainThreadTaskRunner() = 0; | 46 GetCompositorMainThreadTaskRunner() = 0; |
45 // Returns null if the compositor is in single-threaded mode (ie. there is no | 47 // Returns null if the compositor is in single-threaded mode (ie. there is no |
46 // compositor thread). | 48 // compositor thread). |
47 virtual scoped_refptr<base::SingleThreadTaskRunner> | 49 virtual scoped_refptr<base::SingleThreadTaskRunner> |
48 GetCompositorImplThreadTaskRunner() = 0; | 50 GetCompositorImplThreadTaskRunner() = 0; |
49 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | 51 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
50 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | 52 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
51 virtual scheduler::RendererScheduler* GetRendererScheduler() = 0; | 53 virtual scheduler::RendererScheduler* GetRendererScheduler() = 0; |
52 virtual cc::ContextProvider* GetSharedMainThreadContextProvider() = 0; | 54 virtual cc::ContextProvider* GetSharedMainThreadContextProvider() = 0; |
53 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 55 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
54 int routing_id) = 0; | 56 int routing_id) = 0; |
55 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; | 57 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
56 virtual bool IsGatherPixelRefsEnabled() = 0; | 58 virtual bool IsGatherPixelRefsEnabled() = 0; |
57 | 59 |
58 virtual ~CompositorDependencies() {} | 60 virtual ~CompositorDependencies() {} |
59 }; | 61 }; |
60 | 62 |
61 } // namespace content | 63 } // namespace content |
62 | 64 |
63 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ | 65 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ |
OLD | NEW |