diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-12 17:05:13 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-12 17:05:13 +0000 |
commit | b21265f88af52046652bfefe2909f048f0a3c2b8 (patch) | |
tree | 48830cbd442dc02192e3b17e0a40a8f8edd9fe82 /chrome/common/gpu_messages.h | |
parent | f39f4b3f8638814272875f37d8b6f574c86d2079 (diff) | |
download | chromium_src-b21265f88af52046652bfefe2909f048f0a3c2b8.zip chromium_src-b21265f88af52046652bfefe2909f048f0a3c2b8.tar.gz chromium_src-b21265f88af52046652bfefe2909f048f0a3c2b8.tar.bz2 |
Step 1: Changing CommandBufferHelper to only use a portion
of the command buffer. This brought out the fact that
there were lots of places in the code mixing size in bytes
with num command buffer entries.
This fixes most of those issues. No public interface
uses num command buffer entries except
gpu::CommandBuffer::State where it makes sense.
TEST=relying on unit tests, conformance tests and chrome
BUG=none
Review URL: http://codereview.chromium.org/2008014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47041 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gpu_messages.h')
-rw-r--r-- | chrome/common/gpu_messages.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/gpu_messages.h b/chrome/common/gpu_messages.h index f3e16a3..7b37731 100644 --- a/chrome/common/gpu_messages.h +++ b/chrome/common/gpu_messages.h @@ -22,7 +22,7 @@ template <> struct ParamTraits<gpu::CommandBuffer::State> { typedef gpu::CommandBuffer::State param_type; static void Write(Message* m, const param_type& p) { - m->WriteInt(p.size); + m->WriteInt(p.num_entries); m->WriteInt(p.get_offset); m->WriteInt(p.put_offset); m->WriteInt(p.token); @@ -30,7 +30,7 @@ struct ParamTraits<gpu::CommandBuffer::State> { } static bool Read(const Message* m, void** iter, param_type* p) { int32 temp; - if (m->ReadInt(iter, &p->size) && + if (m->ReadInt(iter, &p->num_entries) && m->ReadInt(iter, &p->get_offset) && m->ReadInt(iter, &p->put_offset) && m->ReadInt(iter, &p->token) && |