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

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

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.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.cpp
index 7b20716bd50c566ea3146d8f9f27e48d1ad370a7..87f32a8955cd72c4fca64a1bf208f886be4db71d 100644
--- a/third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.cpp
@@ -34,12 +34,18 @@ void UnacceleratedStaticBitmapImage::draw(SkCanvas* canvas,
const FloatRect& dstRect,
const FloatRect& srcRect,
RespectImageOrientationEnum,
- ImageClampingMode clampMode) {
+ ImageClampingMode clampMode,
+ const ColorBehavior& colorBehavior) {
+ // TODO(ccameron): This function should not ignore |colorBehavior|.
+ // https://crbug.com/672306
StaticBitmapImage::drawHelper(canvas, paint, dstRect, srcRect, clampMode,
m_image);
}
-sk_sp<SkImage> UnacceleratedStaticBitmapImage::imageForCurrentFrame() {
+sk_sp<SkImage> UnacceleratedStaticBitmapImage::imageForCurrentFrame(
+ const ColorBehavior& colorBehavior) {
+ // TODO(ccameron): This function should not ignore |colorBehavior|.
+ // https://crbug.com/672306
return m_image;
}

Powered by Google App Engine
This is Rietveld 408576698