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

Unified Diff: experimental/GLFWTest/glfw_main.cpp

Issue 2206633004: Move off SK_SUPPORT_LEGACY_DATA_FACTORIES. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Gotta catch 'em all. Created 4 years, 4 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: experimental/GLFWTest/glfw_main.cpp
diff --git a/experimental/GLFWTest/glfw_main.cpp b/experimental/GLFWTest/glfw_main.cpp
index bf91760ac0c2557154a97bbf10e38f73e350a5bf..a8ca7ea97e8f731df56f98271f7bed367c0a56df 100644
--- a/experimental/GLFWTest/glfw_main.cpp
+++ b/experimental/GLFWTest/glfw_main.cpp
@@ -83,8 +83,8 @@ int main(void) {
float times[32];
int currentTime;
- SkAutoTUnref<SkData> imageData(SkData::NewFromFileName("ship.png"));
- atlas.reset(SkImage::NewFromEncoded(imageData));
+ sk_sp<SkData> imageData(SkData::MakeFromFileName("ship.png"));
+ atlas.reset(SkImage::NewFromEncoded(imageData.get()));
if (!atlas) {
SkDebugf("\nCould not decode file ship.png\n");

Powered by Google App Engine
This is Rietveld 408576698