summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/gles2_cmd_decoder_mock.h
diff options
context:
space:
mode:
authorreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-06 02:04:52 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-06 02:04:52 +0000
commit63b4659295df79538043587868f96106caeed0ff (patch)
treea59529ab7409bf42737316436295fea7bc644636 /gpu/command_buffer/service/gles2_cmd_decoder_mock.h
parent91763a1d7c9883558be65a3fe46656bb616aae1c (diff)
downloadchromium_src-63b4659295df79538043587868f96106caeed0ff.zip
chromium_src-63b4659295df79538043587868f96106caeed0ff.tar.gz
chromium_src-63b4659295df79538043587868f96106caeed0ff.tar.bz2
Report texture upload time in renderingStats.
BUG=133658 TEST=TEST=Launch Chrome with --enable-gpu-benchmarking, open a tab to a composited page, and type chrome.gpuBenchmarking.renderingStats(). textureUploadCount, and totalTextureUploadTimeInSeconds should be present. Review URL: https://chromiumcodereview.appspot.com/10868048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155099 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/gles2_cmd_decoder_mock.h')
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder_mock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_mock.h b/gpu/command_buffer/service/gles2_cmd_decoder_mock.h
index 073b0c1..95d91c5 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_mock.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_mock.h
@@ -74,6 +74,9 @@ class MockGLES2Decoder : public GLES2Decoder {
bool is_texture_immutable));
MOCK_METHOD0(GetGLError, uint32());
MOCK_METHOD1(SetMsgCallback, void(const MsgCallback& callback));
+ MOCK_METHOD0(GetTextureUploadCount, uint32());
+ MOCK_METHOD0(GetTotalTextureUploadTime, base::TimeDelta());
+ MOCK_METHOD0(GetTotalProcessingCommandsTime, base::TimeDelta());
DISALLOW_COPY_AND_ASSIGN(MockGLES2Decoder);
};