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

Unified Diff: third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp

Issue 2893083002: cc: Move SkShader construction to a single spot in PaintShader (Closed)
Patch Set: update Created 3 years, 7 months 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/core/paint/InlineTextBoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp b/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp
index 601fda49a22b29c64bdd7affdbb77d53729a0e94..27870af606ef1c1dfe5ce0f9dfab2d33c09e8012 100644
--- a/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp
@@ -813,9 +813,9 @@ void DrawDocumentMarker(GraphicsContext& context,
PaintFlags flags;
flags.setAntiAlias(true);
- flags.setShader(WrapSkShader(MakePaintShaderRecord(
+ flags.setShader(WTF::MakeUnique<PaintShader>(
sk_ref_sp(marker), FloatRect(0, 0, kMarkerWidth, kMarkerHeight),
- SkShader::kRepeat_TileMode, SkShader::kClamp_TileMode, &local_matrix)));
+ SkShader::kRepeat_TileMode, SkShader::kClamp_TileMode, &local_matrix));
// Apply the origin translation as a global transform. This ensures that the
// shader local matrix depends solely on zoom => Skia can reuse the same

Powered by Google App Engine
This is Rietveld 408576698