Index: content/browser/gpu/compositor_util.cc |
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc |
index 916fcdec541cae52c0a4ed9bb88fe6643100dd79..81436e2752e4ece81c4339a6501249d44b713751 100644 |
--- a/content/browser/gpu/compositor_util.cc |
+++ b/content/browser/gpu/compositor_util.cc |
@@ -24,14 +24,6 @@ struct GpuFeatureInfo { |
bool fallback_to_software; |
}; |
-// Determine if accelerated-2d-canvas is supported, which depends on whether |
-// lose_context could happen. |
-bool SupportsAccelerated2dCanvas() { |
- if (GpuDataManagerImpl::GetInstance()->GetGPUInfo().can_lose_context) |
- return false; |
- return true; |
-} |
- |
#if defined(OS_CHROMEOS) |
const size_t kNumFeatures = 14; |
#else |
@@ -47,7 +39,8 @@ const GpuFeatureInfo GetGpuFeatureInfo(size_t index) { |
manager->IsFeatureBlacklisted( |
gpu::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS), |
command_line.HasSwitch(switches::kDisableAccelerated2dCanvas) || |
- !SupportsAccelerated2dCanvas(), |
+ !GpuDataManagerImpl::GetInstance()-> |
+ GetGPUInfo().SupportsAccelerated2dCanvas(), |
"Accelerated 2D canvas is unavailable: either disabled at the command" |
" line or not supported by the current system.", |
true |