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
This commit is contained in:
kkinnunen 2014-06-24 05:43:21 -07:00 committed by Commit bot
parent 68dd81bde9
commit 5da2fa436e

View File

@ -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);