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

Unified Diff: third_party/WebKit/Source/platform/graphics/PaintRecordPattern.cpp

Issue 2928703005: Revert of cc: Move SkShader construction to a single spot in PaintShader (Closed)
Patch Set: Created 3 years, 6 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/platform/graphics/PaintRecordPattern.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/PaintRecordPattern.cpp b/third_party/WebKit/Source/platform/graphics/PaintRecordPattern.cpp
index c3b59885bb92e7ac6b17945dd354f9e2145a218b..1a9250f70c46e70e013d529d4450f97d59802a1d 100644
--- a/third_party/WebKit/Source/platform/graphics/PaintRecordPattern.cpp
+++ b/third_party/WebKit/Source/platform/graphics/PaintRecordPattern.cpp
@@ -33,11 +33,11 @@
PaintRecordPattern::~PaintRecordPattern() {}
-std::unique_ptr<PaintShader> PaintRecordPattern::CreateShader(
+sk_sp<PaintShader> PaintRecordPattern::CreateShader(
const SkMatrix& local_matrix) {
- return PaintShader::MakePaintRecord(
- tile_record_, tile_record_bounds_, SkShader::kRepeat_TileMode,
- SkShader::kRepeat_TileMode, &local_matrix);
+ return MakePaintShaderRecord(tile_record_, tile_record_bounds_,
+ SkShader::kRepeat_TileMode,
+ SkShader::kRepeat_TileMode, &local_matrix);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698