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 property tree verification is enabled (via flags or platform | 16 // Returns true if property tree verification is enabled (via flags or platform |
17 // default). | 17 // default). |
18 CONTENT_EXPORT bool IsPropertyTreeVerificationEnabled(); | 18 CONTENT_EXPORT bool IsPropertyTreeVerificationEnabled(); |
19 | 19 |
20 // 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). |
21 CONTENT_EXPORT bool IsDelegatedRendererEnabled(); | 21 CONTENT_EXPORT bool IsDelegatedRendererEnabled(); |
22 | 22 |
23 // Returns true if impl-side painting is on (via flags, or platform default) | |
24 // for the renderer. | |
25 CONTENT_EXPORT bool IsImplSidePaintingEnabled(); | |
26 | |
27 // Returns true if one-copy uploads is on (via flags, or platform default). | 23 // Returns true if one-copy uploads is on (via flags, or platform default). |
28 // Only one of one-copy and zero-copy can be enabled at a time. | 24 // Only one of one-copy and zero-copy can be enabled at a time. |
29 CONTENT_EXPORT bool IsOneCopyUploadEnabled(); | 25 CONTENT_EXPORT bool IsOneCopyUploadEnabled(); |
30 | 26 |
31 // Returns true if zero-copy uploads is on (via flags, or platform default). | 27 // 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. | 28 // Only one of one-copy and zero-copy can be enabled at a time. |
33 CONTENT_EXPORT bool IsZeroCopyUploadEnabled(); | 29 CONTENT_EXPORT bool IsZeroCopyUploadEnabled(); |
34 | 30 |
35 // 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. |
36 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); | 32 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); |
(...skipping 11 matching lines...) Expand all Loading... |
48 // Returns true if using cc Surfaces is allowed. | 44 // Returns true if using cc Surfaces is allowed. |
49 CONTENT_EXPORT bool UseSurfacesEnabled(); | 45 CONTENT_EXPORT bool UseSurfacesEnabled(); |
50 | 46 |
51 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); | 47 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); |
52 CONTENT_EXPORT base::Value* GetProblems(); | 48 CONTENT_EXPORT base::Value* GetProblems(); |
53 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); | 49 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); |
54 | 50 |
55 } // namespace content | 51 } // namespace content |
56 | 52 |
57 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ | 53 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ |
OLD | NEW |