Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(985)

Unified Diff: Source/core/layout/ImageQualityControllerTest.cpp

Issue 1093673002: Removing the dependency on GraphicsContext for drawing images in 2D canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixup Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/layout/ImageQualityControllerTest.cpp
diff --git a/Source/core/layout/ImageQualityControllerTest.cpp b/Source/core/layout/ImageQualityControllerTest.cpp
index 4cebf489bfa573ccd541d9b9d833fa50c9eefc47..5af2ab6a23264a84015cd0bae2a0b144f0465c78 100644
--- a/Source/core/layout/ImageQualityControllerTest.cpp
+++ b/Source/core/layout/ImageQualityControllerTest.cpp
@@ -50,11 +50,11 @@ TEST_F(ImageQualityControllerTest, ImageRenderingPixelated)
class TestImageAnimated : public Image {
public:
- virtual bool maybeAnimated() override { return true; }
- virtual bool currentFrameKnownToBeOpaque() override { return false; }
- virtual IntSize size() const override { return IntSize(); }
- virtual void destroyDecodedData(bool) override { }
- virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, SkXfermode::Mode, RespectImageOrientationEnum) override { }
+ bool maybeAnimated() override { return true; }
+ bool currentFrameKnownToBeOpaque() override { return false; }
+ IntSize size() const override { return IntSize(); }
+ void destroyDecodedData(bool) override { }
+ void draw(SkCanvas*, const SkPaint&, const FloatRect& dstRect, const FloatRect& srcRect, RespectImageOrientationEnum, ImageClampingMode) override { }
};
TEST_F(ImageQualityControllerTest, ImageMaybeAnimated)
@@ -68,13 +68,13 @@ TEST_F(ImageQualityControllerTest, ImageMaybeAnimated)
class TestImageWithContrast : public Image {
public:
- virtual bool maybeAnimated() override { return true; }
- virtual bool currentFrameKnownToBeOpaque() override { return false; }
- virtual IntSize size() const override { return IntSize(); }
- virtual void destroyDecodedData(bool) override { }
- virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, SkXfermode::Mode, RespectImageOrientationEnum) override { }
+ bool maybeAnimated() override { return true; }
+ bool currentFrameKnownToBeOpaque() override { return false; }
+ IntSize size() const override { return IntSize(); }
+ void destroyDecodedData(bool) override { }
+ void draw(SkCanvas*, const SkPaint&, const FloatRect& dstRect, const FloatRect& srcRect, RespectImageOrientationEnum, ImageClampingMode) override { }
- virtual bool isBitmapImage() const override { return true; };
+ bool isBitmapImage() const override { return true; };
};
TEST_F(ImageQualityControllerTest, LowQualityFilterForContrast)
@@ -88,13 +88,13 @@ TEST_F(ImageQualityControllerTest, LowQualityFilterForContrast)
class TestImageLowQuality : public Image {
public:
- virtual bool maybeAnimated() override { return true; }
- virtual bool currentFrameKnownToBeOpaque() override { return false; }
- virtual IntSize size() const override { return IntSize(1, 1); }
- virtual void destroyDecodedData(bool) override { }
- virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, SkXfermode::Mode, RespectImageOrientationEnum) override { }
+ bool maybeAnimated() override { return true; }
+ bool currentFrameKnownToBeOpaque() override { return false; }
+ IntSize size() const override { return IntSize(1, 1); }
+ void destroyDecodedData(bool) override { }
+ void draw(SkCanvas*, const SkPaint&, const FloatRect& dstRect, const FloatRect& srcRect, RespectImageOrientationEnum, ImageClampingMode) override { }
- virtual bool isBitmapImage() const override { return true; };
+ bool isBitmapImage() const override { return true; };
};
TEST_F(ImageQualityControllerTest, MediumQualityFilterForUnscaledImage)

Powered by Google App Engine
This is Rietveld 408576698