| Index: include/gpu/GrRenderTarget.h
|
| diff --git a/include/gpu/GrRenderTarget.h b/include/gpu/GrRenderTarget.h
|
| index 2309dbd876f6cf4e9d58b715730088045e83fb65..24ca6603db0f0e13bb420165604e58fa0c31f787 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 {
|
| @@ -175,6 +182,11 @@ private:
|
|
|
| GrStencilAttachment* fStencilAttachment;
|
| SampleConfig fSampleConfig;
|
| + // Configures sample locations to be either default or programmable, if MSAA.
|
| + bool fProgrammableSampleLocationsEnabled;
|
| + // True if sample locations colocated at pixel center are currently in use, false if default
|
| + // sample locations are currently in use.
|
| + bool fUsesCenteredSampleLocations;
|
|
|
| SkIRect fResolveRect;
|
|
|
|
|