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

Unified Diff: third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.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/AcceleratedStaticBitmapImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp
index ea19b6614f563d0b09745ddfd1be2fd0af724a1c..cd6c85f1648d54abeb2481316c36eb081deb55f3 100644
--- a/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/AcceleratedStaticBitmapImage.cpp
@@ -89,7 +89,10 @@ void AcceleratedStaticBitmapImage::copyToTexture(
destGL->DeleteTextures(1, &sourceTextureId);
}
-sk_sp<SkImage> AcceleratedStaticBitmapImage::imageForCurrentFrame() {
+sk_sp<SkImage> AcceleratedStaticBitmapImage::imageForCurrentFrame(
+ const ColorBehavior& colorBehavior) {
+ // TODO(ccameron): This function should not ignore |colorBehavior|.
+ // https://crbug.com/672306
checkThread();
if (!isValid())
return nullptr;
@@ -102,7 +105,10 @@ void AcceleratedStaticBitmapImage::draw(SkCanvas* canvas,
const FloatRect& dstRect,
const FloatRect& srcRect,
RespectImageOrientationEnum,
- ImageClampingMode imageClampingMode) {
+ ImageClampingMode imageClampingMode,
+ const ColorBehavior& colorBehavior) {
+ // TODO(ccameron): This function should not ignore |colorBehavior|.
+ // https://crbug.com/672306
checkThread();
if (!isValid())
return;

Powered by Google App Engine
This is Rietveld 408576698