summaryrefslogtreecommitdiffstats
path: root/o3d/core/build.scons
diff options
context:
space:
mode:
authorgman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-09 22:59:37 +0000
committergman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-09 22:59:37 +0000
commitc1bf07dd1da400c45c8b0af7aa3f24dfdbbfc615 (patch)
treed7df97e6184d7be23e1710be728332f1d0077f68 /o3d/core/build.scons
parent013a4d61cc1d89a24690dfead3e6b22377d5993a (diff)
downloadchromium_src-c1bf07dd1da400c45c8b0af7aa3f24dfdbbfc615.zip
chromium_src-c1bf07dd1da400c45c8b0af7aa3f24dfdbbfc615.tar.gz
chromium_src-c1bf07dd1da400c45c8b0af7aa3f24dfdbbfc615.tar.bz2
Add ClientInfo
This allows an app to ask a few things from the client. 1) How many objects the client is tracking. This is useful for a quick way to check that you're freeing resources. While the developer could use client.objects.length or client.packs[ii].objects.length that wouldend up creating hundreds of thousands of NPObjects. 2) Check if the software renderer is being used 3) Check the approximate amount of memory used by textures. Again, they could compute this with client.getObjectsByClassName('o3d.Texture') but it seemed like it might be useful. I say approximate because I would have to dig down into the indivdual renderers to get better info since a NPOT card will use more memory but it didn't seem worth it. 4) check the approximate amount of memory used by hardware buffers. Review URL: http://codereview.chromium.org/155276 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20334 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/core/build.scons')
-rw-r--r--o3d/core/build.scons1
1 files changed, 1 insertions, 0 deletions
diff --git a/o3d/core/build.scons b/o3d/core/build.scons
index 30ce2c4..088ebce 100644
--- a/o3d/core/build.scons
+++ b/o3d/core/build.scons
@@ -42,6 +42,7 @@ cross_inputs = [
'cross/class_manager.cc',
'cross/clear_buffer.cc',
'cross/client.cc',
+ 'cross/client_info.cc',
'cross/core_metrics.cc',
'cross/counter.cc',
'cross/counter_manager.cc',