aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar kkinnunen <kkinnunen@nvidia.com>2014-06-24 05:43:21 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-24 05:43:21 -0700
commit5da2fa436e62609153b990ef317733ade912f171 (patch)
treeed2dee8febfb3400a15a44215c059936494cd02d /src
parent68dd81bde91c61e034702ab957ba4ab42010afa9 (diff)
Initialize a variable in GrDrawTarget::drawPaths
Initialize the device bounds rect variable before use in GrDrawTarget::drawPaths. R=rmistry@google.com, jvanverth@google.com, mtklein@google.com Author: kkinnunen@nvidia.com Review URL: https://codereview.chromium.org/355603003
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrDrawTarget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
index 7cdb743a49..b90193f014 100644
--- a/src/gpu/GrDrawTarget.cpp
+++ b/src/gpu/GrDrawTarget.cpp
@@ -560,7 +560,8 @@ void GrDrawTarget::drawPaths(int pathCount, const GrPath** paths,
const GrDrawState* drawState = &getDrawState();
SkRect devBounds;
- for (int i = 0; i < pathCount; ++i) {
+ transforms[0].mapRect(&devBounds, paths[0]->getBounds());
+ for (int i = 1; i < pathCount; ++i) {
SkRect mappedPathBounds;
transforms[i].mapRect(&mappedPathBounds, paths[i]->getBounds());
devBounds.join(mappedPathBounds);