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

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

Issue 830273003: Remove impl-side-painting from about:flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: impl-flags: remove-content-shell-stuff Created 5 years, 11 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
« no previous file with comments | « chrome/common/crash_keys.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/browser/gpu/compositor_util.h" 5 #include "content/browser/gpu/compositor_util.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 // Flags override. 190 // Flags override.
191 enabled |= command_line.HasSwitch(switches::kEnableDelegatedRenderer); 191 enabled |= command_line.HasSwitch(switches::kEnableDelegatedRenderer);
192 enabled &= !command_line.HasSwitch(switches::kDisableDelegatedRenderer); 192 enabled &= !command_line.HasSwitch(switches::kDisableDelegatedRenderer);
193 return enabled; 193 return enabled;
194 } 194 }
195 195
196 bool IsImplSidePaintingEnabled() { 196 bool IsImplSidePaintingEnabled() {
197 const base::CommandLine& command_line = 197 const base::CommandLine& command_line =
198 *base::CommandLine::ForCurrentProcess(); 198 *base::CommandLine::ForCurrentProcess();
199 199 if (command_line.HasSwitch(switches::kDisableImplSidePainting))
200 if (command_line.HasSwitch(switches::kEnableImplSidePainting))
201 return true;
202 else if (command_line.HasSwitch(switches::kDisableImplSidePainting))
203 return false; 200 return false;
204
205 return true; 201 return true;
206 } 202 }
207 203
208 int NumberOfRendererRasterThreads() { 204 int NumberOfRendererRasterThreads() {
209 int num_raster_threads = 1; 205 int num_raster_threads = 1;
210 206
211 // Async uploads uses its own thread, so allow an extra thread when async 207 // Async uploads uses its own thread, so allow an extra thread when async
212 // uploads is not in use. 208 // uploads is not in use.
213 bool allow_extra_thread = 209 bool allow_extra_thread =
214 IsZeroCopyUploadEnabled() || IsOneCopyUploadEnabled(); 210 IsZeroCopyUploadEnabled() || IsOneCopyUploadEnabled();
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 } 396 }
401 } 397 }
402 return problem_list; 398 return problem_list;
403 } 399 }
404 400
405 std::vector<std::string> GetDriverBugWorkarounds() { 401 std::vector<std::string> GetDriverBugWorkarounds() {
406 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 402 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
407 } 403 }
408 404
409 } // namespace content 405 } // namespace content
OLDNEW
« no previous file with comments | « chrome/common/crash_keys.cc ('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