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

Side by Side Diff: src/gpu/gl/GrGLVertexArray.h

Issue 1825393002: Consolidate GPU buffer implementations (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: asserts Created 4 years, 9 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/GrGLTransferBuffer.cpp ('k') | src/gpu/gl/GrGLVertexBuffer.h » ('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 2013 Google Inc. 2 * Copyright 2013 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 GrGLVertexArray_DEFINED 8 #ifndef GrGLVertexArray_DEFINED
9 #define GrGLVertexArray_DEFINED 9 #define GrGLVertexArray_DEFINED
10 10
11 #include "GrTypesPriv.h" 11 #include "GrTypesPriv.h"
12 #include "gl/GrGLDefines.h" 12 #include "gl/GrGLDefines.h"
13 #include "gl/GrGLTypes.h" 13 #include "gl/GrGLTypes.h"
14 #include "SkTArray.h" 14 #include "SkTArray.h"
15 15
16 class GrGLVertexBuffer;
17 class GrGLIndexBuffer;
18 class GrGLGpu; 16 class GrGLGpu;
19 17
20 /** 18 /**
21 * This sets and tracks the vertex attribute array state. It is used internally by GrGLVertexArray 19 * This sets and tracks the vertex attribute array state. It is used internally by GrGLVertexArray
22 * (below) but is separate because it is also used to track the state of vertex array object 0. 20 * (below) but is separate because it is also used to track the state of vertex array object 0.
23 */ 21 */
24 class GrGLAttribArrayState { 22 class GrGLAttribArrayState {
25 public: 23 public:
26 explicit GrGLAttribArrayState(int arrayCount = 0) { 24 explicit GrGLAttribArrayState(int arrayCount = 0) {
27 this->resize(arrayCount); 25 this->resize(arrayCount);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void invalidateCachedState(); 126 void invalidateCachedState();
129 127
130 private: 128 private:
131 GrGLuint fID; 129 GrGLuint fID;
132 GrGLAttribArrayState fAttribArrays; 130 GrGLAttribArrayState fAttribArrays;
133 GrGLuint fIndexBufferID; 131 GrGLuint fIndexBufferID;
134 bool fIndexBufferIDIsValid; 132 bool fIndexBufferIDIsValid;
135 }; 133 };
136 134
137 #endif 135 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLTransferBuffer.cpp ('k') | src/gpu/gl/GrGLVertexBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698