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

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

Issue 1814113002: Store null GL context's state in interface object (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add overrides 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/GrGLTestInterface.h ('k') | src/gpu/gl/SkNullGLContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include <functional>
9 #include "GrGLTestInterface.h"
10
11 namespace {
12 template<typename R, typename... A>
13 std::function<R(A...)> bind_to_member(GrGLTestInterface* interface, R (GrGLTestI nterface::*member)(A...)) {
14 return [interface, member] (A... a) -> R { return (interface->*member)(a...) ; };
15 }
16 } // anonymous namespace
17
18 GrGLTestInterface::GrGLTestInterface() {
19 fFunctions.fActiveTexture = bind_to_member(this, &GrGLTestInterface::activeT exture);
20 fFunctions.fAttachShader = bind_to_member(this, &GrGLTestInterface::attachSh ader);
21 fFunctions.fBeginQuery = bind_to_member(this, &GrGLTestInterface::beginQuery );
22 fFunctions.fBindAttribLocation = bind_to_member(this, &GrGLTestInterface::bi ndAttribLocation);
23 fFunctions.fBindBuffer = bind_to_member(this, &GrGLTestInterface::bindBuffer );
24 fFunctions.fBindFramebuffer = bind_to_member(this, &GrGLTestInterface::bindF ramebuffer);
25 fFunctions.fBindRenderbuffer = bind_to_member(this, &GrGLTestInterface::bind Renderbuffer);
26 fFunctions.fBindTexture = bind_to_member(this, &GrGLTestInterface::bindTextu re);
27 fFunctions.fBindFragDataLocation = bind_to_member(this, &GrGLTestInterface:: bindFragDataLocation);
28 fFunctions.fBindFragDataLocationIndexed = bind_to_member(this, &GrGLTestInte rface::bindFragDataLocationIndexed);
29 fFunctions.fBindVertexArray = bind_to_member(this, &GrGLTestInterface::bindV ertexArray);
30 fFunctions.fBlendBarrier = bind_to_member(this, &GrGLTestInterface::blendBar rier);
31 fFunctions.fBlendColor = bind_to_member(this, &GrGLTestInterface::blendColor );
32 fFunctions.fBlendEquation = bind_to_member(this, &GrGLTestInterface::blendEq uation);
33 fFunctions.fBlendFunc = bind_to_member(this, &GrGLTestInterface::blendFunc);
34 fFunctions.fBlitFramebuffer = bind_to_member(this, &GrGLTestInterface::blitF ramebuffer);
35 fFunctions.fBufferData = bind_to_member(this, &GrGLTestInterface::bufferData );
36 fFunctions.fBufferSubData = bind_to_member(this, &GrGLTestInterface::bufferS ubData);
37 fFunctions.fCheckFramebufferStatus = bind_to_member(this, &GrGLTestInterface ::checkFramebufferStatus);
38 fFunctions.fClear = bind_to_member(this, &GrGLTestInterface::clear);
39 fFunctions.fClearColor = bind_to_member(this, &GrGLTestInterface::clearColor );
40 fFunctions.fClearStencil = bind_to_member(this, &GrGLTestInterface::clearSte ncil);
41 fFunctions.fColorMask = bind_to_member(this, &GrGLTestInterface::colorMask);
42 fFunctions.fCompileShader = bind_to_member(this, &GrGLTestInterface::compile Shader);
43 fFunctions.fCompressedTexImage2D = bind_to_member(this, &GrGLTestInterface:: compressedTexImage2D);
44 fFunctions.fCompressedTexSubImage2D = bind_to_member(this, &GrGLTestInterfac e::compressedTexSubImage2D);
45 fFunctions.fCopyTexSubImage2D = bind_to_member(this, &GrGLTestInterface::cop yTexSubImage2D);
46 fFunctions.fCreateProgram = bind_to_member(this, &GrGLTestInterface::createP rogram);
47 fFunctions.fCreateShader = bind_to_member(this, &GrGLTestInterface::createSh ader);
48 fFunctions.fCullFace = bind_to_member(this, &GrGLTestInterface::cullFace);
49 fFunctions.fDeleteBuffers = bind_to_member(this, &GrGLTestInterface::deleteB uffers);
50 fFunctions.fDeleteFramebuffers = bind_to_member(this, &GrGLTestInterface::de leteFramebuffers);
51 fFunctions.fDeleteProgram = bind_to_member(this, &GrGLTestInterface::deleteP rogram);
52 fFunctions.fDeleteQueries = bind_to_member(this, &GrGLTestInterface::deleteQ ueries);
53 fFunctions.fDeleteRenderbuffers = bind_to_member(this, &GrGLTestInterface::d eleteRenderbuffers);
54 fFunctions.fDeleteShader = bind_to_member(this, &GrGLTestInterface::deleteSh ader);
55 fFunctions.fDeleteTextures = bind_to_member(this, &GrGLTestInterface::delete Textures);
56 fFunctions.fDeleteVertexArrays = bind_to_member(this, &GrGLTestInterface::de leteVertexArrays);
57 fFunctions.fDepthMask = bind_to_member(this, &GrGLTestInterface::depthMask);
58 fFunctions.fDisable = bind_to_member(this, &GrGLTestInterface::disable);
59 fFunctions.fDisableVertexAttribArray = bind_to_member(this, &GrGLTestInterfa ce::disableVertexAttribArray);
60 fFunctions.fDrawArrays = bind_to_member(this, &GrGLTestInterface::drawArrays );
61 fFunctions.fDrawArraysInstanced = bind_to_member(this, &GrGLTestInterface::d rawArraysInstanced);
62 fFunctions.fDrawArraysIndirect = bind_to_member(this, &GrGLTestInterface::dr awArraysIndirect);
63 fFunctions.fDrawBuffer = bind_to_member(this, &GrGLTestInterface::drawBuffer );
64 fFunctions.fDrawBuffers = bind_to_member(this, &GrGLTestInterface::drawBuffe rs);
65 fFunctions.fDrawElements = bind_to_member(this, &GrGLTestInterface::drawElem ents);
66 fFunctions.fDrawElementsInstanced = bind_to_member(this, &GrGLTestInterface: :drawElementsInstanced);
67 fFunctions.fDrawElementsIndirect = bind_to_member(this, &GrGLTestInterface:: drawElementsIndirect);
68 fFunctions.fEnable = bind_to_member(this, &GrGLTestInterface::enable);
69 fFunctions.fEnableVertexAttribArray = bind_to_member(this, &GrGLTestInterfac e::enableVertexAttribArray);
70 fFunctions.fEndQuery = bind_to_member(this, &GrGLTestInterface::endQuery);
71 fFunctions.fFinish = bind_to_member(this, &GrGLTestInterface::finish);
72 fFunctions.fFlush = bind_to_member(this, &GrGLTestInterface::flush);
73 fFunctions.fFlushMappedBufferRange = bind_to_member(this, &GrGLTestInterface ::flushMappedBufferRange);
74 fFunctions.fFramebufferRenderbuffer = bind_to_member(this, &GrGLTestInterfac e::framebufferRenderbuffer);
75 fFunctions.fFramebufferTexture2D = bind_to_member(this, &GrGLTestInterface:: framebufferTexture2D);
76 fFunctions.fFramebufferTexture2DMultisample = bind_to_member(this, &GrGLTest Interface::framebufferTexture2DMultisample);
77 fFunctions.fFrontFace = bind_to_member(this, &GrGLTestInterface::frontFace);
78 fFunctions.fGenBuffers = bind_to_member(this, &GrGLTestInterface::genBuffers );
79 fFunctions.fGenFramebuffers = bind_to_member(this, &GrGLTestInterface::genFr amebuffers);
80 fFunctions.fGenerateMipmap = bind_to_member(this, &GrGLTestInterface::genera teMipmap);
81 fFunctions.fGenQueries = bind_to_member(this, &GrGLTestInterface::genQueries );
82 fFunctions.fGenRenderbuffers = bind_to_member(this, &GrGLTestInterface::genR enderbuffers);
83 fFunctions.fGenTextures = bind_to_member(this, &GrGLTestInterface::genTextur es);
84 fFunctions.fGenVertexArrays = bind_to_member(this, &GrGLTestInterface::genVe rtexArrays);
85 fFunctions.fGetBufferParameteriv = bind_to_member(this, &GrGLTestInterface:: getBufferParameteriv);
86 fFunctions.fGetError = bind_to_member(this, &GrGLTestInterface::getError);
87 fFunctions.fGetFramebufferAttachmentParameteriv = bind_to_member(this, &GrGL TestInterface::getFramebufferAttachmentParameteriv);
88 fFunctions.fGetIntegerv = bind_to_member(this, &GrGLTestInterface::getIntege rv);
89 fFunctions.fGetMultisamplefv = bind_to_member(this, &GrGLTestInterface::getM ultisamplefv);
90 fFunctions.fGetProgramInfoLog = bind_to_member(this, &GrGLTestInterface::get ProgramInfoLog);
91 fFunctions.fGetProgramiv = bind_to_member(this, &GrGLTestInterface::getProgr amiv);
92 fFunctions.fGetQueryiv = bind_to_member(this, &GrGLTestInterface::getQueryiv );
93 fFunctions.fGetQueryObjecti64v = bind_to_member(this, &GrGLTestInterface::ge tQueryObjecti64v);
94 fFunctions.fGetQueryObjectiv = bind_to_member(this, &GrGLTestInterface::getQ ueryObjectiv);
95 fFunctions.fGetQueryObjectui64v = bind_to_member(this, &GrGLTestInterface::g etQueryObjectui64v);
96 fFunctions.fGetQueryObjectuiv = bind_to_member(this, &GrGLTestInterface::get QueryObjectuiv);
97 fFunctions.fGetRenderbufferParameteriv = bind_to_member(this, &GrGLTestInter face::getRenderbufferParameteriv);
98 fFunctions.fGetShaderInfoLog = bind_to_member(this, &GrGLTestInterface::getS haderInfoLog);
99 fFunctions.fGetShaderiv = bind_to_member(this, &GrGLTestInterface::getShader iv);
100 fFunctions.fGetShaderPrecisionFormat = bind_to_member(this, &GrGLTestInterfa ce::getShaderPrecisionFormat);
101 fFunctions.fGetString = bind_to_member(this, &GrGLTestInterface::getString);
102 fFunctions.fGetStringi = bind_to_member(this, &GrGLTestInterface::getStringi );
103 fFunctions.fGetTexLevelParameteriv = bind_to_member(this, &GrGLTestInterface ::getTexLevelParameteriv);
104 fFunctions.fGetUniformLocation = bind_to_member(this, &GrGLTestInterface::ge tUniformLocation);
105 fFunctions.fInsertEventMarker = bind_to_member(this, &GrGLTestInterface::ins ertEventMarker);
106 fFunctions.fInvalidateBufferData = bind_to_member(this, &GrGLTestInterface:: invalidateBufferData);
107 fFunctions.fInvalidateBufferSubData = bind_to_member(this, &GrGLTestInterfac e::invalidateBufferSubData);
108 fFunctions.fInvalidateFramebuffer = bind_to_member(this, &GrGLTestInterface: :invalidateFramebuffer);
109 fFunctions.fInvalidateSubFramebuffer = bind_to_member(this, &GrGLTestInterfa ce::invalidateSubFramebuffer);
110 fFunctions.fInvalidateTexImage = bind_to_member(this, &GrGLTestInterface::in validateTexImage);
111 fFunctions.fInvalidateTexSubImage = bind_to_member(this, &GrGLTestInterface: :invalidateTexSubImage);
112 fFunctions.fIsTexture = bind_to_member(this, &GrGLTestInterface::isTexture);
113 fFunctions.fLineWidth = bind_to_member(this, &GrGLTestInterface::lineWidth);
114 fFunctions.fLinkProgram = bind_to_member(this, &GrGLTestInterface::linkProgr am);
115 fFunctions.fMapBuffer = bind_to_member(this, &GrGLTestInterface::mapBuffer);
116 fFunctions.fMapBufferRange = bind_to_member(this, &GrGLTestInterface::mapBuf ferRange);
117 fFunctions.fMapBufferSubData = bind_to_member(this, &GrGLTestInterface::mapB ufferSubData);
118 fFunctions.fMapTexSubImage2D = bind_to_member(this, &GrGLTestInterface::mapT exSubImage2D);
119 fFunctions.fPixelStorei = bind_to_member(this, &GrGLTestInterface::pixelStor ei);
120 fFunctions.fPopGroupMarker = bind_to_member(this, &GrGLTestInterface::popGro upMarker);
121 fFunctions.fPushGroupMarker = bind_to_member(this, &GrGLTestInterface::pushG roupMarker);
122 fFunctions.fQueryCounter = bind_to_member(this, &GrGLTestInterface::queryCou nter);
123 fFunctions.fRasterSamples = bind_to_member(this, &GrGLTestInterface::rasterS amples);
124 fFunctions.fReadBuffer = bind_to_member(this, &GrGLTestInterface::readBuffer );
125 fFunctions.fReadPixels = bind_to_member(this, &GrGLTestInterface::readPixels );
126 fFunctions.fRenderbufferStorage = bind_to_member(this, &GrGLTestInterface::r enderbufferStorage);
127 fFunctions.fRenderbufferStorageMultisample = bind_to_member(this, &GrGLTestI nterface::renderbufferStorageMultisample);
128 fFunctions.fResolveMultisampleFramebuffer = bind_to_member(this, &GrGLTestIn terface::resolveMultisampleFramebuffer);
129 fFunctions.fScissor = bind_to_member(this, &GrGLTestInterface::scissor);
130 fFunctions.fBindUniformLocation = bind_to_member(this, &GrGLTestInterface::b indUniformLocation);
131 fFunctions.fShaderSource = bind_to_member(this, &GrGLTestInterface::shaderSo urce);
132 fFunctions.fStencilFunc = bind_to_member(this, &GrGLTestInterface::stencilFu nc);
133 fFunctions.fStencilFuncSeparate = bind_to_member(this, &GrGLTestInterface::s tencilFuncSeparate);
134 fFunctions.fStencilMask = bind_to_member(this, &GrGLTestInterface::stencilMa sk);
135 fFunctions.fStencilMaskSeparate = bind_to_member(this, &GrGLTestInterface::s tencilMaskSeparate);
136 fFunctions.fStencilOp = bind_to_member(this, &GrGLTestInterface::stencilOp);
137 fFunctions.fStencilOpSeparate = bind_to_member(this, &GrGLTestInterface::ste ncilOpSeparate);
138 fFunctions.fTexBuffer = bind_to_member(this, &GrGLTestInterface::texBuffer);
139 fFunctions.fTexImage2D = bind_to_member(this, &GrGLTestInterface::texImage2D );
140 fFunctions.fTexParameteri = bind_to_member(this, &GrGLTestInterface::texPara meteri);
141 fFunctions.fTexParameteriv = bind_to_member(this, &GrGLTestInterface::texPar ameteriv);
142 fFunctions.fTexStorage2D = bind_to_member(this, &GrGLTestInterface::texStora ge2D);
143 fFunctions.fDiscardFramebuffer = bind_to_member(this, &GrGLTestInterface::di scardFramebuffer);
144 fFunctions.fTexSubImage2D = bind_to_member(this, &GrGLTestInterface::texSubI mage2D);
145 fFunctions.fTextureBarrier = bind_to_member(this, &GrGLTestInterface::textur eBarrier);
146 fFunctions.fUniform1f = bind_to_member(this, &GrGLTestInterface::uniform1f);
147 fFunctions.fUniform1i = bind_to_member(this, &GrGLTestInterface::uniform1i);
148 fFunctions.fUniform1fv = bind_to_member(this, &GrGLTestInterface::uniform1fv );
149 fFunctions.fUniform1iv = bind_to_member(this, &GrGLTestInterface::uniform1iv );
150 fFunctions.fUniform2f = bind_to_member(this, &GrGLTestInterface::uniform2f);
151 fFunctions.fUniform2i = bind_to_member(this, &GrGLTestInterface::uniform2i);
152 fFunctions.fUniform2fv = bind_to_member(this, &GrGLTestInterface::uniform2fv );
153 fFunctions.fUniform2iv = bind_to_member(this, &GrGLTestInterface::uniform2iv );
154 fFunctions.fUniform3f = bind_to_member(this, &GrGLTestInterface::uniform3f);
155 fFunctions.fUniform3i = bind_to_member(this, &GrGLTestInterface::uniform3i);
156 fFunctions.fUniform3fv = bind_to_member(this, &GrGLTestInterface::uniform3fv );
157 fFunctions.fUniform3iv = bind_to_member(this, &GrGLTestInterface::uniform3iv );
158 fFunctions.fUniform4f = bind_to_member(this, &GrGLTestInterface::uniform4f);
159 fFunctions.fUniform4i = bind_to_member(this, &GrGLTestInterface::uniform4i);
160 fFunctions.fUniform4fv = bind_to_member(this, &GrGLTestInterface::uniform4fv );
161 fFunctions.fUniform4iv = bind_to_member(this, &GrGLTestInterface::uniform4iv );
162 fFunctions.fUniformMatrix2fv = bind_to_member(this, &GrGLTestInterface::unif ormMatrix2fv);
163 fFunctions.fUniformMatrix3fv = bind_to_member(this, &GrGLTestInterface::unif ormMatrix3fv);
164 fFunctions.fUniformMatrix4fv = bind_to_member(this, &GrGLTestInterface::unif ormMatrix4fv);
165 fFunctions.fUnmapBuffer = bind_to_member(this, &GrGLTestInterface::unmapBuff er);
166 fFunctions.fUnmapBufferSubData = bind_to_member(this, &GrGLTestInterface::un mapBufferSubData);
167 fFunctions.fUnmapTexSubImage2D = bind_to_member(this, &GrGLTestInterface::un mapTexSubImage2D);
168 fFunctions.fUseProgram = bind_to_member(this, &GrGLTestInterface::useProgram );
169 fFunctions.fVertexAttrib1f = bind_to_member(this, &GrGLTestInterface::vertex Attrib1f);
170 fFunctions.fVertexAttrib2fv = bind_to_member(this, &GrGLTestInterface::verte xAttrib2fv);
171 fFunctions.fVertexAttrib3fv = bind_to_member(this, &GrGLTestInterface::verte xAttrib3fv);
172 fFunctions.fVertexAttrib4fv = bind_to_member(this, &GrGLTestInterface::verte xAttrib4fv);
173 fFunctions.fVertexAttribDivisor = bind_to_member(this, &GrGLTestInterface::v ertexAttribDivisor);
174 fFunctions.fVertexAttribIPointer = bind_to_member(this, &GrGLTestInterface:: vertexAttribIPointer);
175 fFunctions.fVertexAttribPointer = bind_to_member(this, &GrGLTestInterface::v ertexAttribPointer);
176 fFunctions.fViewport = bind_to_member(this, &GrGLTestInterface::viewport);
177 fFunctions.fMatrixLoadf = bind_to_member(this, &GrGLTestInterface::matrixLoa df);
178 fFunctions.fMatrixLoadIdentity = bind_to_member(this, &GrGLTestInterface::ma trixLoadIdentity);
179 fFunctions.fPathCommands = bind_to_member(this, &GrGLTestInterface::pathComm ands);
180 fFunctions.fPathParameteri = bind_to_member(this, &GrGLTestInterface::pathPa rameteri);
181 fFunctions.fPathParameterf = bind_to_member(this, &GrGLTestInterface::pathPa rameterf);
182 fFunctions.fGenPaths = bind_to_member(this, &GrGLTestInterface::genPaths);
183 fFunctions.fDeletePaths = bind_to_member(this, &GrGLTestInterface::deletePat hs);
184 fFunctions.fIsPath = bind_to_member(this, &GrGLTestInterface::isPath);
185 fFunctions.fPathStencilFunc = bind_to_member(this, &GrGLTestInterface::pathS tencilFunc);
186 fFunctions.fStencilFillPath = bind_to_member(this, &GrGLTestInterface::stenc ilFillPath);
187 fFunctions.fStencilStrokePath = bind_to_member(this, &GrGLTestInterface::ste ncilStrokePath);
188 fFunctions.fStencilFillPathInstanced = bind_to_member(this, &GrGLTestInterfa ce::stencilFillPathInstanced);
189 fFunctions.fStencilStrokePathInstanced = bind_to_member(this, &GrGLTestInter face::stencilStrokePathInstanced);
190 fFunctions.fCoverFillPath = bind_to_member(this, &GrGLTestInterface::coverFi llPath);
191 fFunctions.fCoverStrokePath = bind_to_member(this, &GrGLTestInterface::cover StrokePath);
192 fFunctions.fCoverFillPathInstanced = bind_to_member(this, &GrGLTestInterface ::coverFillPathInstanced);
193 fFunctions.fCoverStrokePathInstanced = bind_to_member(this, &GrGLTestInterfa ce::coverStrokePathInstanced);
194 fFunctions.fStencilThenCoverFillPath = bind_to_member(this, &GrGLTestInterfa ce::stencilThenCoverFillPath);
195 fFunctions.fStencilThenCoverStrokePath = bind_to_member(this, &GrGLTestInter face::stencilThenCoverStrokePath);
196 fFunctions.fStencilThenCoverFillPathInstanced = bind_to_member(this, &GrGLTe stInterface::stencilThenCoverFillPathInstanced);
197 fFunctions.fStencilThenCoverStrokePathInstanced = bind_to_member(this, &GrGL TestInterface::stencilThenCoverStrokePathInstanced);
198 fFunctions.fProgramPathFragmentInputGen = bind_to_member(this, &GrGLTestInte rface::programPathFragmentInputGen);
199 fFunctions.fBindFragmentInputLocation = bind_to_member(this, &GrGLTestInterf ace::bindFragmentInputLocation);
200 fFunctions.fGetProgramResourceLocation = bind_to_member(this, &GrGLTestInter face::getProgramResourceLocation);
201 fFunctions.fCoverageModulation = bind_to_member(this, &GrGLTestInterface::co verageModulation);
202 fFunctions.fMultiDrawArraysIndirect = bind_to_member(this, &GrGLTestInterfac e::multiDrawArraysIndirect);
203 fFunctions.fMultiDrawElementsIndirect = bind_to_member(this, &GrGLTestInterf ace::multiDrawElementsIndirect);
204 fFunctions.fGetTextureHandle = bind_to_member(this, &GrGLTestInterface::getT extureHandle);
205 fFunctions.fGetTextureSamplerHandle = bind_to_member(this, &GrGLTestInterfac e::getTextureSamplerHandle);
206 fFunctions.fMakeTextureHandleResident = bind_to_member(this, &GrGLTestInterf ace::makeTextureHandleResident);
207 fFunctions.fMakeTextureHandleNonResident = bind_to_member(this, &GrGLTestInt erface::makeTextureHandleNonResident);
208 fFunctions.fGetImageHandle = bind_to_member(this, &GrGLTestInterface::getIma geHandle);
209 fFunctions.fMakeImageHandleResident = bind_to_member(this, &GrGLTestInterfac e::makeImageHandleResident);
210 fFunctions.fMakeImageHandleNonResident = bind_to_member(this, &GrGLTestInter face::makeImageHandleNonResident);
211 fFunctions.fIsTextureHandleResident = bind_to_member(this, &GrGLTestInterfac e::isTextureHandleResident);
212 fFunctions.fIsImageHandleResident = bind_to_member(this, &GrGLTestInterface: :isImageHandleResident);
213 fFunctions.fUniformHandleui64 = bind_to_member(this, &GrGLTestInterface::uni formHandleui64);
214 fFunctions.fUniformHandleui64v = bind_to_member(this, &GrGLTestInterface::un iformHandleui64v);
215 fFunctions.fProgramUniformHandleui64 = bind_to_member(this, &GrGLTestInterfa ce::programUniformHandleui64);
216 fFunctions.fProgramUniformHandleui64v = bind_to_member(this, &GrGLTestInterf ace::programUniformHandleui64v);
217 fFunctions.fTextureParameteri = bind_to_member(this, &GrGLTestInterface::tex tureParameteri);
218 fFunctions.fTextureParameteriv = bind_to_member(this, &GrGLTestInterface::te xtureParameteriv);
219 fFunctions.fTextureParameterf = bind_to_member(this, &GrGLTestInterface::tex tureParameterf);
220 fFunctions.fTextureParameterfv = bind_to_member(this, &GrGLTestInterface::te xtureParameterfv);
221 fFunctions.fTextureImage1D = bind_to_member(this, &GrGLTestInterface::textur eImage1D);
222 fFunctions.fTextureImage2D = bind_to_member(this, &GrGLTestInterface::textur eImage2D);
223 fFunctions.fTextureSubImage1D = bind_to_member(this, &GrGLTestInterface::tex tureSubImage1D);
224 fFunctions.fTextureSubImage2D = bind_to_member(this, &GrGLTestInterface::tex tureSubImage2D);
225 fFunctions.fCopyTextureImage1D = bind_to_member(this, &GrGLTestInterface::co pyTextureImage1D);
226 fFunctions.fCopyTextureImage2D = bind_to_member(this, &GrGLTestInterface::co pyTextureImage2D);
227 fFunctions.fCopyTextureSubImage1D = bind_to_member(this, &GrGLTestInterface: :copyTextureSubImage1D);
228 fFunctions.fCopyTextureSubImage2D = bind_to_member(this, &GrGLTestInterface: :copyTextureSubImage2D);
229 fFunctions.fGetTextureImage = bind_to_member(this, &GrGLTestInterface::getTe xtureImage);
230 fFunctions.fGetTextureParameterfv = bind_to_member(this, &GrGLTestInterface: :getTextureParameterfv);
231 fFunctions.fGetTextureParameteriv = bind_to_member(this, &GrGLTestInterface: :getTextureParameteriv);
232 fFunctions.fGetTextureLevelParameterfv = bind_to_member(this, &GrGLTestInter face::getTextureLevelParameterfv);
233 fFunctions.fGetTextureLevelParameteriv = bind_to_member(this, &GrGLTestInter face::getTextureLevelParameteriv);
234 fFunctions.fTextureImage3D = bind_to_member(this, &GrGLTestInterface::textur eImage3D);
235 fFunctions.fTextureSubImage3D = bind_to_member(this, &GrGLTestInterface::tex tureSubImage3D);
236 fFunctions.fCopyTextureSubImage3D = bind_to_member(this, &GrGLTestInterface: :copyTextureSubImage3D);
237 fFunctions.fCompressedTextureImage3D = bind_to_member(this, &GrGLTestInterfa ce::compressedTextureImage3D);
238 fFunctions.fCompressedTextureImage2D = bind_to_member(this, &GrGLTestInterfa ce::compressedTextureImage2D);
239 fFunctions.fCompressedTextureImage1D = bind_to_member(this, &GrGLTestInterfa ce::compressedTextureImage1D);
240 fFunctions.fCompressedTextureSubImage3D = bind_to_member(this, &GrGLTestInte rface::compressedTextureSubImage3D);
241 fFunctions.fCompressedTextureSubImage2D = bind_to_member(this, &GrGLTestInte rface::compressedTextureSubImage2D);
242 fFunctions.fCompressedTextureSubImage1D = bind_to_member(this, &GrGLTestInte rface::compressedTextureSubImage1D);
243 fFunctions.fGetCompressedTextureImage = bind_to_member(this, &GrGLTestInterf ace::getCompressedTextureImage);
244 fFunctions.fNamedBufferData = bind_to_member(this, &GrGLTestInterface::named BufferData);
245 fFunctions.fNamedBufferSubData = bind_to_member(this, &GrGLTestInterface::na medBufferSubData);
246 fFunctions.fMapNamedBuffer = bind_to_member(this, &GrGLTestInterface::mapNam edBuffer);
247 fFunctions.fUnmapNamedBuffer = bind_to_member(this, &GrGLTestInterface::unma pNamedBuffer);
248 fFunctions.fGetNamedBufferParameteriv = bind_to_member(this, &GrGLTestInterf ace::getNamedBufferParameteriv);
249 fFunctions.fGetNamedBufferPointerv = bind_to_member(this, &GrGLTestInterface ::getNamedBufferPointerv);
250 fFunctions.fGetNamedBufferSubData = bind_to_member(this, &GrGLTestInterface: :getNamedBufferSubData);
251 fFunctions.fProgramUniform1f = bind_to_member(this, &GrGLTestInterface::prog ramUniform1f);
252 fFunctions.fProgramUniform2f = bind_to_member(this, &GrGLTestInterface::prog ramUniform2f);
253 fFunctions.fProgramUniform3f = bind_to_member(this, &GrGLTestInterface::prog ramUniform3f);
254 fFunctions.fProgramUniform4f = bind_to_member(this, &GrGLTestInterface::prog ramUniform4f);
255 fFunctions.fProgramUniform1i = bind_to_member(this, &GrGLTestInterface::prog ramUniform1i);
256 fFunctions.fProgramUniform2i = bind_to_member(this, &GrGLTestInterface::prog ramUniform2i);
257 fFunctions.fProgramUniform3i = bind_to_member(this, &GrGLTestInterface::prog ramUniform3i);
258 fFunctions.fProgramUniform4i = bind_to_member(this, &GrGLTestInterface::prog ramUniform4i);
259 fFunctions.fProgramUniform1fv = bind_to_member(this, &GrGLTestInterface::pro gramUniform1fv);
260 fFunctions.fProgramUniform2fv = bind_to_member(this, &GrGLTestInterface::pro gramUniform2fv);
261 fFunctions.fProgramUniform3fv = bind_to_member(this, &GrGLTestInterface::pro gramUniform3fv);
262 fFunctions.fProgramUniform4fv = bind_to_member(this, &GrGLTestInterface::pro gramUniform4fv);
263 fFunctions.fProgramUniform1iv = bind_to_member(this, &GrGLTestInterface::pro gramUniform1iv);
264 fFunctions.fProgramUniform2iv = bind_to_member(this, &GrGLTestInterface::pro gramUniform2iv);
265 fFunctions.fProgramUniform3iv = bind_to_member(this, &GrGLTestInterface::pro gramUniform3iv);
266 fFunctions.fProgramUniform4iv = bind_to_member(this, &GrGLTestInterface::pro gramUniform4iv);
267 fFunctions.fProgramUniformMatrix2fv = bind_to_member(this, &GrGLTestInterfac e::programUniformMatrix2fv);
268 fFunctions.fProgramUniformMatrix3fv = bind_to_member(this, &GrGLTestInterfac e::programUniformMatrix3fv);
269 fFunctions.fProgramUniformMatrix4fv = bind_to_member(this, &GrGLTestInterfac e::programUniformMatrix4fv);
270 fFunctions.fProgramUniformMatrix2x3fv = bind_to_member(this, &GrGLTestInterf ace::programUniformMatrix2x3fv);
271 fFunctions.fProgramUniformMatrix3x2fv = bind_to_member(this, &GrGLTestInterf ace::programUniformMatrix3x2fv);
272 fFunctions.fProgramUniformMatrix2x4fv = bind_to_member(this, &GrGLTestInterf ace::programUniformMatrix2x4fv);
273 fFunctions.fProgramUniformMatrix4x2fv = bind_to_member(this, &GrGLTestInterf ace::programUniformMatrix4x2fv);
274 fFunctions.fProgramUniformMatrix3x4fv = bind_to_member(this, &GrGLTestInterf ace::programUniformMatrix3x4fv);
275 fFunctions.fProgramUniformMatrix4x3fv = bind_to_member(this, &GrGLTestInterf ace::programUniformMatrix4x3fv);
276 fFunctions.fNamedRenderbufferStorage = bind_to_member(this, &GrGLTestInterfa ce::namedRenderbufferStorage);
277 fFunctions.fGetNamedRenderbufferParameteriv = bind_to_member(this, &GrGLTest Interface::getNamedRenderbufferParameteriv);
278 fFunctions.fNamedRenderbufferStorageMultisample = bind_to_member(this, &GrGL TestInterface::namedRenderbufferStorageMultisample);
279 fFunctions.fCheckNamedFramebufferStatus = bind_to_member(this, &GrGLTestInte rface::checkNamedFramebufferStatus);
280 fFunctions.fNamedFramebufferTexture1D = bind_to_member(this, &GrGLTestInterf ace::namedFramebufferTexture1D);
281 fFunctions.fNamedFramebufferTexture2D = bind_to_member(this, &GrGLTestInterf ace::namedFramebufferTexture2D);
282 fFunctions.fNamedFramebufferTexture3D = bind_to_member(this, &GrGLTestInterf ace::namedFramebufferTexture3D);
283 fFunctions.fNamedFramebufferRenderbuffer = bind_to_member(this, &GrGLTestInt erface::namedFramebufferRenderbuffer);
284 fFunctions.fGetNamedFramebufferAttachmentParameteriv = bind_to_member(this, &GrGLTestInterface::getNamedFramebufferAttachmentParameteriv);
285 fFunctions.fGenerateTextureMipmap = bind_to_member(this, &GrGLTestInterface: :generateTextureMipmap);
286 fFunctions.fFramebufferDrawBuffer = bind_to_member(this, &GrGLTestInterface: :framebufferDrawBuffer);
287 fFunctions.fFramebufferDrawBuffers = bind_to_member(this, &GrGLTestInterface ::framebufferDrawBuffers);
288 fFunctions.fFramebufferReadBuffer = bind_to_member(this, &GrGLTestInterface: :framebufferReadBuffer);
289 fFunctions.fGetFramebufferParameteriv = bind_to_member(this, &GrGLTestInterf ace::getFramebufferParameteriv);
290 fFunctions.fNamedCopyBufferSubData = bind_to_member(this, &GrGLTestInterface ::namedCopyBufferSubData);
291 fFunctions.fVertexArrayVertexOffset = bind_to_member(this, &GrGLTestInterfac e::vertexArrayVertexOffset);
292 fFunctions.fVertexArrayColorOffset = bind_to_member(this, &GrGLTestInterface ::vertexArrayColorOffset);
293 fFunctions.fVertexArrayEdgeFlagOffset = bind_to_member(this, &GrGLTestInterf ace::vertexArrayEdgeFlagOffset);
294 fFunctions.fVertexArrayIndexOffset = bind_to_member(this, &GrGLTestInterface ::vertexArrayIndexOffset);
295 fFunctions.fVertexArrayNormalOffset = bind_to_member(this, &GrGLTestInterfac e::vertexArrayNormalOffset);
296 fFunctions.fVertexArrayTexCoordOffset = bind_to_member(this, &GrGLTestInterf ace::vertexArrayTexCoordOffset);
297 fFunctions.fVertexArrayMultiTexCoordOffset = bind_to_member(this, &GrGLTestI nterface::vertexArrayMultiTexCoordOffset);
298 fFunctions.fVertexArrayFogCoordOffset = bind_to_member(this, &GrGLTestInterf ace::vertexArrayFogCoordOffset);
299 fFunctions.fVertexArraySecondaryColorOffset = bind_to_member(this, &GrGLTest Interface::vertexArraySecondaryColorOffset);
300 fFunctions.fVertexArrayVertexAttribOffset = bind_to_member(this, &GrGLTestIn terface::vertexArrayVertexAttribOffset);
301 fFunctions.fVertexArrayVertexAttribIOffset = bind_to_member(this, &GrGLTestI nterface::vertexArrayVertexAttribIOffset);
302 fFunctions.fEnableVertexArray = bind_to_member(this, &GrGLTestInterface::ena bleVertexArray);
303 fFunctions.fDisableVertexArray = bind_to_member(this, &GrGLTestInterface::di sableVertexArray);
304 fFunctions.fEnableVertexArrayAttrib = bind_to_member(this, &GrGLTestInterfac e::enableVertexArrayAttrib);
305 fFunctions.fDisableVertexArrayAttrib = bind_to_member(this, &GrGLTestInterfa ce::disableVertexArrayAttrib);
306 fFunctions.fGetVertexArrayIntegerv = bind_to_member(this, &GrGLTestInterface ::getVertexArrayIntegerv);
307 fFunctions.fGetVertexArrayPointerv = bind_to_member(this, &GrGLTestInterface ::getVertexArrayPointerv);
308 fFunctions.fGetVertexArrayIntegeri_v = bind_to_member(this, &GrGLTestInterfa ce::getVertexArrayIntegeri_v);
309 fFunctions.fGetVertexArrayPointeri_v = bind_to_member(this, &GrGLTestInterfa ce::getVertexArrayPointeri_v);
310 fFunctions.fMapNamedBufferRange = bind_to_member(this, &GrGLTestInterface::m apNamedBufferRange);
311 fFunctions.fFlushMappedNamedBufferRange = bind_to_member(this, &GrGLTestInte rface::flushMappedNamedBufferRange);
312 fFunctions.fTextureBuffer = bind_to_member(this, &GrGLTestInterface::texture Buffer);
313 fFunctions.fDebugMessageControl = bind_to_member(this, &GrGLTestInterface::d ebugMessageControl);
314 fFunctions.fDebugMessageInsert = bind_to_member(this, &GrGLTestInterface::de bugMessageInsert);
315 fFunctions.fDebugMessageCallback = bind_to_member(this, &GrGLTestInterface:: debugMessageCallback);
316 fFunctions.fGetDebugMessageLog = bind_to_member(this, &GrGLTestInterface::ge tDebugMessageLog);
317 fFunctions.fPushDebugGroup = bind_to_member(this, &GrGLTestInterface::pushDe bugGroup);
318 fFunctions.fPopDebugGroup = bind_to_member(this, &GrGLTestInterface::popDebu gGroup);
319 fFunctions.fObjectLabel = bind_to_member(this, &GrGLTestInterface::objectLab el);
320 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLTestInterface.h ('k') | src/gpu/gl/SkNullGLContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698