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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h

Issue 2472543002: remove legacy Skia flags (Closed)
Patch Set: Created 4 years, 1 month 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/modules/canvas2d/BaseRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
index 8da21d7eabf909071f1398eb4a5319750be01b0b..dccc76077919cd1be8c55658d8e39bac865b2666 100644
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
@@ -455,7 +455,7 @@ void BaseRenderingContext2D::compositedDraw(
c->restoreToCount(saveCount);
}
- compositePaint.setImageFilter(filter);
+ compositePaint.setImageFilter(sk_ref_sp(filter));
Stephen White 2016/11/01 21:11:48 Rather than doing an explicit ref here, I think we
c->saveLayer(nullptr, &compositePaint);
SkPaint foregroundPaint =
*state().getPaint(paintType, DrawForegroundOnly, imageType);

Powered by Google App Engine
This is Rietveld 408576698