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 <memory> |
| 9 |
8 #include "base/values.h" | 10 #include "base/values.h" |
9 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
10 | 12 |
11 namespace content { | 13 namespace content { |
12 | 14 |
13 // Note: When adding a function here, please make sure the logic is not | 15 // Note: When adding a function here, please make sure the logic is not |
14 // duplicated in the renderer. | 16 // duplicated in the renderer. |
15 | 17 |
16 // Returns true if zero-copy uploads is on (via flags, or platform default). | 18 // Returns true if zero-copy uploads is on (via flags, or platform default). |
17 // Only one of one-copy and zero-copy can be enabled at a time. | 19 // Only one of one-copy and zero-copy can be enabled at a time. |
(...skipping 17 matching lines...) Expand all Loading... |
35 | 37 |
36 // Returns the number of raster threads to use for compositing. | 38 // Returns the number of raster threads to use for compositing. |
37 CONTENT_EXPORT int NumberOfRendererRasterThreads(); | 39 CONTENT_EXPORT int NumberOfRendererRasterThreads(); |
38 | 40 |
39 // Returns true if main thread can be pipelined with activation. | 41 // Returns true if main thread can be pipelined with activation. |
40 CONTENT_EXPORT bool IsMainFrameBeforeActivationEnabled(); | 42 CONTENT_EXPORT bool IsMainFrameBeforeActivationEnabled(); |
41 | 43 |
42 // Returns true if images can be decode asynchronously from rasterization. | 44 // Returns true if images can be decode asynchronously from rasterization. |
43 CONTENT_EXPORT bool IsCheckerImagingEnabled(); | 45 CONTENT_EXPORT bool IsCheckerImagingEnabled(); |
44 | 46 |
45 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); | 47 CONTENT_EXPORT std::unique_ptr<base::DictionaryValue> GetFeatureStatus(); |
46 CONTENT_EXPORT base::Value* GetProblems(); | 48 CONTENT_EXPORT std::unique_ptr<base::ListValue> GetProblems(); |
47 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); | 49 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); |
48 | 50 |
49 } // namespace content | 51 } // namespace content |
50 | 52 |
51 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ | 53 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ |
OLD | NEW |