summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-08 17:59:42 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-08 17:59:42 +0000
commita61508e5901304418d0c861a79b788c6fd74a997 (patch)
treec1f48290c209f8ac3726b3e734cb8b9404816ab3 /chrome/renderer
parenta37d7ec1af822aa3524308c58c5160e3bf117965 (diff)
downloadchromium_src-a61508e5901304418d0c861a79b788c6fd74a997.zip
chromium_src-a61508e5901304418d0c861a79b788c6fd74a997.tar.gz
chromium_src-a61508e5901304418d0c861a79b788c6fd74a997.tar.bz2
Make GPUInfo a struct, which it should be according to the C++ guidelines. This makes it easy to write automated serilization code for it.
Review URL: http://codereview.chromium.org/6621057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77300 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
index dfcfad9..34e9aa7 100644
--- a/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
+++ b/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
@@ -78,10 +78,10 @@ bool WebGraphicsContext3DCommandBufferImpl::initialize(
GPUInfo gpu_info = host->gpu_info();
UMA_HISTOGRAM_ENUMERATION(
"GPU.WebGraphicsContext3D_Init_CanLoseContext",
- attributes.canRecoverFromContextLoss * 2 + gpu_info.can_lose_context(),
+ attributes.canRecoverFromContextLoss * 2 + gpu_info.can_lose_context,
4);
if (attributes.canRecoverFromContextLoss == false) {
- if (gpu_info.can_lose_context())
+ if (gpu_info.can_lose_context)
return false;
}