Lines Matching defs:const

65 static const GrGLenum gXfermodeEquation2Blend[] = {
111 static const GrGLenum gXfermodeCoeff2Blend[] = {
149 GrGpuResource::UniqueID GrGLGpu::TextureUnitBindings::boundID(GrGLenum target) const {
153 bool GrGLGpu::TextureUnitBindings::hasBeenModified(GrGLenum target) const {
208 const GrCaps& caps) {
317 sk_sp<GrGpu> GrGLGpu::Make(sk_sp<const GrGLInterface> interface, const GrContextOptions& options,
620 static bool check_backend_texture(const GrBackendTexture& backendTex,
621 const GrGLCaps& caps,
656 sk_sp<GrTexture> GrGLGpu::onWrapBackendTexture(const GrBackendTexture& backendTex,
683 static bool check_compressed_backend_texture(const GrBackendTexture& backendTex,
684 const GrGLCaps& caps, GrGLTexture::Desc* desc,
711 sk_sp<GrTexture> GrGLGpu::onWrapCompressedBackendTexture(const GrBackendTexture& backendTex,
734 sk_sp<GrTexture> GrGLGpu::onWrapRenderableBackendTexture(const GrBackendTexture& backendTex,
738 const GrGLCaps& caps = this->glCaps();
777 sk_sp<GrRenderTarget> GrGLGpu::onWrapBackendRenderTarget(const GrBackendRenderTarget& backendRT) {
788 const auto format = backendRT.getBackendFormat().asGLFormat();
828 const GrMipLevel texels[],
889 const GrGLBuffer* glBuffer = static_cast<const GrGLBuffer*>(transferBuffer.get());
895 const size_t trimRowBytes = rect.width() * bpp;
896 const void* pixels = (void*)offset;
971 const GrMipLevel texels[],
1039 const GrMipLevel texels[],
1047 const GrGLCaps& caps = this->glCaps();
1060 const size_t trimRowBytes = dims.width() * bpp;
1061 const size_t rowBytes = texels[level].fRowBytes;
1085 const void* data, size_t dataSize) {
1087 const GrGLCaps& caps = this->glCaps();
1145 const char* rawLevelData = &((char*)data)[offset];
1166 bool GrGLGpu::renderbufferStorageMSAA(const GrGLContext& ctx, int sampleCount, GrGLenum format,
1191 bool GrGLGpu::createRenderTargetObjects(const GrGLTexture::Desc& desc,
1334 const GrGLInterface* interface, GrGLenum target) {
1351 const GrBackendFormat& format,
1456 const GrBackendFormat& format,
1460 const void* data, size_t dataSize) {
1502 const GrBackendFormat& format,
1513 SkISize dimensions, const GrBackendFormat& format, GrMipmapped mipMapped,
1552 bool GrGLGpu::onUpdateCompressedBackendTexture(const GrBackendTexture& backendTexture,
1554 const void* data,
1603 static const int kSize = 16;
1678 static void set_khr_debug_label(GrGLGpu* gpu, const GrGLuint id) {
1755 const int twoToTheMipLevel = 1 << level;
1756 const int currentWidth = std::max(1, dimensions.width() / twoToTheMipLevel);
1757 const int currentHeight = std::max(1, dimensions.height() / twoToTheMipLevel);
1773 sk_sp<GrAttachment> GrGLGpu::makeStencilAttachment(const GrBackendFormat& colorFormat,
1788 sk_sp<GrAttachment> GrGLGpu::makeMSAAAttachment(SkISize dimensions, const GrBackendFormat& format,
1798 GrAccessPattern accessPattern, const void* data) {
1816 void GrGLGpu::flushScissorRect(const SkIRect& scissor, int rtHeight, GrSurfaceOrigin rtOrigin) {
1826 void GrGLGpu::flushViewport(const SkIRect& viewport, int rtHeight, GrSurfaceOrigin rtOrigin) {
1835 void GrGLGpu::flushWindowRectangles(const GrWindowRectsState& windowState,
1836 const GrGLRenderTarget* rt, GrSurfaceOrigin origin) {
1854 const SkIRect* skwindows = windowState.windows().data();
1877 const GrProgramInfo& programInfo) {
1949 GrGLenum GrGLGpu::bindBuffer(GrGpuBufferType type, const GrBuffer* buffer) {
1964 } else if (static_cast<const GrGpuBuffer*>(buffer)->uniqueID() !=
1966 const GrGLBuffer* glBuffer = static_cast<const GrGLBuffer*>(buffer);
1975 void GrGLGpu::clear(const GrScissorState& scissor,
2001 static bool use_tiled_rendering(const GrGLCaps& glCaps,
2002 const GrOpsRenderPass::StencilLoadAndStoreInfo& stencilLoadStore) {
2010 const SkIRect& bounds, GrSurfaceOrigin origin,
2011 const GrOpsRenderPass::LoadAndStoreInfo& colorLoadStore,
2012 const GrOpsRenderPass::StencilLoadAndStoreInfo& stencilLoadStore) {
2050 const GrOpsRenderPass::LoadAndStoreInfo& colorLoadStore,
2051 const GrOpsRenderPass::StencilLoadAndStoreInfo& stencilLoadStore) {
2098 void GrGLGpu::clearStencilClip(const GrScissorState& scissor, bool insideStencilMask,
2123 static const GrGLint clipStencilMask = ~0;
2239 const SkIRect& bounds,
2240 const GrOpsRenderPass::LoadAndStoreInfo& colorInfo,
2241 const GrOpsRenderPass::StencilLoadAndStoreInfo& stencilInfo,
2242 const SkTArray<GrSurfaceProxy*, true>& sampledProxies,
2260 GrSurfaceOrigin origin, const SkIRect& bounds) {
2300 const GrNativeRect& r = fHWScissorSettings.fRect;
2365 void GrGLGpu::onResolveRenderTarget(GrRenderTarget* target, const SkIRect& resolveRect) {
2375 void GrGLGpu::resolveRenderFBOs(GrGLRenderTarget* rt, const SkIRect& resolveRect,
2381 const GrGLCaps& caps = this->glCaps();
2434 static const GrGLenum gTable[kGrStencilOpCount] = {
2456 void set_gl_stencil(const GrGLInterface* gl,
2457 const GrStencilSettings::Face& face,
2481 void GrGLGpu::flushStencil(const GrStencilSettings& stencilSettings, GrSurfaceOrigin origin) {
2547 const GrXferProcessor::BlendInfo& blendInfo, const GrSwizzle& swizzle) {
2637 void GrGLGpu::bindTexture(int unitIdx, GrSamplerState samplerState, const GrSwizzle& swizzle,
2644 const int w = texture->width();
2648 const int h = texture->height();
2672 const GrGLTextureParameters::SamplerOverriddenState* samplerStateToRecord = nullptr;
2680 const GrGLTextureParameters::SamplerOverriddenState& oldSamplerState =
2693 const GrGLTextureParameters::SamplerOverriddenState& oldSamplerState =
2738 static const GrGLfloat kTransparentBlack[4] = {0.f, 0.f, 0.f, 0.f};
2748 const GrGLTextureParameters::NonsamplerState& oldNonsamplerState =
2762 reinterpret_cast<const GrGLint*>(kRGBA)));
2832 static const GrGLfloat safeAlpha1 = nextafter(1.f, 2.f);
2833 static const GrGLfloat safeAlpha0 = nextafter(0.f, -1.f);
2868 static inline bool can_blit_framebuffer_for_copy_surface(const GrSurface* dst,
2869 const GrSurface* src,
2870 const SkIRect& srcRect,
2871 const SkIPoint& dstPoint,
2872 const GrGLCaps& caps) {
2875 if (const GrRenderTarget* rt = dst->asRenderTarget()) {
2878 if (const GrRenderTarget* rt = src->asRenderTarget()) {
2887 const GrGLTexture* dstTex = static_cast<const GrGLTexture*>(dst->asTexture());
2888 const GrGLTexture* srcTex = static_cast<const GrGLTexture*>(src->asTexture());
2908 static bool rt_has_msaa_render_buffer(const GrGLRenderTarget* rt, const GrGLCaps& glCaps) {
2916 static inline bool can_copy_texsubimage(const GrSurface* dst, const GrSurface* src,
2917 const GrGLCaps& caps) {
2919 const GrGLRenderTarget* dstRT = static_cast<const GrGLRenderTarget*>(dst->asRenderTarget());
2920 const GrGLRenderTarget* srcRT = static_cast<const GrGLRenderTarget*>(src->asRenderTarget());
2921 const GrGLTexture* dstTex = static_cast<const GrGLTexture*>(dst->asTexture());
2922 const GrGLTexture* srcTex = static_cast<const GrGLTexture*>(src->asTexture());
3033 bool GrGLGpu::onCopySurface(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
3034 const SkIPoint& dstPoint) {
3071 const GrShaderCaps* shaderCaps = this->caps()->shaderCaps();
3075 static const GrGLfloat vdata[] = {
3104 if (const char* extension = shaderCaps->noperspectiveInterpolationExtensionString()) {
3130 if (const char* extension = shaderCaps->noperspectiveInterpolationExtensionString()) {
3183 const bool oddWidth = SkToBool(progIdx & 0x2);
3184 const bool oddHeight = SkToBool(progIdx & 0x1);
3185 const int numTaps = (oddWidth ? 2 : 1) * (oddHeight ? 2 : 1);
3187 const GrShaderCaps* shaderCaps = this->caps()->shaderCaps();
3211 if (const char* extension = shaderCaps->noperspectiveInterpolationExtensionString()) {
3264 if (const char* extension = shaderCaps->noperspectiveInterpolationExtensionString()) {
3335 const SkIRect& srcRect, const SkIPoint& dstPoint) {
3413 void GrGLGpu::copySurfaceAsCopyTexSubImage(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
3414 const SkIPoint& dstPoint) {
3434 bool GrGLGpu::copySurfaceAsBlitFramebuffer(GrSurface* dst, GrSurface* src, const SkIRect& srcRect,
3435 const SkIPoint& dstPoint) {
3510 static const GrGLfloat vdata[] = {
3554 const float invWidth = 1.0f / width;
3555 const float invHeight = 1.0f / height;
3619 const GrBackendFormat& format,
3682 bool GrGLGpu::onClearBackendTexture(const GrBackendTexture& backendTexture,
3728 void GrGLGpu::deleteBackendTexture(const GrBackendTexture& tex) {
3737 bool GrGLGpu::compile(const GrProgramDesc& desc, const GrProgramInfo& programInfo) {
3751 bool GrGLGpu::isTestingOnlyBackendTexture(const GrBackendTexture& tex) const {
3919 void GrGLGpu::deleteTestingOnlyBackendRenderTarget(const GrBackendRenderTarget& backendRT) {
3933 const GrBuffer* ibuf) {
3934 SkASSERT(!ibuf || ibuf->isCpuBuffer() || !static_cast<const GrGpuBuffer*>(ibuf)->isMapped());
4048 void GrGLGpu::deleteFence(GrFence fence) const {
4059 std::unique_ptr<GrSemaphore> GrGLGpu::wrapBackendSemaphore(const GrBackendSemaphore& semaphore,
4108 void GrGLGpu::deleteSync(GrGLsync sync) const {
4143 void GrGLGpu::onDumpJSON(SkJSONWriter* writer) const {
4148 const GrGLubyte* str;
4150 writer->appendString("GL_VERSION", (const char*)(str));
4152 writer->appendString("GL_RENDERER", (const char*)(str));
4154 writer->appendString("GL_VENDOR", (const char*)(str));
4156 writer->appendString("GL_SHADING_LANGUAGE_VERSION", (const char*)(str));