| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 if (command_line.HasSwitch(switches::kDisableGpuRasterization)) | 240 if (command_line.HasSwitch(switches::kDisableGpuRasterization)) |
| 241 return false; | 241 return false; |
| 242 else if (command_line.HasSwitch(switches::kEnableGpuRasterization)) | 242 else if (command_line.HasSwitch(switches::kEnableGpuRasterization)) |
| 243 return true; | 243 return true; |
| 244 | 244 |
| 245 if (IsGpuRasterizationBlacklisted()) { | 245 if (IsGpuRasterizationBlacklisted()) { |
| 246 return false; | 246 return false; |
| 247 } | 247 } |
| 248 | 248 |
| 249 #if defined(OS_ANDROID) | |
| 250 return true; | |
| 251 #endif | |
| 252 | |
| 253 // Gpu Rasterization on platforms that are not fully enabled is controlled by | 249 // Gpu Rasterization on platforms that are not fully enabled is controlled by |
| 254 // a finch experiment. | 250 // a finch experiment. |
| 255 return base::FeatureList::IsEnabled(features::kDefaultEnableGpuRasterization); | 251 return base::FeatureList::IsEnabled(features::kDefaultEnableGpuRasterization); |
| 256 } | 252 } |
| 257 | 253 |
| 258 bool IsAsyncWorkerContextEnabled() { | 254 bool IsAsyncWorkerContextEnabled() { |
| 259 const base::CommandLine& command_line = | 255 const base::CommandLine& command_line = |
| 260 *base::CommandLine::ForCurrentProcess(); | 256 *base::CommandLine::ForCurrentProcess(); |
| 261 | 257 |
| 262 if (command_line.HasSwitch(switches::kDisableGpuAsyncWorkerContext)) | 258 if (command_line.HasSwitch(switches::kDisableGpuAsyncWorkerContext)) |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 } | 405 } |
| 410 } | 406 } |
| 411 return problem_list; | 407 return problem_list; |
| 412 } | 408 } |
| 413 | 409 |
| 414 std::vector<std::string> GetDriverBugWorkarounds() { | 410 std::vector<std::string> GetDriverBugWorkarounds() { |
| 415 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); | 411 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); |
| 416 } | 412 } |
| 417 | 413 |
| 418 } // namespace content | 414 } // namespace content |
| OLD | NEW |