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 20 matching lines...) Expand all Loading... |
31 // Returns true if gpu rasterization is on (via flags) for the renderer. | 31 // Returns true if gpu rasterization is on (via flags) for the renderer. |
32 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); | 32 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); |
33 | 33 |
34 // Returns the number of multisample antialiasing samples (via flags) for | 34 // Returns the number of multisample antialiasing samples (via flags) for |
35 // GPU rasterization. | 35 // GPU rasterization. |
36 CONTENT_EXPORT int GpuRasterizationMSAASampleCount(); | 36 CONTENT_EXPORT int GpuRasterizationMSAASampleCount(); |
37 | 37 |
38 // Returns true if force-gpu-rasterization is on (via flags) for the renderer. | 38 // Returns true if force-gpu-rasterization is on (via flags) for the renderer. |
39 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled(); | 39 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled(); |
40 | 40 |
41 // Returns the number of raster threads to use for compositing. | 41 // Returns the number of worker threads to use in each renderer. |
42 CONTENT_EXPORT int NumberOfRendererRasterThreads(); | 42 CONTENT_EXPORT int NumberOfRendererWorkerThreads(); |
43 | 43 |
44 // Returns true if using cc Surfaces is allowed. | 44 // Returns true if using cc Surfaces is allowed. |
45 CONTENT_EXPORT bool UseSurfacesEnabled(); | 45 CONTENT_EXPORT bool UseSurfacesEnabled(); |
46 | 46 |
47 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); | 47 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); |
48 CONTENT_EXPORT base::Value* GetProblems(); | 48 CONTENT_EXPORT base::Value* GetProblems(); |
49 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); | 49 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); |
50 | 50 |
51 } // namespace content | 51 } // namespace content |
52 | 52 |
53 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ | 53 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ |
OLD | NEW |