aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-07 18:46:50 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-06-07 18:46:50 +0000
commit7ca72f33556e9d6c827b8c9493eb9531da5e347b (patch)
treeb9c34cf82c4ca242f9436d156a7dedbfb9df0c97
parent4c0e88e202c7fa2c813634f411a8934050f47ca6 (diff)
Apply translate param to path bounds when computing ssaa bounds
Review URL: http://codereview.appspot.com/4591044/ git-svn-id: http://skia.googlecode.com/svn/trunk@1532 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--gpu/src/GrContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpu/src/GrContext.cpp b/gpu/src/GrContext.cpp
index 3c74b83561..00ca69ab95 100644
--- a/gpu/src/GrContext.cpp
+++ b/gpu/src/GrContext.cpp
@@ -1192,6 +1192,9 @@ void GrContext::drawPath(const GrPaint& paint, const GrPath& path,
GrRect pathBounds = path.getBounds();
GrIRect pathIBounds;
if (!pathBounds.isEmpty()) {
+ if (NULL != translate) {
+ pathBounds.offset(*translate);
+ }
target->getViewMatrix().mapRect(&pathBounds, pathBounds);
pathBounds.roundOut(&pathIBounds);
if (!bound.intersect(pathIBounds)) {