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

Side by Side Diff: src/views/sdl/SkOSWindow_SDL.cpp

Issue 1442573003: Create a standalone example for using Skia with SDL (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback inc Created 5 years, 1 month 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 | « gyp/example.gyp ('k') | no next file » | 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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #include "SkOSWindow_SDL.h" 7 #include "SkOSWindow_SDL.h"
8 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 9
10 #if defined(SK_BUILD_FOR_ANDROID) 10 #if defined(SK_BUILD_FOR_ANDROID)
11 #include <GLES/gl.h> 11 #include <GLES/gl.h>
12 #elif defined(SK_BUILD_FOR_LINUX) 12 #elif defined(SK_BUILD_FOR_UNIX)
13 #include <GL/gl.h> 13 #include <GL/gl.h>
14 #elif defined(SK_BUILD_FOR_MAC) 14 #elif defined(SK_BUILD_FOR_MAC)
15 #include <gl.h> 15 #include <gl.h>
16 #endif 16 #endif
17 17
18 const int SCREEN_WIDTH = 640; 18 const int SCREEN_WIDTH = 640;
19 const int SCREEN_HEIGHT = 480; 19 const int SCREEN_HEIGHT = 480;
20 20
21 static void handle_error() { 21 static void handle_error() {
22 const char* error = SDL_GetError(); 22 const char* error = SDL_GetError();
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 // Start normal Skia sequence 283 // Start normal Skia sequence
284 application_init(); 284 application_init();
285 285
286 window->loop(); 286 window->loop();
287 287
288 delete window; 288 delete window;
289 application_term(); 289 application_term();
290 return 0; 290 return 0;
291 } 291 }
OLDNEW
« no previous file with comments | « gyp/example.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698