OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ |
| 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 |
| 11 namespace base { |
| 12 class SingleThreadTaskRunner; |
| 13 } |
| 14 |
| 15 namespace cc { |
| 16 class BeginFrameSource; |
| 17 class ContextProvider; |
| 18 class SharedBitmapManager; |
| 19 } |
| 20 |
| 21 namespace gpu { |
| 22 class GpuMemoryBufferManager; |
| 23 } |
| 24 |
| 25 namespace content { |
| 26 class RendererScheduler; |
| 27 |
| 28 class CompositorDependencies { |
| 29 public: |
| 30 virtual bool IsImplSidePaintingEnabled() = 0; |
| 31 virtual bool IsGpuRasterizationForced() = 0; |
| 32 virtual bool IsGpuRasterizationEnabled() = 0; |
| 33 virtual bool IsLcdTextEnabled() = 0; |
| 34 virtual bool IsDistanceFieldTextEnabled() = 0; |
| 35 virtual bool IsZeroCopyEnabled() = 0; |
| 36 virtual bool IsOneCopyEnabled() = 0; |
| 37 virtual uint32 GetImageTextureTarget() = 0; |
| 38 virtual scoped_refptr<base::SingleThreadTaskRunner> |
| 39 GetCompositorMainThreadTaskRunner() = 0; |
| 40 // Returns null if the compositor is in single-threaded mode (ie. there is no |
| 41 // compositor thread). |
| 42 virtual scoped_refptr<base::SingleThreadTaskRunner> |
| 43 GetCompositorImplThreadTaskRunner() = 0; |
| 44 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
| 45 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
| 46 virtual RendererScheduler* GetRendererScheduler() = 0; |
| 47 virtual cc::ContextProvider* GetSharedMainThreadContextProvider() = 0; |
| 48 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
| 49 int routing_id) = 0; |
| 50 |
| 51 virtual ~CompositorDependencies() {} |
| 52 }; |
| 53 |
| 54 } // namespace content |
| 55 |
| 56 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ |
OLD | NEW |