Commit 96b67e39 by Jamie Madill

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

R=geofflang@chromium.org, shannonwoods@chromium.org ANGLEBUG=467 Review URL: https://codereview.appspot.com/12937045 Test=WebGL CTS 1.0.2
parent 0bbd11c1
......@@ -84,7 +84,7 @@ rx::BufferStorage *Buffer::getStorage() const
return mBufferStorage;
}
unsigned int Buffer::size()
unsigned int Buffer::size() const
{
return mBufferStorage->getSize();
}
......
......@@ -40,7 +40,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