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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... | |
31 virtual bool IsGpuRasterizationForced() = 0; | 31 virtual bool IsGpuRasterizationForced() = 0; |
32 virtual bool IsGpuRasterizationEnabled() = 0; | 32 virtual bool IsGpuRasterizationEnabled() = 0; |
33 virtual int GetGpuRasterizationMSAASampleCount() = 0; | 33 virtual int GetGpuRasterizationMSAASampleCount() = 0; |
34 virtual bool IsLcdTextEnabled() = 0; | 34 virtual bool IsLcdTextEnabled() = 0; |
35 virtual bool IsDistanceFieldTextEnabled() = 0; | 35 virtual bool IsDistanceFieldTextEnabled() = 0; |
36 virtual bool IsZeroCopyEnabled() = 0; | 36 virtual bool IsZeroCopyEnabled() = 0; |
37 virtual bool IsOneCopyEnabled() = 0; | 37 virtual bool IsOneCopyEnabled() = 0; |
38 virtual bool IsElasticOverscrollEnabled() = 0; | 38 virtual bool IsElasticOverscrollEnabled() = 0; |
39 // Only valid in single threaded mode. | 39 // Only valid in single threaded mode. |
40 virtual bool UseSingleThreadScheduler() = 0; | 40 virtual bool UseSingleThreadScheduler() = 0; |
41 virtual bool IsThreadedGpuRasterizationEnabled() = 0; | |
danakj
2015/02/02 21:48:38
maybe move this up by other GpuRaster functions?
vmiura
2015/02/02 22:03:22
Done.
| |
41 virtual uint32 GetImageTextureTarget() = 0; | 42 virtual uint32 GetImageTextureTarget() = 0; |
42 virtual scoped_refptr<base::SingleThreadTaskRunner> | 43 virtual scoped_refptr<base::SingleThreadTaskRunner> |
43 GetCompositorMainThreadTaskRunner() = 0; | 44 GetCompositorMainThreadTaskRunner() = 0; |
44 // 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 |
45 // compositor thread). | 46 // compositor thread). |
46 virtual scoped_refptr<base::SingleThreadTaskRunner> | 47 virtual scoped_refptr<base::SingleThreadTaskRunner> |
47 GetCompositorImplThreadTaskRunner() = 0; | 48 GetCompositorImplThreadTaskRunner() = 0; |
48 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; | 49 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; |
49 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; | 50 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; |
50 virtual RendererScheduler* GetRendererScheduler() = 0; | 51 virtual RendererScheduler* GetRendererScheduler() = 0; |
51 virtual cc::ContextProvider* GetSharedMainThreadContextProvider() = 0; | 52 virtual cc::ContextProvider* GetSharedMainThreadContextProvider() = 0; |
52 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 53 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
53 int routing_id) = 0; | 54 int routing_id) = 0; |
54 | 55 |
55 virtual ~CompositorDependencies() {} | 56 virtual ~CompositorDependencies() {} |
56 }; | 57 }; |
57 | 58 |
58 } // namespace content | 59 } // namespace content |
59 | 60 |
60 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ | 61 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ |
OLD | NEW |