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"); |