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

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

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Rebasing... Created 4 years, 3 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: 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 291560cb655d7571402fc5fe3712681443972d73..d3e0f9c435080b1b4f9ce6cb89c78ff7a50c31d8 100644
--- a/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
+++ b/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
@@ -57,7 +57,7 @@ public:
IntSize size() const override { return IntSize(); }
void destroyDecodedData() override { }
void draw(SkCanvas*, const SkPaint&, const FloatRect& dstRect, const FloatRect& srcRect, RespectImageOrientationEnum, ImageClampingMode) override { }
- PassRefPtr<SkImage> imageForCurrentFrame() override { return nullptr; }
+ sk_sp<SkImage> imageForCurrentFrame() override { return nullptr; }
};
TEST_F(ImageQualityControllerTest, ImageMaybeAnimated)
@@ -78,7 +78,7 @@ public:
void draw(SkCanvas*, const SkPaint&, const FloatRect& dstRect, const FloatRect& srcRect, RespectImageOrientationEnum, ImageClampingMode) override { }
bool isBitmapImage() const override { return true; }
- PassRefPtr<SkImage> imageForCurrentFrame() override { return nullptr; }
+ sk_sp<SkImage> imageForCurrentFrame() override { return nullptr; }
};
TEST_F(ImageQualityControllerTest, LowQualityFilterForContrast)
@@ -99,7 +99,7 @@ public:
void draw(SkCanvas*, const SkPaint&, const FloatRect& dstRect, const FloatRect& srcRect, RespectImageOrientationEnum, ImageClampingMode) override { }
bool isBitmapImage() const override { return true; }
- PassRefPtr<SkImage> imageForCurrentFrame() override { return nullptr; }
+ sk_sp<SkImage> imageForCurrentFrame() override { return nullptr; }
};
TEST_F(ImageQualityControllerTest, MediumQualityFilterForUnscaledImage)

Powered by Google App Engine
This is Rietveld 408576698