| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 gr_instanced_GLInstancedRendering_DEFINED | 8 #ifndef gr_instanced_GLInstancedRendering_DEFINED |
| 9 #define gr_instanced_GLInstancedRendering_DEFINED | 9 #define gr_instanced_GLInstancedRendering_DEFINED |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 void flushInstanceAttribs(int baseInstance); | 37 void flushInstanceAttribs(int baseInstance); |
| 38 | 38 |
| 39 struct GLDrawCmdInfo { | 39 struct GLDrawCmdInfo { |
| 40 int fInstanceCount; | 40 int fInstanceCount; |
| 41 #if GR_GL_LOG_INSTANCED_BATCHES | 41 #if GR_GL_LOG_INSTANCED_BATCHES |
| 42 IndexRange fGeometry; | 42 IndexRange fGeometry; |
| 43 #endif | 43 #endif |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 GrGLuint fVertexArrayID; | 46 GrGLuint fVertexArrayID; |
| 47 SkAutoTUnref<GrGLBuffer> fInstanceBuffer; | 47 SkAutoTUnref<GrBuffer> fInstanceBuffer; |
| 48 SkAutoTUnref<GrGLBuffer> fDrawIndirectBuffer; | 48 SkAutoTUnref<GrBuffer> fDrawIndirectBuffer; |
| 49 SkAutoSTMalloc<1024, GLDrawCmdInfo> fGLDrawCmdsInfo; | 49 SkAutoSTMalloc<1024, GLDrawCmdInfo> fGLDrawCmdsInfo; |
| 50 uint32_t fInstanceAttribsBufferUniqueId; | 50 uint32_t fInstanceAttribsBufferUniqueId; |
| 51 int fInstanceAttribsBaseInstance; | 51 int fInstanceAttribsBaseInstance; |
| 52 | 52 |
| 53 class GLBatch; | 53 class GLBatch; |
| 54 | 54 |
| 55 typedef InstancedRendering INHERITED; | 55 typedef InstancedRendering INHERITED; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } | 58 } |
| 59 | 59 |
| 60 #endif | 60 #endif |
| OLD | NEW |