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

Side by Side Diff: src/gpu/gl/GrGLNoOpInterface.cpp

Issue 130423013: Use vertex buffer objects instead of client side arrays in fixed-function codepaths (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 10 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/GrGLNoOpInterface.h ('k') | src/gpu/gl/GrGLVertexArray.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 #include "GrGLNoOpInterface.h" 8 #include "GrGLNoOpInterface.h"
9 #include "SkString.h" 9 #include "SkString.h"
10 #include "SkThread.h" 10 #include "SkThread.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLCullFace(GrGLenum mode) { 113 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLCullFace(GrGLenum mode) {
114 } 114 }
115 115
116 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDepthMask(GrGLboolean flag) { 116 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDepthMask(GrGLboolean flag) {
117 } 117 }
118 118
119 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDisable(GrGLenum cap) { 119 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDisable(GrGLenum cap) {
120 } 120 }
121 121
122 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDisableClientState(GrGLenum) {
123 }
124
125 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDisableVertexAttribArray(GrGLuint index) { 122 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDisableVertexAttribArray(GrGLuint index) {
126 } 123 }
127 124
128 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawArrays(GrGLenum mode, 125 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawArrays(GrGLenum mode,
129 GrGLint first, 126 GrGLint first,
130 GrGLsizei count) { 127 GrGLsizei count) {
131 } 128 }
132 129
133 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawBuffer(GrGLenum mode) { 130 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawBuffer(GrGLenum mode) {
134 } 131 }
135 132
136 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawBuffers(GrGLsizei n, 133 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawBuffers(GrGLsizei n,
137 const GrGLenum* bufs) { 134 const GrGLenum* bufs) {
138 } 135 }
139 136
140 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawElements(GrGLenum mode, 137 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLDrawElements(GrGLenum mode,
141 GrGLsizei count, 138 GrGLsizei count,
142 GrGLenum type, 139 GrGLenum type,
143 const GrGLvoid* indices) { 140 const GrGLvoid* indices) {
144 } 141 }
145 142
146 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLEnable(GrGLenum cap) { 143 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLEnable(GrGLenum cap) {
147 } 144 }
148 145
149 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLEnableClientState(GrGLenum cap) {
150 }
151
152 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLEnableVertexAttribArray(GrGLuint index) { 146 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLEnableVertexAttribArray(GrGLuint index) {
153 } 147 }
154 148
155 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLEndQuery(GrGLenum target) { 149 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLEndQuery(GrGLenum target) {
156 } 150 }
157 151
158 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLFinish() { 152 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLFinish() {
159 } 153 }
160 154
161 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLFlush() { 155 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLFlush() {
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 } 372 }
379 373
380 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLVertexAttribPointer(GrGLuint indx, 374 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLVertexAttribPointer(GrGLuint indx,
381 GrGLint size, 375 GrGLint size,
382 GrGLenum type, 376 GrGLenum type,
383 GrGLboolean normalized, 377 GrGLboolean normalized,
384 GrGLsizei stride, 378 GrGLsizei stride,
385 const GrGLvoid* ptr) { 379 const GrGLvoid* ptr) {
386 } 380 }
387 381
388 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLVertexPointer(GrGLint, GrGLenum, GrGLsizei, c onst GrGLvoid*) {
389 }
390
391 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLViewport(GrGLint x, 382 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLViewport(GrGLint x,
392 GrGLint y, 383 GrGLint y,
393 GrGLsizei width, 384 GrGLsizei width,
394 GrGLsizei height) { 385 GrGLsizei height) {
395 } 386 }
396 387
397 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLGetFramebufferAttachmentParameteriv(GrGLenu m target, 388 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLGetFramebufferAttachmentParameteriv(GrGLenu m target,
398 GrGLenu m attachment, 389 GrGLenu m attachment,
399 GrGLenu m pname, 390 GrGLenu m pname,
400 GrGLint * params) { 391 GrGLint * params) {
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 static int gUniLocation = 0; 647 static int gUniLocation = 0;
657 return ++gUniLocation; 648 return ++gUniLocation;
658 } 649 }
659 650
660 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLInsertEventMarker(GrGLsizei length, const cha r* marker) { 651 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLInsertEventMarker(GrGLsizei length, const cha r* marker) {
661 } 652 }
662 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPushGroupMarker(GrGLsizei length , const cha r* marker) { 653 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPushGroupMarker(GrGLsizei length , const cha r* marker) {
663 } 654 }
664 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPopGroupMarker() { 655 GrGLvoid GR_GL_FUNCTION_TYPE noOpGLPopGroupMarker() {
665 } 656 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLNoOpInterface.h ('k') | src/gpu/gl/GrGLVertexArray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698