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