aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpu/gl/debug/GrFBBindableObj.h
diff options
context:
space:
mode:
authorGravatar csmartdalton <csmartdalton@google.com>2016-06-23 13:42:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-23 13:42:13 -0700
commitb593a76749c6c7e12bf86aeaa06e1e52708e9bdf (patch)
treef830d0739fe1710765fa019bf8335a8b01923317 /tools/gpu/gl/debug/GrFBBindableObj.h
parent425c27fab9d82d19b0bce7c091533d546465bbae (diff)
Support GL_SAMPLES queries in null contexts
Diffstat (limited to 'tools/gpu/gl/debug/GrFBBindableObj.h')
-rw-r--r--tools/gpu/gl/debug/GrFBBindableObj.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/gpu/gl/debug/GrFBBindableObj.h b/tools/gpu/gl/debug/GrFBBindableObj.h
index e2b43a6a1b..f5b46ab5d9 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")