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 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 // Note: When adding a function here, please make sure the logic is not | 13 // Note: When adding a function here, please make sure the logic is not |
14 // duplicated in the renderer. | 14 // duplicated in the renderer. |
15 | 15 |
16 // Returns true if the virtual viewport model of pinch-to-zoom is on (via | 16 // Returns true if the virtual viewport model of pinch-to-zoom is on (via |
17 // flags, or platform default). | 17 // flags, or platform default). |
18 CONTENT_EXPORT bool IsPinchVirtualViewportEnabled(); | 18 CONTENT_EXPORT bool IsPinchVirtualViewportEnabled(); |
19 | 19 |
20 // Returns true if the threaded compositor is on (via flags or field trial). | |
21 CONTENT_EXPORT bool IsThreadedCompositingEnabled(); | |
22 | |
23 // Returns true if delegated-renderer is on (via flags, or platform default). | 20 // Returns true if delegated-renderer is on (via flags, or platform default). |
24 CONTENT_EXPORT bool IsDelegatedRendererEnabled(); | 21 CONTENT_EXPORT bool IsDelegatedRendererEnabled(); |
25 | 22 |
26 // Returns true if impl-side painting is on (via flags, or platform default) | 23 // Returns true if impl-side painting is on (via flags, or platform default) |
27 // for the renderer. | 24 // for the renderer. |
28 CONTENT_EXPORT bool IsImplSidePaintingEnabled(); | 25 CONTENT_EXPORT bool IsImplSidePaintingEnabled(); |
29 | 26 |
30 // Returns true if gpu rasterization is on (via flags) for the renderer. | 27 // Returns true if gpu rasterization is on (via flags) for the renderer. |
31 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); | 28 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); |
32 | 29 |
33 // Returns true if force-gpu-rasterization is on (via flags) for the renderer. | 30 // Returns true if force-gpu-rasterization is on (via flags) for the renderer. |
34 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled(); | 31 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled(); |
35 | 32 |
36 CONTENT_EXPORT base::Value* GetFeatureStatus(); | 33 CONTENT_EXPORT base::Value* GetFeatureStatus(); |
37 CONTENT_EXPORT base::Value* GetProblems(); | 34 CONTENT_EXPORT base::Value* GetProblems(); |
38 CONTENT_EXPORT base::Value* GetDriverBugWorkarounds(); | 35 CONTENT_EXPORT base::Value* GetDriverBugWorkarounds(); |
39 | 36 |
40 } // namespace content | 37 } // namespace content |
41 | 38 |
42 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ | 39 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ |
OLD | NEW |