OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrGLVertexBuffer_DEFINED | 8 #ifndef GrGLVertexBuffer_DEFINED |
9 #define GrGLVertexBuffer_DEFINED | 9 #define GrGLVertexBuffer_DEFINED |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 virtual bool isLocked() const; | 38 virtual bool isLocked() const; |
39 virtual bool updateData(const void* src, size_t srcSizeInBytes); | 39 virtual bool updateData(const void* src, size_t srcSizeInBytes); |
40 | 40 |
41 protected: | 41 protected: |
42 // overrides of GrResource | 42 // overrides of GrResource |
43 virtual void onAbandon() SK_OVERRIDE; | 43 virtual void onAbandon() SK_OVERRIDE; |
44 virtual void onRelease() SK_OVERRIDE; | 44 virtual void onRelease() SK_OVERRIDE; |
45 | 45 |
46 private: | 46 private: |
47 GrGpuGL* getGpuGL() const { | 47 GrGpuGL* getGpuGL() const { |
48 GrAssert(this->isValid()); | 48 SkASSERT(this->isValid()); |
49 return (GrGpuGL*)(this->getGpu()); | 49 return (GrGpuGL*)(this->getGpu()); |
50 } | 50 } |
51 | 51 |
52 GrGLBufferImpl fImpl; | 52 GrGLBufferImpl fImpl; |
53 | 53 |
54 typedef GrVertexBuffer INHERITED; | 54 typedef GrVertexBuffer INHERITED; |
55 }; | 55 }; |
56 | 56 |
57 #endif | 57 #endif |
OLD | NEW |