aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/include/GrIndexBuffer.h
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-03-30 21:26:44 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-03-30 21:26:44 +0000
commit8fe72477f204b1a45393e6a64caa84fd287b805b (patch)
treeee45cdc16a5e66a5a198920897d82db4284b97da /gpu/include/GrIndexBuffer.h
parenta7d948523dce6044fc02db90726e5f971a93628b (diff)
Add GrResource base class for ibs, texs, vbs, etc.
Add lostContext() to GrContext. Review URL: http://codereview.appspot.com/4328044/ git-svn-id: http://skia.googlecode.com/svn/trunk@1026 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/include/GrIndexBuffer.h')
-rw-r--r--gpu/include/GrIndexBuffer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpu/include/GrIndexBuffer.h b/gpu/include/GrIndexBuffer.h
index 09d1977bfc..366640e821 100644
--- a/gpu/include/GrIndexBuffer.h
+++ b/gpu/include/GrIndexBuffer.h
@@ -29,8 +29,8 @@ public:
*/
int maxQuads() const { return size() / (sizeof(uint16_t) * 6); }
protected:
- GrIndexBuffer(size_t sizeInBytes, bool dynamic) :
- INHERITED(sizeInBytes, dynamic) {}
+ GrIndexBuffer(GrGpu* gpu, size_t sizeInBytes, bool dynamic)
+ : INHERITED(gpu, sizeInBytes, dynamic) {}
private:
typedef GrGeometryBuffer INHERITED;
};