52edc4d053
This is working towards making a simple example part of the buildbot compile step and removing SkExamples from the experimental directory. This works on Mac, Windows, and Linux but isn't complete for Android, ChromeOS and iOS. Review URL: https://codereview.chromium.org/886413004
28 lines
495 B
Plaintext
28 lines
495 B
Plaintext
/*
|
|
* Copyright 2015 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#import "HelloWorldNSView.h"
|
|
|
|
#include "SkApplication.h"
|
|
#include <crt_externs.h>
|
|
|
|
@implementation HelloWorldNSView
|
|
|
|
- (id)initWithDefaults {
|
|
if ((self = [super initWithDefaults])) {
|
|
fWind = create_sk_window(self, *_NSGetArgc(), *_NSGetArgv());
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)dealloc {
|
|
delete fWind;
|
|
[super dealloc];
|
|
}
|
|
|
|
@end
|