aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRectanizer_skyline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrRectanizer_skyline.cpp')
-rw-r--r--src/gpu/GrRectanizer_skyline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrRectanizer_skyline.cpp b/src/gpu/GrRectanizer_skyline.cpp
index bbb9859d8e..c4d26e026d 100644
--- a/src/gpu/GrRectanizer_skyline.cpp
+++ b/src/gpu/GrRectanizer_skyline.cpp
@@ -16,7 +16,7 @@ bool GrRectanizerSkyline::addRect(int width, int height, SkIPoint16* loc) {
// find position for new rectangle
int bestWidth = this->width() + 1;
- int bestX;
+ int bestX = 0;
int bestY = this->height() + 1;
int bestIndex = -1;
for (int i = 0; i < fSkyline.count(); ++i) {