Index: skia/ext/image_operations_unittest.cc |
diff --git a/skia/ext/image_operations_unittest.cc b/skia/ext/image_operations_unittest.cc |
index c1bd3e17872cd38a0f4e207f312e5ac5c5a77901..e8c0e9f3a8887abc67d9f83edd506b2e9dad60d0 100644 |
--- a/skia/ext/image_operations_unittest.cc |
+++ b/skia/ext/image_operations_unittest.cc |
@@ -14,6 +14,7 @@ |
#include "third_party/skia/include/core/SkBitmap.h" |
#include "third_party/skia/include/core/SkRect.h" |
#include "ui/gfx/codec/png_codec.h" |
+#include "ui/gfx/size.h" |
namespace { |
@@ -193,9 +194,9 @@ void SaveBitmapToPNG(const SkBitmap& bmp, const char* path) { |
gfx::PNGCodec::ColorFormat color_format = gfx::PNGCodec::FORMAT_RGBA; |
if (!gfx::PNGCodec::Encode( |
reinterpret_cast<const unsigned char*>(bmp.getPixels()), |
- color_format, bmp.width(), bmp.height(), |
+ color_format, gfx::Size(bmp.width(), bmp.height()), |
static_cast<int>(bmp.rowBytes()), |
- false, &png)) { |
+ false, std::vector<gfx::PNGCodec::Comment>(), &png)) { |
FAIL() << "Failed to encode image"; |
} |