summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/mocks.cc
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-20 22:56:24 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-20 22:56:24 +0000
commit2399c759b3119d5657370c950f6eba3808cec44f (patch)
treedfba1eb5e8de279a892fb4f75d39e604032757e7 /gpu/command_buffer/service/mocks.cc
parentebc5c8be10f0b82b428064c50be6e6a42861b9e1 (diff)
downloadchromium_src-2399c759b3119d5657370c950f6eba3808cec44f.zip
chromium_src-2399c759b3119d5657370c950f6eba3808cec44f.tar.gz
chromium_src-2399c759b3119d5657370c950f6eba3808cec44f.tar.bz2
Fix ringbuffer test.
The SetToken mock was using the command header as the token value. Also, the ringbuffer test didn't support the jump command, so if the number of entries in the command buffer is too small then the test breaks. BUG= TEST= Review URL: http://codereview.chromium.org/6990002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86167 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/mocks.cc')
-rw-r--r--gpu/command_buffer/service/mocks.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpu/command_buffer/service/mocks.cc b/gpu/command_buffer/service/mocks.cc
index 6f267be..40b3d6d9 100644
--- a/gpu/command_buffer/service/mocks.cc
+++ b/gpu/command_buffer/service/mocks.cc
@@ -19,9 +19,9 @@ void AsyncAPIMock::SetToken(unsigned int command,
DCHECK(engine_);
DCHECK_EQ(1u, command);
DCHECK_EQ(1u, arg_count);
- const CommandBufferEntry* args =
- static_cast<const CommandBufferEntry*>(_args);
- engine_->set_token(args[0].value_uint32);
+ const cmd::SetToken* args =
+ static_cast<const cmd::SetToken*>(_args);
+ engine_->set_token(args->token);
}
namespace gles2 {