Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: content/browser/gpu/compositor_util.h

Issue 1375663002: Show GpuMemoryBuffer feature in chrome://gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WIP on reveman comments in #9 Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 zero-copy uploads is on (via flags, or platform default). 20 // Returns true if zero-copy uploads is on (via flags, or platform default).
21 // Only one of one-copy and zero-copy can be enabled at a time. 21 // Only one of one-copy and zero-copy can be enabled at a time.
22 CONTENT_EXPORT bool IsZeroCopyUploadEnabled(); 22 CONTENT_EXPORT bool IsZeroCopyUploadEnabled();
23 23
24 // Returns true if native GpuMemoryBuffer can be used and is on (via flags, or
reveman 2015/10/16 18:37:43 nit: s/GpuMemoryBuffer/GpuMemoryBuffers/
25 // platform default).
26 CONTENT_EXPORT bool IsNativeGpuMemoryBufferEnabled();
reveman 2015/10/16 18:37:43 nit: s/GpuMemoryBuffer/GpuMemoryBuffers/ I think
27
24 // Returns true if a persistent GpuMemoryBuffer can be used and is on (via 28 // Returns true if a persistent GpuMemoryBuffer can be used and is on (via
25 // flags, or platform default). 29 // flags, or platform default).
26 CONTENT_EXPORT bool IsPersistentGpuMemoryBufferEnabled(); 30 CONTENT_EXPORT bool IsPersistentGpuMemoryBufferEnabled();
27 31
28 // Returns true if gpu rasterization is on (via flags) for the renderer. 32 // Returns true if gpu rasterization is on (via flags) for the renderer.
29 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); 33 CONTENT_EXPORT bool IsGpuRasterizationEnabled();
30 34
31 // Returns the number of multisample antialiasing samples (via flags) for 35 // Returns the number of multisample antialiasing samples (via flags) for
32 // GPU rasterization. 36 // GPU rasterization.
33 CONTENT_EXPORT int GpuRasterizationMSAASampleCount(); 37 CONTENT_EXPORT int GpuRasterizationMSAASampleCount();
34 38
35 // Returns true if force-gpu-rasterization is on (via flags) for the renderer. 39 // Returns true if force-gpu-rasterization is on (via flags) for the renderer.
36 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled(); 40 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled();
37 41
38 // Returns the number of raster threads to use for compositing. 42 // Returns the number of raster threads to use for compositing.
39 CONTENT_EXPORT int NumberOfRendererRasterThreads(); 43 CONTENT_EXPORT int NumberOfRendererRasterThreads();
40 44
41 // Returns true if using cc Surfaces is allowed. 45 // Returns true if using cc Surfaces is allowed.
42 CONTENT_EXPORT bool UseSurfacesEnabled(); 46 CONTENT_EXPORT bool UseSurfacesEnabled();
43 47
44 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); 48 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus();
49 CONTENT_EXPORT base::DictionaryValue* GetGmbStatus();
45 CONTENT_EXPORT base::Value* GetProblems(); 50 CONTENT_EXPORT base::Value* GetProblems();
46 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); 51 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds();
47 52
48 } // namespace content 53 } // namespace content
49 54
50 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ 55 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698