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

Unified Diff: third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.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/PaintGeneratedImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp b/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
index f46047dbe8eb8b67f5489fc7777e150a6452c5bf..80212ac2cdd747eaa9224a11149d403bb28b6339 100644
--- a/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/PaintGeneratedImage.cpp
@@ -15,7 +15,10 @@ void PaintGeneratedImage::draw(SkCanvas* canvas,
const FloatRect& destRect,
const FloatRect& srcRect,
RespectImageOrientationEnum,
- ImageClampingMode) {
+ ImageClampingMode,
+ const ColorBehavior& colorBehavior) {
+ // TODO(ccameron): This function should not ignore |colorBehavior|.
+ // https://crbug.com/672306
SkAutoCanvasRestore ar(canvas, true);
canvas->clipRect(destRect);
canvas->translate(destRect.x(), destRect.y());
@@ -28,6 +31,8 @@ void PaintGeneratedImage::draw(SkCanvas* canvas,
void PaintGeneratedImage::drawTile(GraphicsContext& context,
const FloatRect& srcRect) {
+ // TODO(ccameron): This function should not ignore |context|'s color behavior.
+ // https://crbug.com/672306
context.drawPicture(m_picture.get());
}

Powered by Google App Engine
This is Rietveld 408576698