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

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 e98f0bedae560d1df487c5a4541b7a77c8b2a0e3..dcab411c16132563ad5ebf440f5ff6a60717cc43 100644
--- a/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp
@@ -817,9 +817,9 @@ void DrawDocumentMarker(GraphicsContext& context,
PaintFlags flags;
flags.setAntiAlias(true);
- flags.setShader(WrapSkShader(MakePaintShaderRecord(
+ flags.setShader(WTF::MakeUnique<PaintShader>(
sk_ref_sp(marker), SkShader::kRepeat_TileMode, SkShader::kClamp_TileMode,
- &local_matrix, nullptr)));
+ &local_matrix, nullptr));
// 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