Remove some unused GrGLGpu member fields and functions.
-Members related to already removed stencil clear program. -hasExtension() inline memeber function -declaration for unimplemented setTextureSwizze() member function. Change-Id: Ibe6054fcb7f7c8c69cfcbbbb12df95f9dcebf9fe Reviewed-on: https://skia-review.googlesource.com/c/187305 Commit-Queue: Brian Salomon <bsalomon@google.com> Commit-Queue: Michael Ludwig <michaelludwig@google.com> Auto-Submit: Brian Salomon <bsalomon@google.com> Reviewed-by: Michael Ludwig <michaelludwig@google.com>
This commit is contained in:
parent
805cc7a2f8
commit
ede88ab2b4
@ -376,7 +376,6 @@ GrGLGpu::~GrGLGpu() {
|
||||
fPathRendering.reset();
|
||||
fCopyProgramArrayBuffer.reset();
|
||||
fMipmapProgramArrayBuffer.reset();
|
||||
fStencilClipClearArrayBuffer.reset();
|
||||
|
||||
fHWProgram.reset();
|
||||
if (fHWProgramID) {
|
||||
@ -407,10 +406,6 @@ GrGLGpu::~GrGLGpu() {
|
||||
}
|
||||
}
|
||||
|
||||
if (fStencilClipClearProgram) {
|
||||
GL_CALL(DeleteProgram(fStencilClipClearProgram));
|
||||
}
|
||||
|
||||
delete fProgramCache;
|
||||
fSamplerObjectCache.reset();
|
||||
}
|
||||
@ -440,9 +435,6 @@ void GrGLGpu::disconnect(DisconnectType type) {
|
||||
GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram));
|
||||
}
|
||||
}
|
||||
if (fStencilClipClearProgram) {
|
||||
GL_CALL(DeleteProgram(fStencilClipClearProgram));
|
||||
}
|
||||
|
||||
if (fSamplerObjectCache) {
|
||||
fSamplerObjectCache->release();
|
||||
@ -472,8 +464,6 @@ void GrGLGpu::disconnect(DisconnectType type) {
|
||||
for (size_t i = 0; i < SK_ARRAY_COUNT(fMipmapPrograms); ++i) {
|
||||
fMipmapPrograms[i].fProgram = 0;
|
||||
}
|
||||
fStencilClipClearProgram = 0;
|
||||
fStencilClipClearArrayBuffer.reset();
|
||||
|
||||
if (this->glCaps().shaderCaps()->pathRenderingSupport()) {
|
||||
this->glPathRendering()->disconnect(type);
|
||||
|
@ -250,8 +250,6 @@ private:
|
||||
// binds texture unit in GL
|
||||
void setTextureUnit(int unitIdx);
|
||||
|
||||
void setTextureSwizzle(int unitIdx, GrGLenum target, const GrGLenum swizzle[]);
|
||||
|
||||
/**
|
||||
* primitiveProcessorTextures must contain GrPrimitiveProcessor::numTextureSamplers() *
|
||||
* numPrimitiveProcessorTextureSets entries.
|
||||
@ -286,8 +284,6 @@ private:
|
||||
|
||||
void onFinishFlush(bool insertedSemaphores) override;
|
||||
|
||||
bool hasExtension(const char* ext) const { return fGLContext->hasExtension(ext); }
|
||||
|
||||
bool copySurfaceAsDraw(GrSurface* dst, GrSurfaceOrigin dstOrigin,
|
||||
GrSurface* src, GrSurfaceOrigin srcOrigin,
|
||||
const SkIRect& srcRect, const SkIPoint& dstPoint);
|
||||
@ -614,9 +610,6 @@ private:
|
||||
} fMipmapPrograms[4];
|
||||
sk_sp<GrGLBuffer> fMipmapProgramArrayBuffer;
|
||||
|
||||
GrGLuint fStencilClipClearProgram = 0;
|
||||
sk_sp<GrGLBuffer> fStencilClipClearArrayBuffer;
|
||||
|
||||
static int TextureToCopyProgramIdx(GrTexture* texture);
|
||||
|
||||
static int TextureSizeToMipmapProgramIdx(int width, int height) {
|
||||
|
Loading…
Reference in New Issue
Block a user