diff options
author | 2015-05-22 10:37:30 -0700 | |
---|---|---|
committer | 2015-05-22 10:37:30 -0700 | |
commit | 424cc26add7ed491c6941d0c0c3a0e6d83190307 (patch) | |
tree | 19dc3d09aca0febddcfa6dc5f4f81459f344e24e /src/gpu/gl/GrGLCaps.h | |
parent | 92fc2ae58331662ec411a048686cb4801e0a909a (diff) |
Remove init from GrGLContextInfo and caps classes
Make Gr*Caps, GrGLContext* noncopyable
Review URL: https://codereview.chromium.org/1153813002
Diffstat (limited to 'src/gpu/gl/GrGLCaps.h')
-rw-r--r-- | src/gpu/gl/GrGLCaps.h | 39 |
1 files changed, 6 insertions, 33 deletions
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h index a4d60e2bdc..cd84242292 100644 --- a/src/gpu/gl/GrGLCaps.h +++ b/src/gpu/gl/GrGLCaps.h @@ -88,25 +88,10 @@ public: }; /** - * Creates a GrGLCaps that advertises no support for any extensions, - * formats, etc. Call init to initialize from a GrGLContextInfo. - */ - GrGLCaps(); - - GrGLCaps(const GrGLCaps& caps); - - GrGLCaps& operator = (const GrGLCaps& caps); - - /** - * Resets the caps such that nothing is supported. - */ - void reset() override; - - /** * Initializes the GrGLCaps to the set of features supported in the current * OpenGL context accessible via ctxInfo. */ - bool init(const GrGLContextInfo& ctxInfo, const GrGLInterface* glInterface); + GrGLCaps(const GrGLContextInfo& ctxInfo, const GrGLInterface* glInterface); /** * Call to note that a color config has been verified as a valid color @@ -277,6 +262,8 @@ public: GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderCaps.get()); } private: + void init(const GrGLContextInfo& ctxInfo, const GrGLInterface* glInterface); + /** * Maintains a bit per GrPixelConfig. It is used to avoid redundantly * performing glCheckFrameBufferStatus for the same config. @@ -397,26 +384,10 @@ public: }; /** - * Creates a GrGLSLCaps that advertises no support for any extensions, - * formats, etc. Call init to initialize from a GrGLContextInfo. - */ - GrGLSLCaps(); - ~GrGLSLCaps() override {} - - GrGLSLCaps(const GrGLSLCaps& caps); - - GrGLSLCaps& operator = (const GrGLSLCaps& caps); - - /** - * Resets the caps such that nothing is supported. - */ - void reset() override; - - /** * Initializes the GrGLSLCaps to the set of features supported in the current * OpenGL context accessible via ctxInfo. */ - bool init(const GrGLContextInfo&, const GrGLInterface*, const GrGLCaps&); + GrGLSLCaps(const GrGLContextInfo&, const GrGLInterface*, const GrGLCaps&); /** * Some helper functions for encapsulating various extensions to read FB Buffer on openglES @@ -449,6 +420,8 @@ public: SkString dump() const override; private: + void init(const GrGLContextInfo&, const GrGLInterface*, const GrGLCaps&); + // Must be called after fGeometryShaderSupport is initialized. void initShaderPrecisionTable(const GrGLContextInfo&, const GrGLInterface*); |