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

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

Issue 2026803002: Avoid GPU readback in tex(Sub)Image2D(ImageBitmap) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: staticbitmapimage does not keep provider anymore Created 4 years, 6 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 7ee78d3969e1940fc1afd99303e4af4bd04c9e6e..d4ec9ec005a59b38288324c991f6be7b45d6ac73 100644
--- a/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
+++ b/third_party/WebKit/Source/core/layout/ImageQualityControllerTest.cpp
@@ -54,7 +54,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; }
+ PassRefPtr<SkImage> imageForCurrentFrame(WebGraphicsContext3DProvider* = nullptr) override { return nullptr; }
};
TEST_F(ImageQualityControllerTest, ImageMaybeAnimated)
@@ -75,7 +75,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; }
+ PassRefPtr<SkImage> imageForCurrentFrame(WebGraphicsContext3DProvider* = nullptr) override { return nullptr; }
};
TEST_F(ImageQualityControllerTest, LowQualityFilterForContrast)
@@ -96,7 +96,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; }
+ PassRefPtr<SkImage> imageForCurrentFrame(WebGraphicsContext3DProvider* = nullptr) override { return nullptr; }
};
TEST_F(ImageQualityControllerTest, MediumQualityFilterForUnscaledImage)

Powered by Google App Engine
This is Rietveld 408576698