Home
last modified time | relevance | path

Searched refs:GrGLenum (Results 1 – 25 of 69) sorted by relevance

123

/external/skqp/src/gpu/gl/
DGrGLTestInterface.h20 virtual GrGLvoid activeTexture(GrGLenum texture) {} in activeTexture()
22 virtual GrGLvoid beginQuery(GrGLenum target, GrGLuint id) {} in beginQuery()
24 virtual GrGLvoid bindBuffer(GrGLenum target, GrGLuint buffer) {} in bindBuffer()
25 virtual GrGLvoid bindFramebuffer(GrGLenum target, GrGLuint framebuffer) {} in bindFramebuffer()
26 virtual GrGLvoid bindRenderbuffer(GrGLenum target, GrGLuint renderbuffer) {} in bindRenderbuffer()
28 virtual GrGLvoid bindTexture(GrGLenum target, GrGLuint texture) {} in bindTexture()
34 virtual GrGLvoid blendEquation(GrGLenum mode) {} in blendEquation()
35 virtual GrGLvoid blendFunc(GrGLenum sfactor, GrGLenum dfactor) {} in blendFunc()
36 … GrGLint dstX0, GrGLint dstY0, GrGLint dstX1, GrGLint dstY1, GrGLbitfield mask, GrGLenum filter) {} in blitFramebuffer()
37 …virtual GrGLvoid bufferData(GrGLenum target, GrGLsizeiptr size, const GrGLvoid* data, GrGLenum usa… in bufferData()
[all …]
DGrGLCreateNullInterface.cpp161 void setAttachment(GrGLenum attachmentPoint, const FramebufferAttachment* attachment) { in setAttachment()
243 GrGLenum checkFramebufferStatus(GrGLenum target) override { in checkFramebufferStatus()
254 GrGLvoid bufferData(GrGLenum target, GrGLsizeiptr size, const GrGLvoid* data, in bufferData()
255 GrGLenum usage) override { in bufferData()
267 GrGLuint createShader(GrGLenum type) override { in createShader()
271 GrGLvoid bindBuffer(GrGLenum target, GrGLuint buffer) override { in bindBuffer()
306 GrGLvoid bindFramebuffer(GrGLenum target, GrGLuint framebuffer) override { in bindFramebuffer()
342 GrGLvoid bindRenderbuffer(GrGLenum target, GrGLuint renderbuffer) override { in bindRenderbuffer()
370 GrGLvoid renderbufferStorage(GrGLenum target, GrGLenum internalformat, GrGLsizei width, in renderbufferStorage()
378 GrGLvoid renderbufferStorageMultisample(GrGLenum target, GrGLsizei samples, in renderbufferStorageMultisample()
[all …]
DGrGLCaps.h141 GrGLenum configSizedInternalFormat(GrPixelConfig config) const { in configSizedInternalFormat()
146 GrGLenum* internalFormat, GrGLenum* externalFormat,
147 GrGLenum* externalType) const;
149 bool getCompressedTexImageFormats(GrPixelConfig surfaceConfig, GrGLenum* internalFormat) const;
153 GrGLenum* externalFormat, GrGLenum* externalType) const;
155 void getRenderbufferFormat(GrPixelConfig config, GrGLenum* internalFormat) const;
156 void getSizedInternalFormat(GrPixelConfig config, GrGLenum* internalFormat) const;
159 GrGLenum getImageFormat(GrPixelConfig config) const { in getImageFormat()
320 std::function<void (GrGLenum, GrGLint*)> getIntegerv,
444 ExternalFormatUsage usage, GrGLenum* externalFormat,
[all …]
DGrGLTexture.h24 GrGLenum fMinFilter = GR_GL_NEAREST_MIPMAP_LINEAR;
25 GrGLenum fMagFilter = GR_GL_LINEAR;
26 GrGLenum fWrapS = GR_GL_REPEAT;
27 GrGLenum fWrapT = GR_GL_REPEAT;
63 static GrTextureType TextureTypeFromTarget(GrGLenum textureTarget);
108 GrGLenum target() const;
155 GrGLenum fFormat;
DGrGLBuffer.cpp51 inline static GrGLenum gr_to_gl_access_pattern(GrBufferType bufferType, in gr_to_gl_access_pattern()
53 static const GrGLenum drawUsages[] = { in gr_to_gl_access_pattern()
59 static const GrGLenum readUsages[] = { in gr_to_gl_access_pattern()
71 static GrGLenum const* const usageTypes[] = { in gr_to_gl_access_pattern()
104 GrGLenum target = gpu->bindBuffer(fIntendedType, this); in GrGLBuffer()
175 GrGLenum target = this->glGpu()->bindBuffer(fIntendedType, this); in onMap()
184 GrGLenum target = this->glGpu()->bindBuffer(fIntendedType, this); in onMap()
199 GrGLenum target = this->glGpu()->bindBuffer(fIntendedType, this); in onMap()
232 GrGLenum target = this->glGpu()->bindBuffer(fIntendedType, this); in onUnmap()
257 GrGLenum target = this->glGpu()->bindBuffer(fIntendedType, this); in onUpdateData()
DGrGLRenderTarget.h39 GrGLenum format,
77 GrGLRenderTarget(GrGLGpu*, const GrSurfaceDesc&, GrGLenum format, const IDDesc&);
79 void init(const GrSurfaceDesc&, GrGLenum format, const IDDesc&);
88 GrGLRenderTarget(GrGLGpu*, const GrSurfaceDesc&, GrGLenum format, const IDDesc&,
105 GrGLenum fRTFormat;
DGrGLRenderTarget.cpp24 GrGLenum format, in GrGLRenderTarget()
34 GrGLRenderTarget::GrGLRenderTarget(GrGLGpu* gpu, const GrSurfaceDesc& desc, GrGLenum format, in GrGLRenderTarget()
52 void GrGLRenderTarget::init(const GrSurfaceDesc& desc, GrGLenum format, const IDDesc& idDesc) { in init()
70 GrGLenum format, in MakeWrapped()
127 GrGLenum status; in completeStencilAttachment()
157 GrGLenum status; in completeStencilAttachment()
DGrGLGpu.cpp60 static const GrGLenum gXfermodeEquation2Blend[] = {
106 static const GrGLenum gXfermodeCoeff2Blend[] = {
185 static GrGLenum filter_to_gl_mag_filter(GrSamplerState::Filter filter) { in filter_to_gl_mag_filter()
195 static GrGLenum filter_to_gl_min_filter(GrSamplerState::Filter filter) { in filter_to_gl_min_filter()
205 static inline GrGLenum wrap_mode_to_gl_wrap(GrSamplerState::WrapMode wrapMode, in wrap_mode_to_gl_wrap()
900 GrGLenum internalFormat; in onTransferPixels()
902 GrGLenum externalFormat; in onTransferPixels()
903 GrGLenum externalType; in onTransferPixels()
945 GrGLenum target, in allocate_and_populate_texture()
946 GrGLenum internalFormat, in allocate_and_populate_texture()
[all …]
/external/skqp/include/gpu/gl/
DGrGLFunctions.h21 using GrGLActiveTextureFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum texture);
23 using GrGLBeginQueryFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLuint id);
25 using GrGLBindBufferFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLuint buffer);
26 using GrGLBindFramebufferFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLuint framebuffer);
27 using GrGLBindRenderbufferFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLuint renderbuffer);
28 using GrGLBindTextureFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLuint texture);
35 using GrGLBlendEquationFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum mode);
36 using GrGLBlendFuncFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum sfactor, GrGLenum dfactor);
37 …1, GrGLint dstX0, GrGLint dstY0, GrGLint dstX1, GrGLint dstY1, GrGLbitfield mask, GrGLenum filter);
38 …ufferDataFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLsizeiptr size, const GrGLvoid* dat…
[all …]
DGrGLTypes.h31 typedef unsigned int GrGLenum; typedef
81 typedef void (GR_GL_FUNCTION_TYPE* GRGLDEBUGPROC)(GrGLenum source,
82 GrGLenum type,
84 GrGLenum severity,
108 GrGLenum fTarget;
110 GrGLenum fFormat = 0;
119 GrGLenum fFormat = 0;
/external/skia/include/gpu/gl/
DGrGLFunctions.h21 using GrGLActiveTextureFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum texture);
23 using GrGLBeginQueryFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLuint id);
25 using GrGLBindBufferFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLuint buffer);
26 using GrGLBindFramebufferFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLuint framebuffer);
27 using GrGLBindRenderbufferFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLuint renderbuffer);
28 using GrGLBindTextureFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLuint texture);
35 using GrGLBlendEquationFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum mode);
36 using GrGLBlendFuncFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum sfactor, GrGLenum dfactor);
37 …1, GrGLint dstX0, GrGLint dstY0, GrGLint dstX1, GrGLint dstY1, GrGLbitfield mask, GrGLenum filter);
38 …ufferDataFn = GrGLvoid GR_GL_FUNCTION_TYPE(GrGLenum target, GrGLsizeiptr size, const GrGLvoid* dat…
[all …]
DGrGLTypes.h100 typedef unsigned int GrGLenum; typedef
152 typedef void (GR_GL_FUNCTION_TYPE* GRGLDEBUGPROC)(GrGLenum source,
153 GrGLenum type,
155 GrGLenum severity,
179 GrGLenum fTarget;
181 GrGLenum fFormat = 0;
190 GrGLenum fFormat = 0;
/external/skia/src/gpu/gl/
DGrGLCaps.h157 GrGLenum getTexImageOrStorageInternalFormat(GrGLFormat format) const { in getTexImageOrStorageInternalFormat()
165 void getTexImageExternalFormatAndType(GrGLFormat surfaceFormat, GrGLenum* externalFormat,
166 GrGLenum* externalType) const;
174 GrColorType memoryColorType, GrGLenum* externalFormat,
175 GrGLenum* externalType) const;
182 GrGLenum* externalFormat,
183 GrGLenum* externalType,
187 GrColorType memoryColorType, GrGLenum* externalFormat,
188 GrGLenum* externalType) const;
212 GrGLenum readFormat,
[all …]
DGrGLBuffer.cpp21 return static_cast<GrGLenum>(GR_GL_NO_ERROR); \
54 inline static GrGLenum gr_to_gl_access_pattern(GrGpuBufferType bufferType, in gr_to_gl_access_pattern()
114 GrGLenum target = gpu->bindBuffer(fIntendedType, this); in GrGLBuffer()
115 GrGLenum error = GL_ALLOC_CALL(BufferData(target, (GrGLsizeiptr)size, data, fUsage)); in GrGLBuffer()
179 GrGLenum target = this->glGpu()->bindBuffer(fIntendedType, this); in onMap()
183 GrGLenum error = in onMap()
194 GrGLenum target = this->glGpu()->bindBuffer(fIntendedType, this); in onMap()
197 GrGLenum error = GL_ALLOC_CALL(BufferData(target, this->size(), nullptr, fUsage)); in onMap()
216 GrGLenum target = this->glGpu()->bindBuffer(fIntendedType, this); in onMap()
219 GrGLenum error = GL_ALLOC_CALL(BufferData(target, this->size(), nullptr, fUsage)); in onMap()
[all …]
DGrGLGpu.h71 GrGLenum bindBuffer(GrGpuBufferType type, const GrBuffer*);
104 GrGLenum prepareToDraw(GrPrimitiveType primitiveType);
189 GrGLenum getErrorAndCheckForOOM();
195 void bindFramebuffer(GrGLenum fboTarget, GrGLuint fboid);
287 GrGLenum target,
417 void bindTextureToScratchUnit(GrGLenum target, GrGLint textureID);
448 GrGLenum target,
460 GrGLenum target,
467 GrGLenum target,
469 GrGLenum externalFormat,
[all …]
DGrGLGpu.cpp52 return static_cast<GrGLenum>(GR_GL_NO_ERROR); \
64 static const GrGLenum gXfermodeEquation2Blend[] = {
110 static const GrGLenum gXfermodeCoeff2Blend[] = {
136 static int gl_target_to_binding_index(GrGLenum target) { in gl_target_to_binding_index()
148 GrGpuResource::UniqueID GrGLGpu::TextureUnitBindings::boundID(GrGLenum target) const { in boundID()
152 bool GrGLGpu::TextureUnitBindings::hasBeenModified(GrGLenum target) const { in hasBeenModified()
156 void GrGLGpu::TextureUnitBindings::setBoundID(GrGLenum target, GrGpuResource::UniqueID resourceID) { in setBoundID()
162 void GrGLGpu::TextureUnitBindings::invalidateForScratchUse(GrGLenum target) { in invalidateForScratchUse()
177 static GrGLenum filter_to_gl_mag_filter(GrSamplerState::Filter filter) { in filter_to_gl_mag_filter()
185 static GrGLenum filter_to_gl_min_filter(GrSamplerState::Filter filter, in filter_to_gl_min_filter()
[all …]
DGrGLTexture.h23 GrGLenum fTarget = 0;
29 static GrTextureType TextureTypeFromTarget(GrGLenum textureTarget);
46 GrGLenum target() const;
/external/skqp/tools/gpu/gl/
DGLTestContext.cpp29 static constexpr GrGLenum GL_SYNC_GPU_COMMANDS_COMPLETE = 0x9117;
30 static constexpr GrGLenum GL_WAIT_FAILED = 0x911d;
36 typedef GLsync (GR_GL_FUNCTION_TYPE* GLFenceSyncProc) (GrGLenum, GrGLbitfield);
37 typedef GrGLenum (GR_GL_FUNCTION_TYPE* GLClientWaitSyncProc) (GLsync, GrGLbitfield, GrGLuint64);
60 static constexpr GrGLenum GL_ALL_COMPLETED_NV = 0x84F2;
64 typedef GrGLvoid(GR_GL_FUNCTION_TYPE* GLSetFenceNVProc) (GrGLuint, GrGLenum);
161 static constexpr GrGLenum GL_QUERY_RESULT = 0x8866;
162 static constexpr GrGLenum GL_QUERY_RESULT_AVAILABLE = 0x8867;
163 static constexpr GrGLenum GL_TIME_ELAPSED = 0x88bf;
164 static constexpr GrGLenum GL_GPU_DISJOINT = 0x8fbb;
[all …]
/external/skia/tools/gpu/gl/
DGLTestContext.cpp32 static constexpr GrGLenum GL_QUERY_RESULT = 0x8866;
33 static constexpr GrGLenum GL_QUERY_RESULT_AVAILABLE = 0x8867;
34 static constexpr GrGLenum GL_TIME_ELAPSED = 0x88bf;
35 static constexpr GrGLenum GL_GPU_DISJOINT = 0x8fbb;
37 typedef void (GR_GL_FUNCTION_TYPE* GLGetIntegervProc) (GrGLenum, GrGLint*);
40 typedef void (GR_GL_FUNCTION_TYPE* GLBeginQueryProc) (GrGLenum, GrGLuint);
41 typedef void (GR_GL_FUNCTION_TYPE* GLEndQueryProc) (GrGLenum);
42 typedef void (GR_GL_FUNCTION_TYPE* GLGetQueryObjectuivProc) (GrGLuint, GrGLenum, GrGLuint*);
43 typedef void (GR_GL_FUNCTION_TYPE* GLGetQueryObjectui64vProc) (GrGLuint, GrGLenum, GrGLuint64*);
235 shadingLanguageVersion](GrGLenum name) { in overrideVersion()
/external/skia/include/private/
DGrGLTypesPriv.h35 GrGLenum fMinFilter;
36 GrGLenum fMagFilter;
37 GrGLenum fWrapS;
38 GrGLenum fWrapT;
/external/skqp/include/gpu/
DGrBackendSurface.h46 static GrBackendFormat MakeGL(GrGLenum format, GrGLenum target) { in MakeGL()
77 const GrGLenum* getGLFormat() const;
78 const GrGLenum* getGLTarget() const;
103 GrBackendFormat(GrGLenum format, GrGLenum target);
117 GrGLenum fGLFormat; // the sized, internal format of the GL resource
/external/skqp/src/gpu/gl/builders/
DGrGLShaderStringBuilder.h17 std::unique_ptr<SkSL::Program> GrSkSLtoGLSL(const GrGLContext& context, GrGLenum type,
24 GrGLenum type,
30 void GrGLPrintShader(const GrGLContext&, GrGLenum type, const char** skslStrings, int* lengths,
/external/skia/tests/
DGrGLExtensionsTest.cpp16 const GrGLubyte* simpleGetString(GrGLenum name) { in simpleGetString()
20 void simpleGetIntegerv(GrGLenum name, GrGLint* params) { in simpleGetIntegerv()
28 const GrGLubyte* simpleGetStringi(GrGLenum name, GrGLuint index) { in simpleGetStringi()
/external/skqp/tests/
DGrGLExtensionsTest.cpp14 const GrGLubyte* simpleGetString(GrGLenum name) { in simpleGetString()
18 void simpleGetIntegerv(GrGLenum name, GrGLint* params) { in simpleGetIntegerv()
26 const GrGLubyte* simpleGetStringi(GrGLenum name, GrGLuint index) { in simpleGetStringi()
/external/skqp/tools/gpu/atlastext/
DGLTestAtlasTextRenderer.cpp251 GrGLenum* internalFormat, GrGLenum* externalFormat, in atlas_format_to_gl_types()
252 GrGLenum* type) { in atlas_format_to_gl_types()
272 GrGLenum internalFormat; in createTexture()
273 GrGLenum externalFormat; in createTexture()
274 GrGLenum type; in createTexture()
316 GrGLenum internalFormat; in setTextureData()
317 GrGLenum externalFormat; in setTextureData()
318 GrGLenum type; in setTextureData()
406 GrGLenum status = callgl(CheckFramebufferStatus, GR_GL_FRAMEBUFFER); in makeTargetHandle()

123