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

Unified Diff: third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.h

Issue 2559013002: Add ColorBehavior to blink::Image draw methods (Closed)
Patch Set: Rebase Created 4 years 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/platform/graphics/UnacceleratedStaticBitmapImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.h b/third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.h
index dce442b15b4fb284172d8fdd3f9fe5f868744fb0..ebae528126d5f5d74841e3a2be46deaca7ff8e30 100644
--- a/third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.h
@@ -17,7 +17,7 @@ class PLATFORM_EXPORT UnacceleratedStaticBitmapImage final
bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override;
IntSize size() const override;
- sk_sp<SkImage> imageForCurrentFrame() override;
+ sk_sp<SkImage> imageForCurrentFrame(const ColorBehavior&) override;
// In our current design, the SkImage in this class is always *not*
// texture-backed.
bool isTextureBacked() { return false; }
@@ -27,7 +27,8 @@ class PLATFORM_EXPORT UnacceleratedStaticBitmapImage final
const FloatRect& dstRect,
const FloatRect& srcRect,
RespectImageOrientationEnum,
- ImageClampingMode) override;
+ ImageClampingMode,
+ const ColorBehavior&) override;
private:
UnacceleratedStaticBitmapImage(sk_sp<SkImage>);

Powered by Google App Engine
This is Rietveld 408576698