| commit | e4d69c0e46c1a000eb89ef950bdaf0aea680a816 | [log] [tgz] |
|---|---|---|
| author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Jul 26 21:37:40 2012 +0000 |
| committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | Thu Jul 26 21:37:40 2012 +0000 |
| tree | 79e686956e5dc1bfdf0d7743913310a3875f09e7 | |
| parent | 99547767e9cdabcdae6a575f0f6bfde01d809865 [diff] [blame] |
Added getConservativeBound helper function to GrClipData http://codereview.appspot.com/6454054/ git-svn-id: http://skia.googlecode.com/svn/trunk@4798 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp index 0bf1cab..5b570b4 100644 --- a/src/gpu/GrSoftwarePathRenderer.cpp +++ b/src/gpu/GrSoftwarePathRenderer.cpp
@@ -46,10 +46,7 @@ } *pathBounds = GrIRect::MakeWH(rt->width(), rt->height()); - const GrClipData* clipData = target->getClip(); - - SkRect conservativeBounds = clipData->fClipStack->getConservativeBounds(); - conservativeBounds.roundOut(clipBounds); + target->getClip()->getConservativeBounds(rt, clipBounds); if (!pathBounds->intersect(*clipBounds)) { return false; }