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

Unified Diff: tools/gpu/gl/debug/GrFBBindableObj.h

Issue 2085043002: Support GL_SAMPLES queries in null contexts (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 6 months 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 | « tools/gpu/gl/debug/DebugGLTestContext.cpp ('k') | tools/gpu/gl/debug/GrRenderBufferObj.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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")
« no previous file with comments | « tools/gpu/gl/debug/DebugGLTestContext.cpp ('k') | tools/gpu/gl/debug/GrRenderBufferObj.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698