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

Side by Side Diff: example/mac/HelloWorldNSView.mm

Issue 886413004: move HelloWorld to be a peer of SampleApp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: exclude android as well Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « example/mac/HelloWorldNSView.h ('k') | gyp/example.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // 1 /*
2 // SkExampleNSView.m 2 * Copyright 2015 Google Inc.
3 // SkiaExamples 3 *
4 // 4 * Use of this source code is governed by a BSD-style license that can be
5 // Created by Sergio González on 6/11/13. 5 * found in the LICENSE file.
6 // 6 */
7 //
8 7
9 #import "SkExampleNSView.h" 8 #import "HelloWorldNSView.h"
10 9
11 #include "SkApplication.h" 10 #include "SkApplication.h"
12 #include <crt_externs.h> 11 #include <crt_externs.h>
13 12
14 @implementation SkExampleNSView 13 @implementation HelloWorldNSView
15 14
16 - (id)initWithDefaults { 15 - (id)initWithDefaults {
17 if ((self = [super initWithDefaults])) { 16 if ((self = [super initWithDefaults])) {
18 fWind = create_sk_window(self, *_NSGetArgc(), *_NSGetArgv()); 17 fWind = create_sk_window(self, *_NSGetArgc(), *_NSGetArgv());
19 } 18 }
20 return self; 19 return self;
21 } 20 }
22 21
23 - (void)dealloc { 22 - (void)dealloc {
24 delete fWind; 23 delete fWind;
25 [super dealloc]; 24 [super dealloc];
26 } 25 }
27 26
28 @end 27 @end
OLDNEW
« no previous file with comments | « example/mac/HelloWorldNSView.h ('k') | gyp/example.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698