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

Unified Diff: third_party/WebKit/Source/platform/graphics/PaintRecordPattern.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/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 2b0bdb54cbb3da23f6cfd21070b6d82c635f2e24..23eff2264fb017ec0abd479689ca39636dc29c46 100644
--- a/third_party/WebKit/Source/platform/graphics/PaintRecordPattern.cpp
+++ b/third_party/WebKit/Source/platform/graphics/PaintRecordPattern.cpp
@@ -28,13 +28,13 @@ PaintRecordPattern::PaintRecordPattern(sk_sp<PaintRecord> record,
PaintRecordPattern::~PaintRecordPattern() {}
-sk_sp<PaintShader> PaintRecordPattern::CreateShader(
+std::unique_ptr<PaintShader> PaintRecordPattern::CreateShader(
const SkMatrix& local_matrix) {
SkRect tile_bounds = tile_record_->cullRect();
- return MakePaintShaderRecord(tile_record_, SkShader::kRepeat_TileMode,
- SkShader::kRepeat_TileMode, &local_matrix,
- &tile_bounds);
+ return WTF::MakeUnique<PaintShader>(tile_record_, SkShader::kRepeat_TileMode,
+ SkShader::kRepeat_TileMode, &local_matrix,
+ &tile_bounds);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698