| 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 17 matching lines...) Expand all Loading... |
| 28 // Only one of one-copy and zero-copy can be enabled at a time. | 28 // Only one of one-copy and zero-copy can be enabled at a time. |
| 29 CONTENT_EXPORT bool IsOneCopyUploadEnabled(); | 29 CONTENT_EXPORT bool IsOneCopyUploadEnabled(); |
| 30 | 30 |
| 31 // Returns true if zero-copy uploads is on (via flags, or platform default). | 31 // Returns true if zero-copy uploads is on (via flags, or platform default). |
| 32 // Only one of one-copy and zero-copy can be enabled at a time. | 32 // Only one of one-copy and zero-copy can be enabled at a time. |
| 33 CONTENT_EXPORT bool IsZeroCopyUploadEnabled(); | 33 CONTENT_EXPORT bool IsZeroCopyUploadEnabled(); |
| 34 | 34 |
| 35 // Returns true if gpu rasterization is on (via flags) for the renderer. | 35 // Returns true if gpu rasterization is on (via flags) for the renderer. |
| 36 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); | 36 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); |
| 37 | 37 |
| 38 // Returns the number of multisample antialiasing samples (via flags) for |
| 39 // GPU rasterization. |
| 40 CONTENT_EXPORT int GpuRasterizationMSAASampleCount(); |
| 41 |
| 38 // Returns true if force-gpu-rasterization is on (via flags) for the renderer. | 42 // Returns true if force-gpu-rasterization is on (via flags) for the renderer. |
| 39 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled(); | 43 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled(); |
| 40 | 44 |
| 41 // Returns the number of raster threads to use for compositing. | 45 // Returns the number of raster threads to use for compositing. |
| 42 CONTENT_EXPORT int NumberOfRendererRasterThreads(); | 46 CONTENT_EXPORT int NumberOfRendererRasterThreads(); |
| 43 | 47 |
| 44 // Returns the number of raster threads to use for compositing that are forced | 48 // Returns the number of raster threads to use for compositing that are forced |
| 45 // by the command line. | 49 // by the command line. |
| 46 CONTENT_EXPORT int ForceNumberOfRendererRasterThreads(); | 50 CONTENT_EXPORT int ForceNumberOfRendererRasterThreads(); |
| 47 | 51 |
| 48 // Returns true if using cc Surfaces is allowed. | 52 // Returns true if using cc Surfaces is allowed. |
| 49 CONTENT_EXPORT bool UseSurfacesEnabled(); | 53 CONTENT_EXPORT bool UseSurfacesEnabled(); |
| 50 | 54 |
| 51 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); | 55 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); |
| 52 CONTENT_EXPORT base::Value* GetProblems(); | 56 CONTENT_EXPORT base::Value* GetProblems(); |
| 53 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); | 57 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); |
| 54 | 58 |
| 55 } // namespace content | 59 } // namespace content |
| 56 | 60 |
| 57 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ | 61 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ |
| OLD | NEW |