Index: src/gpu/GrRenderTarget.cpp |
diff --git a/src/gpu/GrRenderTarget.cpp b/src/gpu/GrRenderTarget.cpp |
index 90f94b324b06c2b3c6209931dfc0ef01b4a208a1..2053a166e57b228b469d3e5eec1df3729a2a18b8 100644 |
--- a/src/gpu/GrRenderTarget.cpp |
+++ b/src/gpu/GrRenderTarget.cpp |
@@ -127,3 +127,8 @@ const GrGpu::MultisampleSpecs& |
GrRenderTargetPriv::getMultisampleSpecs(const GrStencilSettings& stencil) const { |
return fRenderTarget->getGpu()->getMultisampleSpecs(fRenderTarget, stencil); |
} |
+ |
+int GrRenderTargetPriv::maxWindowRectangles() const { |
+ return (this->flags() & Flags::kWindowRectsSupport) ? |
+ fRenderTarget->getGpu()->caps()->maxWindowRectangles() : 0; |
+} |