Home
last modified time | relevance | path

Searched refs:mFunctions (Results 1 – 25 of 88) sorted by relevance

1234

/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DBackendGL.cpp128 return mFunctions.Initialize(getProc); in InitializeGLFunctions()
141 if (mFunctions.GetVersion().IsES()) { in InitializeImpl()
150 bool hasDebugOutput = mFunctions.IsAtLeastGL(4, 3) || mFunctions.IsAtLeastGLES(3, 2); in InitializeImpl()
153 mFunctions.Enable(GL_DEBUG_OUTPUT); in InitializeImpl()
154 mFunctions.Enable(GL_DEBUG_OUTPUT_SYNCHRONOUS); in InitializeImpl()
157 mFunctions.DebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DEBUG_SEVERITY_HIGH, in InitializeImpl()
162 mFunctions.DebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DEBUG_SEVERITY_MEDIUM, in InitializeImpl()
167 mFunctions.DebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DEBUG_SEVERITY_LOW, 0, in InitializeImpl()
171 mFunctions.DebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, in InitializeImpl()
174 mFunctions.DebugMessageCallback(&OnGLDebugMessage, nullptr); in InitializeImpl()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
DProgramGL.cpp39 mFunctions(functions), in ProgramGL()
48 ASSERT(mFunctions); in ProgramGL()
51 mProgramID = mFunctions->createProgram(); in ProgramGL()
56 mFunctions->deleteProgram(mProgramID); in ~ProgramGL()
73 mFunctions->programBinary(mProgramID, binaryFormat, binary, binaryLength); in load()
90 mFunctions->getProgramiv(mProgramID, GL_PROGRAM_BINARY_LENGTH, &binaryLength); in save()
94 mFunctions->getProgramBinary(mProgramID, binaryLength, &binaryLength, &binaryFormat, in save()
121 if (mFunctions->programParameteri) in setBinaryRetrievableHint()
123 mFunctions->programParameteri(mProgramID, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, in setBinaryRetrievableHint()
130 mFunctions->programParameteri(mProgramID, GL_PROGRAM_SEPARABLE, separable ? GL_TRUE : GL_FALSE); in setSeparable()
[all …]
DRendererGL.cpp212 mFunctions(std::move(functions)), in RendererGL()
221 ASSERT(mFunctions); in RendererGL()
222 nativegl_gl::InitializeFeatures(mFunctions.get(), &mFeatures); in RendererGL()
225 new StateManagerGL(mFunctions.get(), getNativeCaps(), getNativeExtensions(), mFeatures); in RendererGL()
226 mBlitter = new BlitGL(mFunctions.get(), mFeatures, mStateManager); in RendererGL()
227 mMultiviewClearer = new ClearMultiviewGL(mFunctions.get(), mStateManager); in RendererGL()
229 bool hasDebugOutput = mFunctions->isAtLeastGL(gl::Version(4, 3)) || in RendererGL()
230 mFunctions->hasGLExtension("GL_KHR_debug") || in RendererGL()
231 mFunctions->isAtLeastGLES(gl::Version(3, 2)) || in RendererGL()
232 mFunctions->hasGLESExtension("GL_KHR_debug"); in RendererGL()
[all …]
DBlitGL.cpp217 : mFunctions(functions), in BlitGL()
229 ASSERT(mFunctions); in BlitGL()
285 mFunctions->texImage2D(ToGLenum(target), static_cast<GLint>(level), internalFormat, in copyImageToLUMAWorkaroundTexture()
318 nativegl::GetCopyTexImageImageFormat(mFunctions, mFeatures, readFormat, readType); in copySubImageToLUMAWorkaroundTexture()
321 mFunctions->copyTexImage2D(GL_TEXTURE_2D, 0, copyTexImageFormat.internalFormat, sourceArea.x, in copySubImageToLUMAWorkaroundTexture()
332 mFunctions->texParameteriv(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_RGBA, swizzle); in copySubImageToLUMAWorkaroundTexture()
337 mFunctions->texImage2D( in copySubImageToLUMAWorkaroundTexture()
342 mFunctions->framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, in copySubImageToLUMAWorkaroundTexture()
357 mFunctions->uniform1i(blitProgram->sourceTextureLocation, 0); in copySubImageToLUMAWorkaroundTexture()
358 mFunctions->uniform2f(blitProgram->scaleLocation, 1.0, 1.0); in copySubImageToLUMAWorkaroundTexture()
[all …]
DQueryGL.cpp61 mFunctions(functions), in StandardQueryGL()
73 mFunctions->deleteQueries(1, &mActiveQuery); in ~StandardQueryGL()
80 mFunctions->deleteQueries(1, &id); in ~StandardQueryGL()
103 mFunctions->genQueries(1, &query); in queryCounter()
104 mFunctions->queryCounter(query, GL_TIMESTAMP); in queryCounter()
171 mFunctions->genQueries(1, &mActiveQuery); in resume()
186 mFunctions->getQueryObjectuiv(id, GL_QUERY_RESULT_AVAILABLE, &resultAvailable); in flush()
196 if (mFunctions->getQueryObjectui64v != nullptr) in flush()
199 mFunctions->getQueryObjectui64v(id, GL_QUERY_RESULT, &result); in flush()
205 mFunctions->getQueryObjectuiv(id, GL_QUERY_RESULT, &result); in flush()
[all …]
DStateManagerGL.cpp43 : mFunctions(functions), in StateManagerGL()
135 ASSERT(mFunctions);
150 if (mFunctions->standard == STANDARD_GL_DESKTOP)
152 mFunctions->enable(GL_PROGRAM_POINT_SIZE);
157 if ((mFunctions->profile & GL_CONTEXT_CORE_PROFILE_BIT) == 0)
159 mFunctions->enable(GL_POINT_SPRITE);
178 mFunctions->deleteProgram(program); in deleteProgram()
191 mFunctions->deleteVertexArrays(1, &vao); in deleteVertexArray()
221 mFunctions->deleteTextures(1, &texture); in deleteTexture()
237 mFunctions->deleteSamplers(1, &sampler); in deleteSampler()
[all …]
DFenceNVGL.cpp19 FenceNVGL::FenceNVGL(const FunctionsGL *functions) : FenceNVImpl(), mFunctions(functions) in FenceNVGL()
21 mFunctions->genFencesNV(1, &mFence); in FenceNVGL()
26 mFunctions->deleteFencesNV(1, &mFence); in ~FenceNVGL()
33 mFunctions->setFenceNV(mFence, condition); in set()
40 *outFinished = mFunctions->testFenceNV(mFence); in test()
46 mFunctions->finishFenceNV(mFence); in finish()
57 : FenceNVImpl(), mSyncObject(0), mFunctions(functions) in FenceNVSyncGL()
64 mFunctions->deleteSync(mSyncObject); in ~FenceNVSyncGL()
72 mSyncObject = mFunctions->fenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); in set()
80 ASSERT(mFunctions->isSync(mSyncObject)); in test()
[all …]
DClearMultiviewGL.cpp21 : mFunctions(functions), mStateManager(stateManager), mFramebuffer(0u) in ClearMultiviewGL()
28 mFunctions->deleteFramebuffers(1, &mFramebuffer); in ~ClearMultiviewGL()
66 mFunctions->drawBuffers(static_cast<GLsizei>(drawBuffers.size()), drawBuffers.data()); in clearLayeredFBO()
91 mFunctions->clear(mask); in genericClear()
94 mFunctions->clearBufferfv(buffer, drawbuffer, in genericClear()
98 mFunctions->clearBufferuiv(buffer, drawbuffer, in genericClear()
102 mFunctions->clearBufferiv(buffer, drawbuffer, reinterpret_cast<const GLint *>(values)); in genericClear()
105 mFunctions->clearBufferfi(buffer, drawbuffer, depth, stencil); in genericClear()
128 mFunctions->framebufferTextureLayer(GL_DRAW_FRAMEBUFFER, colorAttachment, in attachTextures()
142 mFunctions->framebufferTextureLayer(GL_DRAW_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, in attachTextures()
[all …]
DSamplerGL.cpp72 mFunctions(functions), in SamplerGL()
77 mFunctions->genSamplers(1, &mSamplerID); in SamplerGL()
93 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MIN_FILTER… in syncState()
94 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MAG_FILTER… in syncState()
95 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_WRAP_S, &g… in syncState()
96 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_WRAP_T, &g… in syncState()
97 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_WRAP_R, &g… in syncState()
98 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MAX_ANISOT… in syncState()
99 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MIN_LOD, &… in syncState()
100 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MAX_LOD, &… in syncState()
[all …]
DBufferGL.cpp44 mFunctions(functions), in BufferGL()
48 ASSERT(mFunctions); in BufferGL()
51 mFunctions->genBuffers(1, &mBufferID); in BufferGL()
67 mFunctions->bufferData(gl::ToGLenum(DestBufferOperationTarget), size, data, ToGLenum(usage)); in setData()
91 mFunctions->bufferSubData(gl::ToGLenum(DestBufferOperationTarget), offset, size, data); in setSubData()
112 mFunctions->copyBufferSubData(gl::ToGLenum(SourceBufferOperationTarget), in copySubData()
131 else if (mFunctions->mapBuffer) in map()
134 *mapPtr = mFunctions->mapBuffer(gl::ToGLenum(DestBufferOperationTarget), access); in map()
138 ASSERT(mFunctions->mapBufferRange && access == GL_WRITE_ONLY_OES); in map()
140 *mapPtr = mFunctions->mapBufferRange(gl::ToGLenum(DestBufferOperationTarget), 0, in map()
[all …]
DTransformFeedbackGL.cpp27 mFunctions(functions), in TransformFeedbackGL()
34 mFunctions->genTransformFeedbacks(1, &mTransformFeedbackID); in TransformFeedbackGL()
86 mFunctions->bindBufferRange(GL_TRANSFORM_FEEDBACK_BUFFER, static_cast<GLuint>(index), in bindIndexedBuffer()
92 mFunctions->bindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, static_cast<GLuint>(index), in bindIndexedBuffer()
98 mFunctions->bindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, static_cast<GLuint>(index), 0); in bindIndexedBuffer()
123 mFunctions->beginTransformFeedback(gl::ToGLenum(primitiveMode)); in syncActiveState()
132 mFunctions->endTransformFeedback(); in syncActiveState()
148 mFunctions->pauseTransformFeedback(); in syncPausedState()
152 mFunctions->resumeTransformFeedback(); in syncPausedState()
DSyncGL.cpp19 SyncGL::SyncGL(const FunctionsGL *functions) : SyncImpl(), mFunctions(functions), mSyncObject(0) in SyncGL()
21 ASSERT(mFunctions); in SyncGL()
32 mFunctions->deleteSync(mSyncObject); in onDestroy()
39 mSyncObject = mFunctions->fenceSync(condition, flags); in set()
51 *outResult = mFunctions->clientWaitSync(mSyncObject, flags, timeout); in clientWait()
58 mFunctions->waitSync(mSyncObject, flags, timeout); in serverWait()
65 mFunctions->getSynciv(mSyncObject, GL_SYNC_STATUS, 1, nullptr, outResult); in getStatus()
DVertexArrayGL.cpp58 mFunctions(functions), in VertexArrayGL()
69 ASSERT(mFunctions); in VertexArrayGL()
71 mFunctions->genVertexArrays(1, &mVertexArrayID); in VertexArrayGL()
207 mFunctions->genBuffers(1, &mStreamingElementArrayBuffer); in syncIndexData()
222 mFunctions->bufferData(GL_ELEMENT_ARRAY_BUFFER, requiredStreamingBufferSize, indices, in syncIndexData()
229 mFunctions->bufferSubData(GL_ELEMENT_ARRAY_BUFFER, 0, requiredStreamingBufferSize, in syncIndexData()
291 mFunctions->genBuffers(1, &mStreamingArrayBuffer); in streamAttributes()
303 mFunctions->bufferData(GL_ARRAY_BUFFER, requiredBufferSize, nullptr, GL_DYNAMIC_DRAW); in streamAttributes()
316 uint8_t *bufferPointer = MapBufferRangeWithFallback(mFunctions, GL_ARRAY_BUFFER, 0, in streamAttributes()
374 unmapResult = mFunctions->unmapBuffer(GL_ARRAY_BUFFER); in streamAttributes()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
DProgramGL.cpp39 mFunctions(functions), in ProgramGL()
47 ASSERT(mFunctions); in ProgramGL()
50 mProgramID = mFunctions->createProgram(); in ProgramGL()
55 mFunctions->deleteProgram(mProgramID); in ~ProgramGL()
73 mFunctions->programBinary(mProgramID, binaryFormat, binary, binaryLength); in load()
90 mFunctions->getProgramiv(mProgramID, GL_PROGRAM_BINARY_LENGTH, &binaryLength); in save()
94 mFunctions->getProgramBinary(mProgramID, binaryLength, &binaryLength, &binaryFormat, in save()
121 if (mFunctions->programParameteri) in setBinaryRetrievableHint()
123 mFunctions->programParameteri(mProgramID, GL_PROGRAM_BINARY_RETRIEVABLE_HINT, in setBinaryRetrievableHint()
130 mFunctions->programParameteri(mProgramID, GL_PROGRAM_SEPARABLE, separable ? GL_TRUE : GL_FALSE); in setSeparable()
[all …]
DRendererGL.cpp143 mFunctions(std::move(functions)), in RendererGL()
153 ASSERT(mFunctions); in RendererGL()
156 nativegl_gl::InitializeFeatures(mFunctions.get(), &mFeatures); in RendererGL()
160 new StateManagerGL(mFunctions.get(), getNativeCaps(), getNativeExtensions(), mFeatures); in RendererGL()
161 mBlitter = new BlitGL(mFunctions.get(), mFeatures, mStateManager); in RendererGL()
162 mMultiviewClearer = new ClearMultiviewGL(mFunctions.get(), mStateManager); in RendererGL()
164 bool hasDebugOutput = mFunctions->isAtLeastGL(gl::Version(4, 3)) || in RendererGL()
165 mFunctions->hasGLExtension("GL_KHR_debug") || in RendererGL()
166 mFunctions->isAtLeastGLES(gl::Version(3, 2)) || in RendererGL()
167 mFunctions->hasGLESExtension("GL_KHR_debug"); in RendererGL()
[all …]
DBlitGL.cpp220 : mFunctions(functions), in BlitGL()
232 ASSERT(mFunctions); in BlitGL()
289 mFunctions->texImage2D(ToGLenum(target), static_cast<GLint>(level), internalFormat, in copyImageToLUMAWorkaroundTexture()
319 nativegl::GetCopyTexImageImageFormat(mFunctions, mFeatures, readFormat, readType); in copySubImageToLUMAWorkaroundTexture()
323 context, mFunctions->copyTexImage2D(GL_TEXTURE_2D, 0, copyTexImageFormat.internalFormat, in copySubImageToLUMAWorkaroundTexture()
336 mFunctions->texParameteriv(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_RGBA, swizzle)); in copySubImageToLUMAWorkaroundTexture()
342 context, mFunctions->texImage2D(GL_TEXTURE_2D, 0, copyTexImageFormat.internalFormat, in copySubImageToLUMAWorkaroundTexture()
348 ANGLE_GL_TRY(context, mFunctions->framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, in copySubImageToLUMAWorkaroundTexture()
363 ANGLE_GL_TRY(context, mFunctions->uniform1i(blitProgram->sourceTextureLocation, 0)); in copySubImageToLUMAWorkaroundTexture()
364 ANGLE_GL_TRY(context, mFunctions->uniform2f(blitProgram->scaleLocation, 1.0, 1.0)); in copySubImageToLUMAWorkaroundTexture()
[all …]
DQueryGL.cpp63 mFunctions(functions), in StandardQueryGL()
75 mFunctions->deleteQueries(1, &mActiveQuery); in ~StandardQueryGL()
82 mFunctions->deleteQueries(1, &id); in ~StandardQueryGL()
105 mFunctions->genQueries(1, &query); in queryCounter()
106 mFunctions->queryCounter(query, GL_TIMESTAMP); in queryCounter()
182 mFunctions->genQueries(1, &mActiveQuery); in resume()
200 mFunctions->getQueryObjectuiv(id, GL_QUERY_RESULT_AVAILABLE, &resultAvailable); in flush()
210 if (mFunctions->getQueryObjectui64v != nullptr) in flush()
213 mFunctions->getQueryObjectui64v(id, GL_QUERY_RESULT, &result); in flush()
219 mFunctions->getQueryObjectuiv(id, GL_QUERY_RESULT, &result); in flush()
[all …]
DFenceNVGL.cpp19 FenceNVGL::FenceNVGL(const FunctionsGL *functions) : FenceNVImpl(), mFunctions(functions) in FenceNVGL()
21 mFunctions->genFencesNV(1, &mFence); in FenceNVGL()
26 mFunctions->deleteFencesNV(1, &mFence); in ~FenceNVGL()
34 mFunctions->setFenceNV(mFence, condition); in set()
42 *outFinished = mFunctions->testFenceNV(mFence); in test()
48 mFunctions->finishFenceNV(mFence); in finish()
59 : FenceNVImpl(), mSyncObject(0), mFunctions(functions) in FenceNVSyncGL()
66 mFunctions->deleteSync(mSyncObject); in ~FenceNVSyncGL()
75 mSyncObject = mFunctions->fenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); in set()
84 ASSERT(mFunctions->isSync(mSyncObject)); in test()
[all …]
DClearMultiviewGL.cpp21 : mFunctions(functions), mStateManager(stateManager), mFramebuffer(0u) in ClearMultiviewGL()
28 mFunctions->deleteFramebuffers(1, &mFramebuffer); in ~ClearMultiviewGL()
66 mFunctions->drawBuffers(static_cast<GLsizei>(drawBuffers.size()), drawBuffers.data()); in clearLayeredFBO()
91 mFunctions->clear(mask); in genericClear()
94 mFunctions->clearBufferfv(buffer, drawbuffer, in genericClear()
98 mFunctions->clearBufferuiv(buffer, drawbuffer, in genericClear()
102 mFunctions->clearBufferiv(buffer, drawbuffer, reinterpret_cast<const GLint *>(values)); in genericClear()
105 mFunctions->clearBufferfi(buffer, drawbuffer, depth, stencil); in genericClear()
128 mFunctions->framebufferTextureLayer(GL_DRAW_FRAMEBUFFER, colorAttachment, in attachTextures()
142 mFunctions->framebufferTextureLayer(GL_DRAW_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, in attachTextures()
[all …]
DSamplerGL.cpp72 mFunctions(functions), in SamplerGL()
77 mFunctions->genSamplers(1, &mSamplerID); in SamplerGL()
93 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MIN_FILTER… in syncState()
94 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MAG_FILTER… in syncState()
95 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_WRAP_S, &g… in syncState()
96 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_WRAP_T, &g… in syncState()
97 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_WRAP_R, &g… in syncState()
98 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MAX_ANISOT… in syncState()
99 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MIN_LOD, &… in syncState()
100 …SyncSamplerStateMember(mFunctions, mSamplerID, mState, mAppliedSamplerState, GL_TEXTURE_MAX_LOD, &… in syncState()
[all …]
DStateManagerGL.cpp76 : mFunctions(functions), in StateManagerGL()
151 mHasSeparateFramebufferBindings(mFunctions->isAtLeastGL(gl::Version(3, 0)) ||
152 mFunctions->isAtLeastGLES(gl::Version(3, 0))),
163 ASSERT(mFunctions);
178 if (mFunctions->standard == STANDARD_GL_DESKTOP)
180 mFunctions->enable(GL_PROGRAM_POINT_SIZE);
185 if ((mFunctions->profile & GL_CONTEXT_CORE_PROFILE_BIT) == 0)
187 mFunctions->enable(GL_POINT_SPRITE);
195 mFunctions->primitiveRestartIndex(primitiveRestartIndex);
202 !nativegl::CanUseDefaultVertexArrayObject(mFunctions))
[all …]
DTransformFeedbackGL.cpp27 mFunctions(functions), in TransformFeedbackGL()
34 mFunctions->genTransformFeedbacks(1, &mTransformFeedbackID); in TransformFeedbackGL()
90 ANGLE_GL_TRY(context, mFunctions->bindBuffer(GL_TRANSFORM_FEEDBACK_BUFFER, in bindIndexedBuffer()
97 mFunctions->bindBufferRange( in bindIndexedBuffer()
103 ANGLE_GL_TRY(context, mFunctions->bindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, in bindIndexedBuffer()
110 ANGLE_GL_TRY(context, mFunctions->bindBufferBase(GL_TRANSFORM_FEEDBACK_BUFFER, in bindIndexedBuffer()
136 mFunctions->beginTransformFeedback(gl::ToGLenum(primitiveMode)); in syncActiveState()
145 mFunctions->endTransformFeedback(); in syncActiveState()
161 mFunctions->pauseTransformFeedback(); in syncPausedState()
165 mFunctions->resumeTransformFeedback(); in syncPausedState()
DSyncGL.cpp19 SyncGL::SyncGL(const FunctionsGL *functions) : SyncImpl(), mFunctions(functions), mSyncObject(0) in SyncGL()
21 ASSERT(mFunctions); in SyncGL()
32 mFunctions->deleteSync(mSyncObject); in onDestroy()
40 mSyncObject = mFunctions->fenceSync(condition, flags); in set()
53 *outResult = mFunctions->clientWaitSync(mSyncObject, flags, timeout); in clientWait()
60 mFunctions->waitSync(mSyncObject, flags, timeout); in serverWait()
67 mFunctions->getSynciv(mSyncObject, GL_SYNC_STATUS, 1, nullptr, outResult); in getStatus()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/
DBackendGL.cpp61 DAWN_TRY(mFunctions.Initialize(options->getProc)); in Initialize()
64 mFunctions.Enable(GL_DEPTH_TEST); in Initialize()
65 mFunctions.Enable(GL_SCISSOR_TEST); in Initialize()
66 mFunctions.Enable(GL_PRIMITIVE_RESTART_FIXED_INDEX); in Initialize()
67 mFunctions.Enable(GL_MULTISAMPLE); in Initialize()
69 mPCIInfo.name = reinterpret_cast<const char*>(mFunctions.GetString(GL_RENDERER)); in Initialize()
72 const char* vendor = reinterpret_cast<const char*>(mFunctions.GetString(GL_VENDOR)); in Initialize()
81 OpenGLFunctions mFunctions; member in dawn_native::opengl::Adapter
86 return {new Device(this, descriptor, mFunctions)}; in CreateDeviceImpl()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/eagl/
DWindowSurfaceEAGL.mm41 const rx::FunctionsGL *mFunctions; field
62 mFunctions = functions;
87 mFunctions->genFramebuffers(1, &mReadFramebuffer);
104 mFunctions->getIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &drawFBO);
106 mFunctions->bindFramebuffer(GL_FRAMEBUFFER, mReadFramebuffer);
107 mFunctions->framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D,
110 mFunctions->bindFramebuffer(GL_READ_FRAMEBUFFER, mReadFramebuffer);
111 mFunctions->bindFramebuffer(GL_DRAW_FRAMEBUFFER, drawFBO);
112 mFunctions->blitFramebuffer(0, 0, texture.width, texture.height, 0, 0, texture.width,
115 mFunctions->bindRenderbuffer(GL_RENDERBUFFER, texture.texture);
[all …]

1234