summaryrefslogtreecommitdiffstats
path: root/o3d/plugin
diff options
context:
space:
mode:
authortschmelcher@chromium.org <tschmelcher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-06 21:20:47 +0000
committertschmelcher@chromium.org <tschmelcher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-06 21:20:47 +0000
commit88e6577f7fd716a7f0d9f0590d030af6372c6333 (patch)
treebca566c86d617151b4044f620bb6d19be0e10957 /o3d/plugin
parent7968428a96099f945dcd1381aefb60b0a2faa484 (diff)
downloadchromium_src-88e6577f7fd716a7f0d9f0590d030af6372c6333.zip
chromium_src-88e6577f7fd716a7f0d9f0590d030af6372c6333.tar.gz
chromium_src-88e6577f7fd716a7f0d9f0590d030af6372c6333.tar.bz2
Add an API to allow JavaScript to determine the framerate of individual dynamic textures.
TEST=loaded O3D on a test page on Linux and used the new API to display the framerate BUG=none Review URL: http://codereview.chromium.org/5591006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68379 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/plugin')
-rw-r--r--o3d/plugin/idl/texture.idl10
1 files changed, 10 insertions, 0 deletions
diff --git a/o3d/plugin/idl/texture.idl b/o3d/plugin/idl/texture.idl
index e503ab8..2c11f16 100644
--- a/o3d/plugin/idl/texture.idl
+++ b/o3d/plugin/idl/texture.idl
@@ -109,6 +109,16 @@ namespace o3d {
[getter, getter, setter] bool alpha_is_one;
%[
+ The count of total updates made to this texture.
+ %]
+ [getter] int update_count;
+
+ %[
+ The count of updates made to this texture that were rendered to the screen.
+ %]
+ [getter] int render_count;
+
+ %[
Generates Mips.
\param source_level the mip to use as the source.
\param num_levels the number of mips from the source to generate.