summaryrefslogtreecommitdiffstats
path: root/content/common
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-15 00:44:26 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-15 00:44:26 +0000
commit850c2a990924d9f2a1f69536596cebf95d685872 (patch)
tree402b55a369657dd23231a03ee6a50c4034b3b5bc /content/common
parent298087a8a90578fc83a8e5c13a54e2f0ccc4b9dd (diff)
downloadchromium_src-850c2a990924d9f2a1f69536596cebf95d685872.zip
chromium_src-850c2a990924d9f2a1f69536596cebf95d685872.tar.gz
chromium_src-850c2a990924d9f2a1f69536596cebf95d685872.tar.bz2
Remove canRecoverFromContextLoss logic
Canvas now queries if the host can lose a context arbitrarily seperately from context creation, so this logic is redundant. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9702042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126805 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common')
-rw-r--r--content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
index a722517..9767b13 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -121,16 +121,6 @@ bool WebGraphicsContext3DCommandBufferImpl::Initialize(
}
} while (retry);
- const content::GPUInfo& gpu_info = host_->gpu_info();
- UMA_HISTOGRAM_ENUMERATION(
- "GPU.WebGraphicsContext3D_Init_CanLoseContext",
- attributes.canRecoverFromContextLoss * 2 + gpu_info.can_lose_context,
- 4);
- if (attributes.canRecoverFromContextLoss == false) {
- if (gpu_info.can_lose_context)
- return false;
- }
-
attributes_ = attributes;
return true;
}