Index: ppapi/tests/test_graphics_2d.cc |
diff --git a/ppapi/tests/test_graphics_2d.cc b/ppapi/tests/test_graphics_2d.cc |
index 7377736b47fdea9069a53e1c0d6e3727f6785587..23a4fe76fb41abaa9499cfc3de74fd0c8bb089eb 100644 |
--- a/ppapi/tests/test_graphics_2d.cc |
+++ b/ppapi/tests/test_graphics_2d.cc |
@@ -321,6 +321,7 @@ std::string TestGraphics2D::TestInitToZero() { |
pp::ImageData image(instance_, PP_IMAGEDATAFORMAT_BGRA_PREMUL, |
pp::Size(w, h), true); |
ASSERT_FALSE(image.is_null()); |
+ ASSERT_FALSE(image.size().IsEmpty()); |
memset(image.data(), 0xFF, image.stride() * image.size().height() * 4); |
// Read out the initial data from the device & check. |