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

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

Issue 1831133004: Revert of Consolidate GPU buffer implementations (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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;
16 class GrGLGpu; 18 class GrGLGpu;
17 19
18 /** 20 /**
19 * This sets and tracks the vertex attribute array state. It is used internally by GrGLVertexArray 21 * This sets and tracks the vertex attribute array state. It is used internally by GrGLVertexArray
20 * (below) but is separate because it is also used to track the state of vertex array object 0. 22 * (below) but is separate because it is also used to track the state of vertex array object 0.
21 */ 23 */
22 class GrGLAttribArrayState { 24 class GrGLAttribArrayState {
23 public: 25 public:
24 explicit GrGLAttribArrayState(int arrayCount = 0) { 26 explicit GrGLAttribArrayState(int arrayCount = 0) {
25 this->resize(arrayCount); 27 this->resize(arrayCount);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 void invalidateCachedState(); 128 void invalidateCachedState();
127 129
128 private: 130 private:
129 GrGLuint fID; 131 GrGLuint fID;
130 GrGLAttribArrayState fAttribArrays; 132 GrGLAttribArrayState fAttribArrays;
131 GrGLuint fIndexBufferID; 133 GrGLuint fIndexBufferID;
132 bool fIndexBufferIDIsValid; 134 bool fIndexBufferIDIsValid;
133 }; 135 };
134 136
135 #endif 137 #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