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

Unified Diff: include/gpu/GrRenderTarget.h

Issue 1232103002: Enable stencil clipping in mixed sampled render targets (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | include/gpu/gl/GrGLFunctions.h » ('j') | include/gpu/gl/GrGLFunctions.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrRenderTarget.h
diff --git a/include/gpu/GrRenderTarget.h b/include/gpu/GrRenderTarget.h
index 2309dbd876f6cf4e9d58b715730088045e83fb65..17d75d75290223bfca3f75a22256af8c189c56b7 100644
--- a/include/gpu/GrRenderTarget.h
+++ b/include/gpu/GrRenderTarget.h
@@ -81,6 +81,13 @@ public:
}
/**
+ * @return the number of actual raster samples-per-pixel, or zero if non-MSAA.
+ */
+ int numRasterSamples() const {
+ return fStencilAttachment ? this->numStencilSamples() : this->numColorSamples();
+ }
+
+ /**
* @return true if the surface is mixed sampled, false otherwise.
*/
bool hasMixedSamples() const {
« no previous file with comments | « no previous file | include/gpu/gl/GrGLFunctions.h » ('j') | include/gpu/gl/GrGLFunctions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698