skia2/experimental/SkiaExamples/SkExampleNSView.mm
commit-bot@chromium.org 7fa22f3329 Smallest possible desktop application that uses Skia to render stuff.
Small Hello World smaple. Subclasses SkOSWindow.

R=caryclark@google.com

Author: sglez@google.com

Review URL: https://chromiumcodereview.appspot.com/16337012

git-svn-id: http://skia.googlecode.com/svn/trunk@9657 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-06-18 15:37:27 +00:00

29 lines
444 B
Plaintext

//
// 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