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

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

Issue 1482953002: Drop dependency on LayoutObject in fetch/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fix Created 5 years, 1 month 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: third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp b/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
index 08222b22a33551ce3dee026fcf752bacde697297..b53bf73f9175bd617e325284df93b95639111db8 100644
--- a/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
+++ b/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
@@ -50,7 +50,7 @@ TEST_F(ImageQualityControllerTest, ImageRenderingPixelated)
class TestImageAnimated : public Image {
public:
bool maybeAnimated() override { return true; }
- bool currentFrameKnownToBeOpaque() override { return false; }
+ bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) 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 { }
@@ -69,7 +69,7 @@ TEST_F(ImageQualityControllerTest, ImageMaybeAnimated)
class TestImageWithContrast : public Image {
public:
bool maybeAnimated() override { return true; }
- bool currentFrameKnownToBeOpaque() override { return false; }
+ bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) 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 { }
@@ -90,7 +90,7 @@ TEST_F(ImageQualityControllerTest, LowQualityFilterForContrast)
class TestImageLowQuality : public Image {
public:
bool maybeAnimated() override { return true; }
- bool currentFrameKnownToBeOpaque() override { return false; }
+ bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) 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 { }
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResource.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698