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

Unified Diff: third_party/WebKit/Source/platform/exported/WebImageGenerator.cpp

Issue 2706453003: switch to new ImageGenerator API (Closed)
Patch Set: fix typo Created 3 years, 10 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
« no previous file with comments | « skia/config/SkUserConfig.h ('k') | third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/exported/WebImageGenerator.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebImageGenerator.cpp b/third_party/WebKit/Source/platform/exported/WebImageGenerator.cpp
index 860d0337be3642493ace7038e296cbe5524f2e9f..fca4a60c81d716768b9f781c74a597c6c71f3bd1 100644
--- a/third_party/WebKit/Source/platform/exported/WebImageGenerator.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebImageGenerator.cpp
@@ -34,8 +34,10 @@
namespace blink {
-SkImageGenerator* WebImageGenerator::create(SkData* data) {
- return DecodingImageGenerator::create(data);
+std::unique_ptr<SkImageGenerator> WebImageGenerator::create(
+ sk_sp<SkData> data) {
+ return std::unique_ptr<SkImageGenerator>(
+ DecodingImageGenerator::create(data.get()));
}
} // namespace blink
« no previous file with comments | « skia/config/SkUserConfig.h ('k') | third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698