gfx/skia/trunk/src/views/mac/skia_mac.mm

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/views/mac/skia_mac.mm	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +
     1.5 +/*
     1.6 + * Copyright 2011 Google Inc.
     1.7 + *
     1.8 + * Use of this source code is governed by a BSD-style license that can be
     1.9 + * found in the LICENSE file.
    1.10 + */
    1.11 +
    1.12 +#import <Cocoa/Cocoa.h>
    1.13 +#include "SkApplication.h"
    1.14 +
    1.15 +int main(int argc, char *argv[]) {
    1.16 +    signal(SIGPIPE, SIG_IGN);
    1.17 +    NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
    1.18 +    application_init();
    1.19 +    int retVal =  NSApplicationMain(argc, (const char **)argv);
    1.20 +    application_term();
    1.21 +    [pool release];
    1.22 +    return retVal;
    1.23 +}

mercurial