Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: src/gpu/instanced/GLInstancedRendering.h

Issue 2143333002: Add resource provider flag to avoid client-side buffers (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add resource provider flag to avoid client-side buffers Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/gl/GrGLVertexArray.cpp ('k') | src/gpu/instanced/GLInstancedRendering.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLVertexArray.cpp ('k') | src/gpu/instanced/GLInstancedRendering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698