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

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

Issue 1001203002: Enable Surfaces on Android (try #3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | no next file » | 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 *base::CommandLine::ForCurrentProcess(); 308 *base::CommandLine::ForCurrentProcess();
309 309
310 if (command_line.HasSwitch(switches::kDisableThreadedGpuRasterization)) 310 if (command_line.HasSwitch(switches::kDisableThreadedGpuRasterization))
311 return false; 311 return false;
312 312
313 return true; 313 return true;
314 } 314 }
315 315
316 bool UseSurfacesEnabled() { 316 bool UseSurfacesEnabled() {
317 #if defined(OS_ANDROID) 317 #if defined(OS_ANDROID)
318 return false; 318 return true;
319 #endif 319 #endif
320 bool enabled = false; 320 bool enabled = false;
321 #if (defined(USE_AURA) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX) 321 #if (defined(USE_AURA) && !defined(OS_CHROMEOS)) || defined(OS_MACOSX)
322 enabled = true; 322 enabled = true;
323 #endif 323 #endif
324 324
325 const base::CommandLine& command_line = 325 const base::CommandLine& command_line =
326 *base::CommandLine::ForCurrentProcess(); 326 *base::CommandLine::ForCurrentProcess();
327 327
328 // Flags override. 328 // Flags override.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 } 446 }
447 } 447 }
448 return problem_list; 448 return problem_list;
449 } 449 }
450 450
451 std::vector<std::string> GetDriverBugWorkarounds() { 451 std::vector<std::string> GetDriverBugWorkarounds() {
452 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 452 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
453 } 453 }
454 454
455 } // namespace content 455 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698