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

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

Issue 1949023005: gpu: Add flag for enabling asynchronous worker context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase fix Created 4 years, 7 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 zero-copy uploads is on (via flags, or platform default). 16 // 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. 17 // Only one of one-copy and zero-copy can be enabled at a time.
18 CONTENT_EXPORT bool IsZeroCopyUploadEnabled(); 18 CONTENT_EXPORT bool IsZeroCopyUploadEnabled();
19 19
20 // Returns true if a partial raster is on (via flags). 20 // Returns true if a partial raster is on (via flags).
21 CONTENT_EXPORT bool IsPartialRasterEnabled(); 21 CONTENT_EXPORT bool IsPartialRasterEnabled();
22 22
23 // Returns true if all compositor resources should use GPU memory buffers. 23 // Returns true if all compositor resources should use GPU memory buffers.
24 CONTENT_EXPORT bool IsGpuMemoryBufferCompositorResourcesEnabled(); 24 CONTENT_EXPORT bool IsGpuMemoryBufferCompositorResourcesEnabled();
25 25
26 // Returns true if gpu rasterization is on (via flags) for the renderer. 26 // Returns true if gpu rasterization is on (via flags) for the renderer.
27 CONTENT_EXPORT bool IsGpuRasterizationEnabled(); 27 CONTENT_EXPORT bool IsGpuRasterizationEnabled();
28 28
29 // returns true if async worker context is on (via flags).
30 CONTENT_EXPORT bool IsAsyncWorkerContextEnabled();
31
29 // Returns the number of multisample antialiasing samples (via flags) for 32 // Returns the number of multisample antialiasing samples (via flags) for
30 // GPU rasterization. 33 // GPU rasterization.
31 CONTENT_EXPORT int GpuRasterizationMSAASampleCount(); 34 CONTENT_EXPORT int GpuRasterizationMSAASampleCount();
32 35
33 // Returns true if force-gpu-rasterization is on (via flags) for the renderer. 36 // Returns true if force-gpu-rasterization is on (via flags) for the renderer.
34 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled(); 37 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled();
35 38
36 // Returns the number of raster threads to use for compositing. 39 // Returns the number of raster threads to use for compositing.
37 CONTENT_EXPORT int NumberOfRendererRasterThreads(); 40 CONTENT_EXPORT int NumberOfRendererRasterThreads();
38 41
39 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); 42 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus();
40 CONTENT_EXPORT base::Value* GetProblems(); 43 CONTENT_EXPORT base::Value* GetProblems();
41 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); 44 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds();
42 45
43 } // namespace content 46 } // namespace content
44 47
45 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ 48 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.cc ('k') | content/browser/gpu/compositor_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698