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:
parent
68dd81bde9
commit
5da2fa436e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user