aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-30 11:05:08 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-08-30 11:05:08 +0000
commit9cb5adf50dc3e8f83904380934b08d135229ef6f (patch)
treeef6a82349c30c5d62656f8e1c7d704638e171ed2
parent405d0f43d8fa03874aee23669e5fdb38f21cc3e7 (diff)
Minor refactoring of GrClipMaskManager::clipMaskPreamble
-rw-r--r--src/gpu/GrClipMaskManager.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp
index d80868d31e..c4c2edf17b 100644
--- a/src/gpu/GrClipMaskManager.cpp
+++ b/src/gpu/GrClipMaskManager.cpp
@@ -557,26 +557,23 @@ bool GrClipMaskManager::clipMaskPreamble(const GrClipData& clipDataIn,
// unlike the stencil path the alpha path is not bound to the size of the
// render target - determine the minimum size required for the mask
// Note: intBounds is in device (as opposed to canvas) coordinates
- GrIRect devClipBounds;
- clipDataIn.getConservativeBounds(rt, &devClipBounds);
+ clipDataIn.getConservativeBounds(rt, devResultBounds);
// need to outset a pixel since the standard bounding box computation
// path doesn't leave any room for antialiasing (esp. w.r.t. rects)
- devClipBounds.outset(1, 1);
+ devResultBounds->outset(1, 1);
// TODO: make sure we don't outset if bounds are still 0,0 @ min
if (fAACache.canReuse(*clipDataIn.fClipStack,
- devClipBounds.width(),
- devClipBounds.height())) {
+ devResultBounds->width(),
+ devResultBounds->height())) {
*result = fAACache.getLastMask();
fAACache.getLastBound(devResultBounds);
return true;
}
- this->setupCache(*clipDataIn.fClipStack, devClipBounds);
-
- *devResultBounds = devClipBounds;
+ this->setupCache(*clipDataIn.fClipStack, *devResultBounds);
return false;
}