Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ede88ab

Browse files
bsalomonSkia Commit-Bot
authored andcommitted
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>
1 parent 805cc7a commit ede88ab

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/gpu/gl/GrGLGpu.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ GrGLGpu::~GrGLGpu() {
376376
fPathRendering.reset();
377377
fCopyProgramArrayBuffer.reset();
378378
fMipmapProgramArrayBuffer.reset();
379-
fStencilClipClearArrayBuffer.reset();
380379

381380
fHWProgram.reset();
382381
if (fHWProgramID) {
@@ -407,10 +406,6 @@ GrGLGpu::~GrGLGpu() {
407406
}
408407
}
409408

410-
if (fStencilClipClearProgram) {
411-
GL_CALL(DeleteProgram(fStencilClipClearProgram));
412-
}
413-
414409
delete fProgramCache;
415410
fSamplerObjectCache.reset();
416411
}
@@ -440,9 +435,6 @@ void GrGLGpu::disconnect(DisconnectType type) {
440435
GL_CALL(DeleteProgram(fMipmapPrograms[i].fProgram));
441436
}
442437
}
443-
if (fStencilClipClearProgram) {
444-
GL_CALL(DeleteProgram(fStencilClipClearProgram));
445-
}
446438

447439
if (fSamplerObjectCache) {
448440
fSamplerObjectCache->release();
@@ -472,8 +464,6 @@ void GrGLGpu::disconnect(DisconnectType type) {
472464
for (size_t i = 0; i < SK_ARRAY_COUNT(fMipmapPrograms); ++i) {
473465
fMipmapPrograms[i].fProgram = 0;
474466
}
475-
fStencilClipClearProgram = 0;
476-
fStencilClipClearArrayBuffer.reset();
477467

478468
if (this->glCaps().shaderCaps()->pathRenderingSupport()) {
479469
this->glPathRendering()->disconnect(type);

src/gpu/gl/GrGLGpu.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ class GrGLGpu final : public GrGpu, private GrMesh::SendToGpuImpl {
250250
// binds texture unit in GL
251251
void setTextureUnit(int unitIdx);
252252

253-
void setTextureSwizzle(int unitIdx, GrGLenum target, const GrGLenum swizzle[]);
254-
255253
/**
256254
* primitiveProcessorTextures must contain GrPrimitiveProcessor::numTextureSamplers() *
257255
* numPrimitiveProcessorTextureSets entries.
@@ -286,8 +284,6 @@ class GrGLGpu final : public GrGpu, private GrMesh::SendToGpuImpl {
286284

287285
void onFinishFlush(bool insertedSemaphores) override;
288286

289-
bool hasExtension(const char* ext) const { return fGLContext->hasExtension(ext); }
290-
291287
bool copySurfaceAsDraw(GrSurface* dst, GrSurfaceOrigin dstOrigin,
292288
GrSurface* src, GrSurfaceOrigin srcOrigin,
293289
const SkIRect& srcRect, const SkIPoint& dstPoint);
@@ -614,9 +610,6 @@ class GrGLGpu final : public GrGpu, private GrMesh::SendToGpuImpl {
614610
} fMipmapPrograms[4];
615611
sk_sp<GrGLBuffer> fMipmapProgramArrayBuffer;
616612

617-
GrGLuint fStencilClipClearProgram = 0;
618-
sk_sp<GrGLBuffer> fStencilClipClearArrayBuffer;
619-
620613
static int TextureToCopyProgramIdx(GrTexture* texture);
621614

622615
static int TextureSizeToMipmapProgramIdx(int width, int height) {

0 commit comments

Comments
 (0)