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

Unified Diff: tools/gpu/gl/debug/GrRenderBufferObj.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/GrFBBindableObj.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gpu/gl/debug/GrRenderBufferObj.h
diff --git a/tools/gpu/gl/debug/GrRenderBufferObj.h b/tools/gpu/gl/debug/GrRenderBufferObj.h
index 8231ef58dfba3c9c5bd6e8f2cfaf2f5acde261cf..134b9ec76314966aefe329c006c167729ba9a02f 100644
--- a/tools/gpu/gl/debug/GrRenderBufferObj.h
+++ b/tools/gpu/gl/debug/GrRenderBufferObj.h
@@ -30,6 +30,11 @@ public:
this->INHERITED::deleteAction();
}
+ void setNumSamples(int numSamples) {
+ GrAlwaysAssert(numSamples > 0);
+ fNumSamples = numSamples;
+ }
+
protected:
private:
bool fBound; // is this render buffer currently bound via "glBindRenderbuffer"?
« no previous file with comments | « tools/gpu/gl/debug/GrFBBindableObj.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698