Index: skia/ext/vector_canvas_unittest.cc |
diff --git a/skia/ext/vector_canvas_unittest.cc b/skia/ext/vector_canvas_unittest.cc |
index 1066c0c8fba4f504a7365e4d5c15430f0a662b69..355aa138138d4b89ac764c5bc1c9d9b378fb2481 100644 |
--- a/skia/ext/vector_canvas_unittest.cc |
+++ b/skia/ext/vector_canvas_unittest.cc |
@@ -18,6 +18,7 @@ |
#include "testing/gtest/include/gtest/gtest.h" |
#include "third_party/skia/include/effects/SkDashPathEffect.h" |
#include "ui/gfx/codec/png_codec.h" |
+#include "ui/gfx/size.h" |
namespace skia { |
@@ -126,10 +127,10 @@ class Image { |
std::vector<unsigned char> compressed; |
ASSERT_TRUE(gfx::PNGCodec::Encode(&*data_.begin(), |
gfx::PNGCodec::FORMAT_BGRA, |
- width_, |
- height_, |
+ gfx::Size(width_, height_), |
row_length_, |
true, |
+ std::vector<gfx::PNGCodec::Comment>(), |
&compressed)); |
ASSERT_TRUE(compressed.size()); |
FILE* f = file_util::OpenFile(filename, "wb"); |