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

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

Issue 1179653004: Remove non-impl-side painting as an option for blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removenoimplblink: . Created 5 years, 6 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 | « content/browser/gpu/compositor_util.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('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 635944fba1422c0de5b4a8f7b6fd4f702ab661f6..82968b32a64a336be359ccbcb93defe19e152a4e 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -29,7 +29,6 @@ static bool IsGpuRasterizationBlacklisted() {
const char* kGpuCompositingFeatureName = "gpu_compositing";
const char* kWebGLFeatureName = "webgl";
const char* kRasterizationFeatureName = "rasterization";
-const char* kThreadedRasterizationFeatureName = "threaded_rasterization";
const char* kMultipleRasterThreadsFeatureName = "multiple_raster_threads";
const int kMinRasterThreads = 1;
@@ -145,14 +144,6 @@ const GpuFeatureInfo GetGpuFeatureInfo(size_t index, bool* eof) {
true
},
{
- kThreadedRasterizationFeatureName,
- false,
- !IsImplSidePaintingEnabled(),
- "Threaded rasterization has not been enabled or"
- " is not supported by the current system.",
- false
- },
- {
kMultipleRasterThreadsFeatureName,
false,
NumberOfRendererRasterThreads() == 1,
@@ -189,14 +180,6 @@ bool IsDelegatedRendererEnabled() {
return enabled;
}
-bool IsImplSidePaintingEnabled() {
- const base::CommandLine& command_line =
- *base::CommandLine::ForCurrentProcess();
- if (command_line.HasSwitch(switches::kDisableImplSidePainting))
- return false;
- return true;
-}
-
int NumberOfRendererRasterThreads() {
int num_processors = base::SysInfo::NumberOfProcessors();
@@ -267,9 +250,6 @@ bool IsGpuRasterizationEnabled() {
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
- if (!IsImplSidePaintingEnabled())
- return false;
-
if (command_line.HasSwitch(switches::kDisableGpuRasterization))
return false;
else if (command_line.HasSwitch(switches::kEnableGpuRasterization))
@@ -291,10 +271,6 @@ bool IsGpuRasterizationEnabled() {
bool IsForceGpuRasterizationEnabled() {
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();
-
- if (!IsImplSidePaintingEnabled())
- return false;
-
return command_line.HasSwitch(switches::kForceGpuRasterization);
}
@@ -358,8 +334,6 @@ base::DictionaryValue* GetFeatureStatus() {
status += "_software";
else
status += "_off";
- if (gpu_feature_info.name == kThreadedRasterizationFeatureName)
- status += "_ok";
} else if (gpu_feature_info.blocked ||
gpu_access_blocked) {
status = "unavailable";
@@ -382,8 +356,7 @@ base::DictionaryValue* GetFeatureStatus() {
if (command_line.HasSwitch(switches::kNumRasterThreads))
status += "_force";
}
- if (gpu_feature_info.name == kThreadedRasterizationFeatureName ||
- gpu_feature_info.name == kMultipleRasterThreadsFeatureName)
+ if (gpu_feature_info.name == kMultipleRasterThreadsFeatureName)
status += "_on";
}
if (gpu_feature_info.name == kWebGLFeatureName &&
« no previous file with comments | « content/browser/gpu/compositor_util.h ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698