| Index: src/gpu/GrClip.cpp
|
| diff --git a/src/gpu/GrClip.cpp b/src/gpu/GrClip.cpp
|
| index d74d93558597030f7fde31fa06c66d7aa857ff07..a15f07c22afbb3b64d7feece65a2e3aaf430ed13 100644
|
| --- a/src/gpu/GrClip.cpp
|
| +++ b/src/gpu/GrClip.cpp
|
| @@ -53,11 +53,15 @@ bool GrFixedClip::apply(GrContext*, const GrPipelineBuilder& pipelineBuilder,
|
| if (devBounds && !devBounds->intersects(SkRect::Make(tightScissor))) {
|
| return false;
|
| }
|
| - out->makeScissoredStencil(fHasStencilClip, tightScissor);
|
| + if (fHasStencilClip) {
|
| + out->makeScissoredStencil(tightScissor, &fDeviceBounds);
|
| + } else {
|
| + out->makeScissored(tightScissor);
|
| + }
|
| return true;
|
| }
|
|
|
| - out->makeStencil(fHasStencilClip);
|
| + out->makeStencil(fHasStencilClip, fDeviceBounds);
|
| return true;
|
| }
|
|
|
|
|