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

Unified Diff: samplecode/SampleApp.cpp

Issue 405653002: git sample app working on iOS (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 | « gyp/SampleApp.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleApp.cpp
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 8beb66ab178abb2c9d4da51c6b52617114e5a5a4..3f37d358ab0825c62450b387b9802dbc579c0b94 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -8,6 +8,7 @@
#include "SampleApp.h"
#include "OverView.h"
+#include "Resources.h"
#include "SampleCode.h"
#include "SamplePipeControllers.h"
#include "SkCanvas.h"
@@ -2385,7 +2386,9 @@ void get_preferred_size(int* x, int* y, int* width, int* height) {
}
#ifdef SK_BUILD_FOR_IOS
-void save_args(int argc, char *argv[]) {
+bool set_cmd_line_args(int , char *[], const char* resourceDir) {
+ SetResourcePath(resourceDir);
+ return false;
}
#endif
« no previous file with comments | « gyp/SampleApp.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698