| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_GPU_COMPOSITOR_UTIL_H_ | 5 #ifndef CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ |
| 6 #define CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ | 6 #define CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // Returns true if gpu rasterization is on (via flags) for the renderer. | 39 // Returns true if gpu rasterization is on (via flags) for the renderer. |
| 40 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); | 40 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); |
| 41 | 41 |
| 42 // Returns the number of multisample antialiasing samples (via flags) for | 42 // Returns the number of multisample antialiasing samples (via flags) for |
| 43 // GPU rasterization. | 43 // GPU rasterization. |
| 44 CONTENT_EXPORT int GpuRasterizationMSAASampleCount(); | 44 CONTENT_EXPORT int GpuRasterizationMSAASampleCount(); |
| 45 | 45 |
| 46 // Returns true if force-gpu-rasterization is on (via flags) for the renderer. | 46 // Returns true if force-gpu-rasterization is on (via flags) for the renderer. |
| 47 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled(); | 47 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled(); |
| 48 | 48 |
| 49 // Returns true if threaded GPU rasterization is on (via flags) for the | |
| 50 // renderer. | |
| 51 CONTENT_EXPORT bool IsThreadedGpuRasterizationEnabled(); | |
| 52 | |
| 53 // Returns the number of raster threads to use for compositing. | 49 // Returns the number of raster threads to use for compositing. |
| 54 CONTENT_EXPORT int NumberOfRendererRasterThreads(); | 50 CONTENT_EXPORT int NumberOfRendererRasterThreads(); |
| 55 | 51 |
| 56 // Returns the number of raster threads to use for compositing that are forced | 52 // Returns the number of raster threads to use for compositing that are forced |
| 57 // by the command line. | 53 // by the command line. |
| 58 CONTENT_EXPORT int ForceNumberOfRendererRasterThreads(); | 54 CONTENT_EXPORT int ForceNumberOfRendererRasterThreads(); |
| 59 | 55 |
| 60 // Returns true if using cc Surfaces is allowed. | 56 // Returns true if using cc Surfaces is allowed. |
| 61 CONTENT_EXPORT bool UseSurfacesEnabled(); | 57 CONTENT_EXPORT bool UseSurfacesEnabled(); |
| 62 | 58 |
| 63 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); | 59 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); |
| 64 CONTENT_EXPORT base::Value* GetProblems(); | 60 CONTENT_EXPORT base::Value* GetProblems(); |
| 65 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); | 61 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); |
| 66 | 62 |
| 67 } // namespace content | 63 } // namespace content |
| 68 | 64 |
| 69 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ | 65 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ |
| OLD | NEW |