63fd760a37
Also adds a presubmit to prevent adding trailing whitespace to source code in the future. Change-Id: I41a4df81487f6f00aa19b188f0cac6a3377efde6 Reviewed-on: https://skia-review.googlesource.com/57380 Reviewed-by: Ravi Mistry <rmistry@google.com> Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Ben Wagner <bungeman@google.com>
28 lines
493 B
Plaintext
28 lines
493 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
|