Index: tools/gpu/gl/debug/GrFBBindableObj.h |
diff --git a/tools/gpu/gl/debug/GrFBBindableObj.h b/tools/gpu/gl/debug/GrFBBindableObj.h |
index e2b43a6a1b406fc092a527cbd3eb8d1220de8e7d..f5b46ab5d95cc39b3d37dbfdcf47f3224375443f 100644 |
--- a/tools/gpu/gl/debug/GrFBBindableObj.h |
+++ b/tools/gpu/gl/debug/GrFBBindableObj.h |
@@ -18,7 +18,8 @@ class GrFBBindableObj : public GrFakeRefObj { |
public: |
GrFBBindableObj() |
- : GrFakeRefObj() { |
+ : GrFakeRefObj() |
+ , fNumSamples(1) { |
} |
virtual ~GrFBBindableObj() { |
@@ -75,8 +76,11 @@ public: |
return 0 != fStencilReferees.count(); |
} |
+ int numSamples() { return fNumSamples; } |
protected: |
+ int fNumSamples; |
+ |
private: |
SkTDArray<GrFakeRefObj *> fColorReferees; // frame buffers that use this as a color buffer (via "glFramebufferRenderbuffer" or "glFramebufferTexture2D") |
SkTDArray<GrFakeRefObj *> fDepthReferees; // frame buffers that use this as a depth buffer (via "glFramebufferRenderbuffer" or "glFramebufferTexture2D") |