Commit 850c2a99 authored by jamesr@chromium.org's avatar jamesr@chromium.org

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
parent 298087a8
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment