| 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 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace content { | 26 namespace content { |
| 27 class RendererScheduler; | 27 class RendererScheduler; |
| 28 | 28 |
| 29 class CompositorDependencies { | 29 class CompositorDependencies { |
| 30 public: | 30 public: |
| 31 virtual bool IsImplSidePaintingEnabled() = 0; | 31 virtual bool IsImplSidePaintingEnabled() = 0; |
| 32 virtual bool IsGpuRasterizationForced() = 0; | 32 virtual bool IsGpuRasterizationForced() = 0; |
| 33 virtual bool IsGpuRasterizationEnabled() = 0; | 33 virtual bool IsGpuRasterizationEnabled() = 0; |
| 34 virtual bool IsThreadedGpuRasterizationEnabled() = 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 IsOneCopyEnabled() = 0; | 38 virtual bool IsOneCopyEnabled() = 0; |
| 40 virtual bool IsElasticOverscrollEnabled() = 0; | 39 virtual bool IsElasticOverscrollEnabled() = 0; |
| 41 // Only valid in single threaded mode. | 40 // Only valid in single threaded mode. |
| 42 virtual bool UseSingleThreadScheduler() = 0; | 41 virtual bool UseSingleThreadScheduler() = 0; |
| 43 virtual uint32 GetImageTextureTarget() = 0; | 42 virtual uint32 GetImageTextureTarget() = 0; |
| 44 virtual scoped_refptr<base::SingleThreadTaskRunner> | 43 virtual scoped_refptr<base::SingleThreadTaskRunner> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 55 int routing_id) = 0; | 54 int routing_id) = 0; |
| 56 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; | 55 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; |
| 57 virtual bool IsGatherPixelRefsEnabled() = 0; | 56 virtual bool IsGatherPixelRefsEnabled() = 0; |
| 58 | 57 |
| 59 virtual ~CompositorDependencies() {} | 58 virtual ~CompositorDependencies() {} |
| 60 }; | 59 }; |
| 61 | 60 |
| 62 } // namespace content | 61 } // namespace content |
| 63 | 62 |
| 64 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ | 63 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ |
| OLD | NEW |