| Index: src/gpu/GrRenderTargetPriv.h
|
| diff --git a/src/gpu/GrRenderTargetPriv.h b/src/gpu/GrRenderTargetPriv.h
|
| index f4931db1db7475feab36d24f163aeec8b4bc0f7e..2f97b41e1de1faf76f3f54f46d23739f3d5a17bc 100644
|
| --- a/src/gpu/GrRenderTargetPriv.h
|
| +++ b/src/gpu/GrRenderTargetPriv.h
|
| @@ -27,6 +27,21 @@ public:
|
| */
|
| bool attachStencilAttachment(GrStencilAttachment* stencil);
|
|
|
| + /**
|
| + * @return true if sample locations colocated at pixel center have been set for this
|
| + * render target. Requires support for NV_sample_locations.
|
| + */
|
| + bool usesColocatedSampleLocations() const {
|
| + return fRenderTarget->fUsesColocatedSampleLocations;
|
| + }
|
| +
|
| + /**
|
| + * Flag render target as using or not using sample locations colocated at pixel center.
|
| + */
|
| + void flagAsUsingColocatedSampleLocations(bool useColocatedSampleLocations) {
|
| + fRenderTarget->fUsesColocatedSampleLocations = useColocatedSampleLocations;
|
| + }
|
| +
|
| private:
|
| explicit GrRenderTargetPriv(GrRenderTarget* renderTarget) : fRenderTarget(renderTarget) {}
|
| GrRenderTargetPriv(const GrRenderTargetPriv&) {} // unimpl
|
|
|