| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 #include "SkOSWindow_SDL.h" | 8 #include "SkOSWindow_SDL.h" |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 evt.expose.type = SDL_VIDEOEXPOSE; | 198 evt.expose.type = SDL_VIDEOEXPOSE; |
| 199 SDL_PushEvent(&evt); | 199 SDL_PushEvent(&evt); |
| 200 } | 200 } |
| 201 | 201 |
| 202 void SkOSWindow::onSetTitle(const char title[]) { | 202 void SkOSWindow::onSetTitle(const char title[]) { |
| 203 SDL_WM_SetCaption(title, NULL); | 203 SDL_WM_SetCaption(title, NULL); |
| 204 } | 204 } |
| 205 | 205 |
| 206 void SkOSWindow::onAddMenu(const SkOSMenu* sk_menu) {} | 206 void SkOSWindow::onAddMenu(const SkOSMenu* sk_menu) {} |
| 207 | 207 |
| 208 void SkOSWindow::setFullscreen(bool) {} |
| 209 |
| 210 void SkOSWindow::setVsync(bool) {} |
| 211 |
| 208 ////////////////////////////////////////////////////////////////////////////////
/////// | 212 ////////////////////////////////////////////////////////////////////////////////
/////// |
| 209 | 213 |
| 210 void SkEvent::SignalNonEmptyQueue() { | 214 void SkEvent::SignalNonEmptyQueue() { |
| 211 SkDebugf("-------- signal nonempty\n"); | 215 SkDebugf("-------- signal nonempty\n"); |
| 212 post_SkEvent_event(); | 216 post_SkEvent_event(); |
| 213 } | 217 } |
| 214 | 218 |
| 215 static Uint32 timer_callback(Uint32 interval) { | 219 static Uint32 timer_callback(Uint32 interval) { |
| 216 // SkDebugf("-------- timercallback %d\n", interval); | 220 // SkDebugf("-------- timercallback %d\n", interval); |
| 217 SkEvent::ServiceQueueTimer(); | 221 SkEvent::ServiceQueueTimer(); |
| 218 return 0; | 222 return 0; |
| 219 } | 223 } |
| 220 | 224 |
| 221 void SkEvent::SignalQueueTimer(SkMSec delay) | 225 void SkEvent::SignalQueueTimer(SkMSec delay) |
| 222 { | 226 { |
| 223 SDL_SetTimer(0, NULL); | 227 SDL_SetTimer(0, NULL); |
| 224 if (delay) { | 228 if (delay) { |
| 225 SDL_SetTimer(delay, timer_callback); | 229 SDL_SetTimer(delay, timer_callback); |
| 226 } | 230 } |
| 227 } | 231 } |
| OLD | NEW |