OLD | NEW |
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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 278 |
279 if (command_line.HasSwitch(switches::kDisableGpuRasterization)) | 279 if (command_line.HasSwitch(switches::kDisableGpuRasterization)) |
280 return false; | 280 return false; |
281 else if (command_line.HasSwitch(switches::kEnableGpuRasterization)) | 281 else if (command_line.HasSwitch(switches::kEnableGpuRasterization)) |
282 return true; | 282 return true; |
283 | 283 |
284 if (IsGpuRasterizationBlacklisted()) { | 284 if (IsGpuRasterizationBlacklisted()) { |
285 return false; | 285 return false; |
286 } | 286 } |
287 | 287 |
| 288 #if defined(OS_ANDROID) |
288 return true; | 289 return true; |
| 290 #endif |
| 291 |
| 292 // explicitly disable GPU rasterization on all non-android devices until we |
| 293 // have full test coverage. |
| 294 return false; |
289 } | 295 } |
290 | 296 |
291 bool IsForceGpuRasterizationEnabled() { | 297 bool IsForceGpuRasterizationEnabled() { |
292 const base::CommandLine& command_line = | 298 const base::CommandLine& command_line = |
293 *base::CommandLine::ForCurrentProcess(); | 299 *base::CommandLine::ForCurrentProcess(); |
294 | 300 |
295 if (!IsImplSidePaintingEnabled()) | 301 if (!IsImplSidePaintingEnabled()) |
296 return false; | 302 return false; |
297 | 303 |
298 return command_line.HasSwitch(switches::kForceGpuRasterization); | 304 return command_line.HasSwitch(switches::kForceGpuRasterization); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 } | 437 } |
432 } | 438 } |
433 return problem_list; | 439 return problem_list; |
434 } | 440 } |
435 | 441 |
436 std::vector<std::string> GetDriverBugWorkarounds() { | 442 std::vector<std::string> GetDriverBugWorkarounds() { |
437 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); | 443 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); |
438 } | 444 } |
439 | 445 |
440 } // namespace content | 446 } // namespace content |
OLD | NEW |