Remove init from GrGLContextInfo and caps classes
Make Gr*Caps, GrGLContext* noncopyable
Review URL: https://codereview.chromium.org/1153813002
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index 3381bd3..580017a 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -52,16 +52,8 @@
int fBits;
};
- GrShaderCaps() {
- this->reset();
- }
- virtual ~GrShaderCaps() {}
- GrShaderCaps(const GrShaderCaps& other) : INHERITED() {
- *this = other;
- }
- GrShaderCaps& operator= (const GrShaderCaps&);
+ GrShaderCaps();
- virtual void reset();
virtual SkString dump() const;
bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; }
@@ -111,17 +103,8 @@
public:
SK_DECLARE_INST_COUNT(GrCaps)
- GrCaps() {
- fShaderCaps.reset(NULL);
- this->reset();
- }
- GrCaps(const GrCaps& other) : INHERITED() {
- *this = other;
- }
- virtual ~GrCaps() {}
- GrCaps& operator= (const GrCaps&);
+ GrCaps();
- virtual void reset();
virtual SkString dump() const;
GrShaderCaps* shaderCaps() const { return fShaderCaps; }