Commit 90442f68 by Jamie Madill

Make gl::Buffer::size() a const method.

R=shannonwoods@chromium.org ANGLEBUG=467 Review URL: https://codereview.appspot.com/13248043 Test=WebGL CTS 1.0.2
parent 41159326
......@@ -72,7 +72,7 @@ rx::BufferStorage *Buffer::getStorage() const
return mBufferStorage;
}
unsigned int Buffer::size()
unsigned int Buffer::size() const
{
return mBufferStorage->getSize();
}
......
......@@ -39,7 +39,7 @@ class Buffer : public RefCountObject
GLenum usage() const;
rx::BufferStorage *getStorage() const;
unsigned int size();
unsigned int size() const;
rx::StaticVertexBufferInterface *getStaticVertexBuffer();
rx::StaticIndexBufferInterface *getStaticIndexBuffer();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment