aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/RectangleTextureTest.cpp
diff options
context:
space:
mode:
authorGravatar benjaminwagner <benjaminwagner@google.com>2016-01-15 06:21:18 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-15 06:21:18 -0800
commit2a641eebf6d552e72dd7604b74dce640c15a3130 (patch)
tree30f0a45af677b7dd625b9717c355f78cd5108970 /tests/RectangleTextureTest.cpp
parentf5e9782bdea16bbe2983198ed5cd3df8e8af37c1 (diff)
Fix compile error in Google3 build.
Diffstat (limited to 'tests/RectangleTextureTest.cpp')
-rw-r--r--tests/RectangleTextureTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/RectangleTextureTest.cpp b/tests/RectangleTextureTest.cpp
index a98dd3458b..168a573ea0 100644
--- a/tests/RectangleTextureTest.cpp
+++ b/tests/RectangleTextureTest.cpp
@@ -104,7 +104,7 @@ static void test_clear(skiatest::Reporter* reporter, GrContext* context,
SkAutoTMalloc<uint32_t> expectedPixels(pixelCnt);
// The clear color is a GrColor, our readback is to kRGBA_8888, which may be different.
- uint32_t expectedColor0;
+ uint32_t expectedColor0 = 0;
uint8_t* expectedBytes0 = SkTCast<uint8_t*>(&expectedColor0);
expectedBytes0[0] = GrColorUnpackR(color0);
expectedBytes0[1] = GrColorUnpackG(color0);
@@ -119,7 +119,7 @@ static void test_clear(skiatest::Reporter* reporter, GrContext* context,
SkIRect rect = SkIRect::MakeWH(w, h/2);
dc->clear(&rect, color1, false);
- uint32_t expectedColor1;
+ uint32_t expectedColor1 = 0;
uint8_t* expectedBytes1 = SkTCast<uint8_t*>(&expectedColor1);
expectedBytes1[0] = GrColorUnpackR(color1);
expectedBytes1[1] = GrColorUnpackG(color1);