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

Unified Diff: third_party/WebKit/Source/platform/graphics/StaticBitmapImage.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/StaticBitmapImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
index 7753fa845fc2a83508c658d701a23e1b599fadec..0cf233cc85bc2f974387f39c1ca4ae2a44287843 100644
--- a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
@@ -22,14 +22,15 @@ class PLATFORM_EXPORT StaticBitmapImage : public Image {
// Methods overrided by all sub-classes
virtual ~StaticBitmapImage() {}
bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) = 0;
- sk_sp<SkImage> imageForCurrentFrame() = 0;
+ sk_sp<SkImage> imageForCurrentFrame(const ColorBehavior&) = 0;
bool isTextureBacked() = 0;
void draw(SkCanvas*,
const SkPaint&,
const FloatRect& dstRect,
const FloatRect& srcRect,
RespectImageOrientationEnum,
- ImageClampingMode) = 0;
+ ImageClampingMode,
+ const ColorBehavior&) = 0;
// Methods have common implementation for all sub-classes
bool currentFrameIsComplete() override { return true; }

Powered by Google App Engine
This is Rietveld 408576698