| Index: src/gpu/GrDrawTarget.cpp
|
| diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
|
| index 218b729faf01eae1f281699c3c4c53dfedb70a92..e0e9184d9af618214b766365533bdedd85cc5ca1 100644
|
| --- a/src/gpu/GrDrawTarget.cpp
|
| +++ b/src/gpu/GrDrawTarget.cpp
|
| @@ -1065,6 +1065,15 @@ bool GrDrawTarget::PipelineInfo::getConservativeDrawBounds(SkIRect* outBounds) c
|
| return true;
|
| }
|
|
|
| +void GrDrawTarget::PipelineInfo::getQuickDrawBounds(SkIRect* outBounds) const {
|
| + if (fHasDrawBounds) {
|
| + fDrawBounds.roundOut(outBounds);
|
| + } else {
|
| + GrRenderTarget* rt = fPipelineBuilder->getRenderTarget();
|
| + *outBounds = SkIRect::MakeWH(rt->width(), rt->height());
|
| + }
|
| +}
|
| +
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| void GrDrawTargetCaps::reset() {
|
|
|