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

Unified Diff: experimental/SkiaExamples/SkExampleNSView.mm

Issue 16337012: Smallest possible desktop application that uses Skia to render stuff. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix OSX build. Created 7 years, 6 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 | « experimental/SkiaExamples/SkExampleNSView.h ('k') | experimental/SkiaExamples/SkiaExamples.xib » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/SkiaExamples/SkExampleNSView.mm
diff --git a/experimental/SkiaExamples/SkExampleNSView.mm b/experimental/SkiaExamples/SkExampleNSView.mm
new file mode 100644
index 0000000000000000000000000000000000000000..f014fa31c9d42cce79188142ae0a31c09c88901f
--- /dev/null
+++ b/experimental/SkiaExamples/SkExampleNSView.mm
@@ -0,0 +1,28 @@
+//
+// SkExampleNSView.m
+// SkiaExamples
+//
+// Created by Sergio González on 6/11/13.
+//
+//
+
+#import "SkExampleNSView.h"
+
+#include "SkApplication.h"
+#include <crt_externs.h>
+
+@implementation SkExampleNSView
+
+- (id)initWithDefaults {
+ if ((self = [super initWithDefaults])) {
+ fWind = create_sk_window(self, *_NSGetArgc(), *_NSGetArgv());
+ }
+ return self;
+}
+
+- (void)dealloc {
+ delete fWind;
+ [super dealloc];
+}
+
+@end
« no previous file with comments | « experimental/SkiaExamples/SkExampleNSView.h ('k') | experimental/SkiaExamples/SkiaExamples.xib » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698