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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.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/BitmapImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.h b/third_party/WebKit/Source/platform/graphics/BitmapImage.h
index bde1926b7b0ed91b6bf6ee42a5eb43c4b81c6d78..2521889fc7bc72e7cec6e9447f65ede1006dc6ed 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.h
@@ -82,7 +82,7 @@ class PLATFORM_EXPORT BitmapImage final : public Image {
ImageAnimationPolicy animationPolicy() override { return m_animationPolicy; }
void advanceTime(double deltaTimeInSeconds) override;
- sk_sp<SkImage> imageForCurrentFrame() override;
+ sk_sp<SkImage> imageForCurrentFrame(const ColorBehavior&) override;
PassRefPtr<Image> imageForDefaultFrame() override;
bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override;
@@ -115,7 +115,8 @@ class PLATFORM_EXPORT BitmapImage final : public Image {
const FloatRect& dstRect,
const FloatRect& srcRect,
RespectImageOrientationEnum,
- ImageClampingMode) override;
+ ImageClampingMode,
+ const ColorBehavior&) override;
size_t currentFrame() const { return m_currentFrame; }
size_t frameCount();

Powered by Google App Engine
This is Rietveld 408576698