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

Unified Diff: content/browser/gpu/compositor_util.cc

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/gpu/gpu_data_manager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/compositor_util.cc
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc
index 66de1fe131eb1e593766ddef1cd4935ecfb7a680..21140f34905e98ba85dd3725db54a77091361fec 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -242,21 +242,8 @@ bool IsGpuMemoryBufferCompositorResourcesEnabled() {
}
bool IsGpuRasterizationEnabled() {
- const base::CommandLine& command_line =
- *base::CommandLine::ForCurrentProcess();
-
- if (command_line.HasSwitch(switches::kDisableGpuRasterization))
- return false;
- else if (command_line.HasSwitch(switches::kEnableGpuRasterization))
- return true;
-
- if (IsGpuRasterizationBlacklisted()) {
- return false;
- }
-
- // Gpu Rasterization on platforms that are not fully enabled is controlled by
- // a finch experiment.
- return base::FeatureList::IsEnabled(features::kDefaultEnableGpuRasterization);
+ GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance();
+ return manager->IsFeatureEnabled(gpu::GPU_FEATURE_TYPE_GPU_RASTERIZATION);
}
bool IsAsyncWorkerContextEnabled() {
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | content/browser/gpu/gpu_data_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698