Index: include/gpu/GrCaps.h |
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h |
index 05da8d7cadf40d5af5eafa185b03ad761c8b7029..944fb1481c1e9a4dd0391d5fad104666570eb34c 100644 |
--- a/include/gpu/GrCaps.h |
+++ b/include/gpu/GrCaps.h |
@@ -211,6 +211,9 @@ public: |
int maxColorSampleCount() const { return fMaxColorSampleCount; } |
// Will be 0 if MSAA is not supported |
int maxStencilSampleCount() const { return fMaxStencilSampleCount; } |
+ // Will be 0 if raster multisample is not supported. Raster multisample is a special HW mode |
+ // where the rasterizer runs with more samples than are in the target framebuffer. |
+ int maxRasterSamples() const { return fMaxRasterSamples; } |
// We require the sample count to be less than maxColorSampleCount and maxStencilSampleCount. |
// If we are using mixed samples, we only care about stencil. |
int maxSampleCount() const { |
@@ -291,6 +294,7 @@ protected: |
int fMaxTileSize; |
int fMaxColorSampleCount; |
int fMaxStencilSampleCount; |
+ int fMaxRasterSamples; |
private: |
virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |