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

Unified Diff: src/views/unix/skia_unix.cpp

Issue 16337012: Smallest possible desktop application that uses Skia to render stuff. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix speed hiccups in Windows Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: src/views/unix/skia_unix.cpp
diff --git a/src/views/unix/skia_unix.cpp b/src/views/unix/skia_unix.cpp
index 108e9ac20688e05ccdfe278990b0ba4d50d2f0b5..3d1e0ee69eae4d00929adcf26c6e3b36c9297812 100644
--- a/src/views/unix/skia_unix.cpp
+++ b/src/views/unix/skia_unix.cpp
@@ -26,14 +26,14 @@ static void catch_alarm(int sig)
int main(int argc, char** argv){
signal(SIGALRM, catch_alarm);
+ // Start normal Skia sequence
caryclark 2013/06/17 15:08:39 A comment as to why the init() needs to be called
+ application_init();
+
gWindow = create_sk_window(NULL, argc, argv);
// drain any events that occurred before gWindow was assigned.
while (SkEvent::ProcessEvent());
- // Start normal Skia sequence
- application_init();
-
gWindow->loop();
delete gWindow;
« experimental/SkiaExamples/HelloSkiaExample.cpp ('K') | « src/views/mac/SkSampleNSView.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698