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 14 matching lines...) Expand all Loading... | |
25 CONTENT_EXPORT bool IsDelegatedRendererEnabled(); | 25 CONTENT_EXPORT bool IsDelegatedRendererEnabled(); |
26 | 26 |
27 // Returns true if impl-side painting is on (via flags, or platform default) | 27 // Returns true if impl-side painting is on (via flags, or platform default) |
28 // for the renderer. | 28 // for the renderer. |
29 CONTENT_EXPORT bool IsImplSidePaintingEnabled(); | 29 CONTENT_EXPORT bool IsImplSidePaintingEnabled(); |
30 | 30 |
31 // Returns true if one-copy uploads is on (via flags, or platform default). | 31 // Returns true if one-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 IsOneCopyUploadEnabled(); | 33 CONTENT_EXPORT bool IsOneCopyUploadEnabled(); |
34 | 34 |
35 // Returns true if the GpuMemoryBuffer implementation used by the compositor | |
36 // supports persistent contents across maps. | |
37 CONTENT_EXPORT bool HavePersistentGpuMemoryBuffers(); | |
reveman
2015/05/22 17:15:13
I'm not sure the name of this function makes sense
danakj
2015/05/26 19:02:52
okay~
danakj
2015/05/26 23:37:34
Done.
| |
38 | |
35 // Returns true if zero-copy uploads is on (via flags, or platform default). | 39 // Returns true if zero-copy uploads is on (via flags, or platform default). |
36 // Only one of one-copy and zero-copy can be enabled at a time. | 40 // Only one of one-copy and zero-copy can be enabled at a time. |
37 CONTENT_EXPORT bool IsZeroCopyUploadEnabled(); | 41 CONTENT_EXPORT bool IsZeroCopyUploadEnabled(); |
38 | 42 |
39 // Returns true if gpu rasterization is on (via flags) for the renderer. | 43 // Returns true if gpu rasterization is on (via flags) for the renderer. |
40 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); | 44 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); |
41 | 45 |
42 // Returns the number of multisample antialiasing samples (via flags) for | 46 // Returns the number of multisample antialiasing samples (via flags) for |
43 // GPU rasterization. | 47 // GPU rasterization. |
44 CONTENT_EXPORT int GpuRasterizationMSAASampleCount(); | 48 CONTENT_EXPORT int GpuRasterizationMSAASampleCount(); |
45 | 49 |
46 // Returns true if force-gpu-rasterization is on (via flags) for the renderer. | 50 // Returns true if force-gpu-rasterization is on (via flags) for the renderer. |
47 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled(); | 51 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled(); |
48 | 52 |
49 // Returns the number of raster threads to use for compositing. | 53 // Returns the number of raster threads to use for compositing. |
50 CONTENT_EXPORT int NumberOfRendererRasterThreads(); | 54 CONTENT_EXPORT int NumberOfRendererRasterThreads(); |
51 | 55 |
52 // Returns true if using cc Surfaces is allowed. | 56 // Returns true if using cc Surfaces is allowed. |
53 CONTENT_EXPORT bool UseSurfacesEnabled(); | 57 CONTENT_EXPORT bool UseSurfacesEnabled(); |
54 | 58 |
55 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); | 59 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); |
56 CONTENT_EXPORT base::Value* GetProblems(); | 60 CONTENT_EXPORT base::Value* GetProblems(); |
57 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); | 61 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); |
58 | 62 |
59 } // namespace content | 63 } // namespace content |
60 | 64 |
61 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ | 65 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ |
OLD | NEW |