Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Unified Diff: src/gpu/gl/GrGLGpu.h

Issue 1535153002: Move config table to GrGLCaps from GrGLGpu. (Closed) Base URL: https://skia.googlesource.com/skia.git@rmc2glf
Patch Set: Address comments Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLGpu.h
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h
index 3f8e8fd352c32d088de8038eff2315293f7237bd..8c127f641908b856fb07004286f2f1951aee2c7b 100644
--- a/src/gpu/gl/GrGLGpu.h
+++ b/src/gpu/gl/GrGLGpu.h
@@ -283,8 +283,6 @@ private:
void flushStencil(const GrStencilSettings&);
void flushHWAAState(GrRenderTarget* rt, bool useHWAA);
- void generateConfigTable();
-
// helper for onCreateTexture and writeTexturePixels
bool uploadTexData(const GrSurfaceDesc& desc,
GrGLenum target,
@@ -535,36 +533,6 @@ private:
}
}
- struct ConfigEntry {
- // Default constructor inits to known bad GL enum values.
- ConfigEntry() {
- memset(this, 0xAB, sizeof(ConfigEntry));
- fStencilFormatIndex = kUnknown_StencilIndex;
- }
- GrGLenum fBaseInternalFormat;
- GrGLenum fSizedInternalFormat;
- GrGLenum fExternalFormat;
- GrGLenum fExternalType;
-
- // The <format> parameter to use for glTexImage and glTexSubImage.
- // This is usually the same as fExternalFormat except for kSRGBA on some GL contexts.
- GrGLenum fExternalFormatForTexImage;
- // Either the base or sized internal format depending on the GL and config.
- GrGLenum fInternalFormatTexImage;
-
- // Index into GrGLCaps's list of stencil formats. Support is determined experimentally and
- // lazily.
- int fStencilFormatIndex;
- enum {
- // This indicates that a stencil format has not yet been determined for the config.
- kUnknown_StencilIndex = -1,
- // This indicates that there is no supported stencil format for the config.
- kUnsupported_StencilFormatIndex = -2
- };
- };
-
- ConfigEntry fConfigTable[kGrPixelConfigCnt];
-
typedef GrGpu INHERITED;
friend class GrGLPathRendering; // For accessing setTextureUnit.
};
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698