diff options
Diffstat (limited to 'base/gfx/vector_canvas_unittest.cc')
-rw-r--r-- | base/gfx/vector_canvas_unittest.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/base/gfx/vector_canvas_unittest.cc b/base/gfx/vector_canvas_unittest.cc index 57ff34d..14ad6e1 100644 --- a/base/gfx/vector_canvas_unittest.cc +++ b/base/gfx/vector_canvas_unittest.cc @@ -163,7 +163,7 @@ class Image { } // Loads the image from a canvas. - Image(const gfx::PlatformCanvas& canvas) : ignore_alpha_(true) { + Image(const gfx::PlatformCanvasWin& canvas) : ignore_alpha_(true) { // Use a different way to access the bitmap. The normal way would be to // query the SkBitmap. HDC context = canvas.getTopPlatformDevice().getBitmapDC(); @@ -302,7 +302,7 @@ class ImageTest : public DataUnitTest { // kGenerating value. Returns 0 on success or any positive value between ]0, // 100] on failure. The return value is the percentage of difference between // the image in the file and the image in the canvas. - double ProcessCanvas(const gfx::PlatformCanvas& canvas, + double ProcessCanvas(const gfx::PlatformCanvasWin& canvas, std::wstring filename) const { filename += L".png"; switch (action_) { @@ -321,7 +321,7 @@ class ImageTest : public DataUnitTest { // Compares the bitmap currently loaded in the context with the file. Returns // the percentage of pixel difference between both images, between 0 and 100. - double CompareImage(const gfx::PlatformCanvas& canvas, + double CompareImage(const gfx::PlatformCanvasWin& canvas, const std::wstring& filename) const { Image image1(canvas); Image image2(test_file(filename)); @@ -330,7 +330,7 @@ class ImageTest : public DataUnitTest { } // Saves the bitmap currently loaded in the context into the file. - void SaveImage(const gfx::PlatformCanvas& canvas, + void SaveImage(const gfx::PlatformCanvasWin& canvas, const std::wstring& filename) const { Image(canvas).SaveToFile(test_file(filename)); } @@ -420,7 +420,7 @@ class VectorCanvasTest : public ImageTest { context_ = new Context(); bitmap_ = new Bitmap(*context_, size_, size_); vcanvas_ = new gfx::VectorCanvas(context_->context(), size_, size_); - pcanvas_ = new gfx::PlatformCanvas(size_, size_, false); + pcanvas_ = new gfx::PlatformCanvasWin(size_, size_, false); // Clear white. vcanvas_->drawARGB(255, 255, 255, 255, SkPorterDuff::kSrc_Mode); @@ -464,7 +464,7 @@ class VectorCanvasTest : public ImageTest { gfx::VectorCanvas* vcanvas_; // Pixel based canvas. - gfx::PlatformCanvas* pcanvas_; + gfx::PlatformCanvasWin* pcanvas_; // When true (default), vcanvas_ and pcanvas_ contents are compared and // verified to be identical. @@ -485,7 +485,7 @@ TEST_F(VectorCanvasTest, Uninitialized) { context_ = new Context(); bitmap_ = new Bitmap(*context_, size_, size_); vcanvas_ = new gfx::VectorCanvas(context_->context(), size_, size_); - pcanvas_ = new gfx::PlatformCanvas(size_, size_, false); + pcanvas_ = new gfx::PlatformCanvasWin(size_, size_, false); // VectorCanvas default initialization is black. // PlatformCanvas default initialization is almost white 0x01FFFEFD (invalid |