Commit Graph

4013 Commits

Author SHA1 Message Date
David Capello
47f493df78 Fix window resize on Skia/OSX 2015-10-13 18:49:56 -03:00
David Capello
0a1f492c24 Implement SkiaSurface::setDrawMode() 2015-10-13 18:44:31 -03:00
David Capello
b8f5a0236c Add she::is_key_pressed() impl on Skia/OSX port 2015-10-13 17:12:51 -03:00
David Capello
0508b6fd67 Avoid beeps on keyDown/Up on Skia/OSX port 2015-10-13 17:11:45 -03:00
David Capello
d4e37218e2 Show errors on stderr on Skia port 2015-10-13 17:11:23 -03:00
David Capello
07900c8e48 Enable line that doesn't crash anymore on newer version of Skia 2015-10-13 17:10:59 -03:00
David Capello
4379c6793e Minor changes to Skia/OSX #includes 2015-10-13 16:55:29 -03:00
David Capello
15f4a16294 Add support for right and middle click on Skia/OSX port 2015-10-13 16:02:18 -03:00
David Capello
f818dbc692 Add keyDown/keyUp events to Skia/OSX port 2015-10-13 15:50:25 -03:00
David Capello
9ef3e1e134 Add --list-tags and --list-layers options
Related to #807
2015-10-13 13:23:45 -03:00
David Capello
615e369cc4 Fix closing multiple tabs with middle-click without moving mouse (fix #826) 2015-10-13 12:13:13 -03:00
David Capello
8c97bb1ffa Fix loading gray color (fix #828) 2015-10-13 11:48:08 -03:00
David Capello
250de2257c Complete clock_value() impl for Skia/OSX port w/msecs precision 2015-10-10 13:02:32 -03:00
David Capello
1d69edcced Fix to_skia(gfx::Color) impl 2015-10-10 12:15:40 -03:00
David Capello
7a00a0bfca Add missing #if/endif SK_SUPPORT_GPU 2015-10-09 19:48:31 -03:00
David Capello
324953b2fc Minor rename in skia_window_win.cpp 2015-10-09 19:48:07 -03:00
David Capello
247a8a7174 Make progress in Skia/OSX port
It includes:
- Use ARC instead of GC (compiling with -fobjc-arc flag)
- Implement GLContextCGL::getStencilBits/getSampleCount functions
- Modify OSXEventQueue to avoid creating a thread for app_main()
- NativeDialogs class can be compiled in 10.4 (with GC) and 10.6 (with
ARC)
- Split she/osx/view.h into view.h and view.mm
- get_local_mouse_pos() takes care of the window scale
- Temporal she::clock_value() impl
- Working SkiaWindow with Quartz and some progress with OpenGL
2015-10-09 19:45:39 -03:00
David Capello
f38fd4eb5e Refactor Skia/OSX port
- Moved OSXWindowDelegate to she/osx/window_delegate.h
- Renamed CloseDelegate to OSXWindowImpl
- Added m_ prefix to OSXWindow fields
2015-10-07 17:56:30 -03:00
David Capello
7bde73e2a3 Minor change in skia_window_osx.mm 2015-10-07 17:46:37 -03:00
David Capello
416951f592 Avoid crash when Cmd+Q is pressed on Skia/OSX port 2015-10-07 17:46:04 -03:00
David Capello
8edb0c0a67 Move OSXView to its own file
This new OSXView contains some basic mouse event handlers to generate
some she events.
2015-10-07 16:10:52 -03:00
David Capello
0db4c1c664 Add m_ prefix to OSXWindowDelegate fields 2015-10-07 16:07:14 -03:00
David Capello
6e5271848c Fix crash on resize on Skia/OSX port
Keep NSWindowDelegate reference alive in OSXWindow
2015-10-07 10:43:53 -03:00
David Capello
e3f0688945 Change GPU acceleration setting before the display scale 2015-10-06 17:13:50 -03:00
David Capello
165c7ccca4 Try to initialize the display with GPU acceleration and then without it 2015-10-06 17:04:03 -03:00
David Capello
f98c4df79a Rename SKIA_OPENGL_LIBRARY variable in src/she/CMakeLists.txt 2015-10-06 16:39:56 -03:00
David Capello
066a8dffcc Replace SkGLContext with our own GLContext class 2015-10-06 16:37:01 -03:00
David Capello
9e44818cd8 Move window size fields to OSXWindow 2015-10-06 11:18:21 -03:00
David Capello
580c900fb2 Add SkiaWindow::handle() impl on Skia/OSX port 2015-10-06 11:12:41 -03:00
David Capello
7118251f83 Create NSWindow in main thread/queue on Skia/OSX port
We cannot create/handle UI controls outside the main thread.
2015-10-06 10:57:56 -03:00
David Capello
69bb8fef9b Add flag to improve linking times when we use the Skia port 2015-10-05 21:19:11 -03:00
David Capello
03c0367827 Add option to disable GPU acceleration 2015-10-05 21:18:42 -03:00
David Capello
7434dd053a Avoid beep when Alt+char is pressed on Skia/Win port 2015-10-05 21:16:27 -03:00
David Capello
2bc6a76fd5 Minor change in she/CMakeLists.txt
This was done in case we need to use #include <GLES2/gl.2> in the future,
as this header file is in angle2 repository.
2015-10-05 17:42:07 -03:00
David Capello
9a8b7cd741 Fix UI rendering on Skia/Win port w/GPU when screen scaling >= 200%
If screen scaling is not 1:1, we create a SkSurface using a off-screen
texture, everything is painted there and then a blit to the screen
framebuffer is done in SkiaWindow::paintImpl()
2015-10-05 17:40:55 -03:00
David Capello
cc8b8cf52e Fix SkiaSurface::blitTo() with GPU and without GPU acceleration 2015-10-02 17:14:52 -03:00
David Capello
bb826c681b Add SkiaSurface::clear() impl 2015-10-02 17:13:49 -03:00
David Capello
6d1348c721 Fix SkiaSurface::drawRect() bounds 2015-10-02 16:24:58 -03:00
David Capello
7a747fc144 Add missing "override" to SkiaSurface::setDrawMode() 2015-10-02 12:12:57 -03:00
David Capello
e732297cfb Update Skia port to latest Skia version 2015-10-02 12:12:37 -03:00
David Capello
e8fde930bd Fix EventQueue::instance() for Skia port 2015-10-02 12:08:38 -03:00
David Capello
5033713430 Fix window resize on Skia/Win port 2015-10-02 11:24:04 -03:00
David Capello
311e90c58f Fix WinWindow::updateWindow() when m_scale > 1 2015-10-02 11:08:08 -03:00
David Capello
5d9b7475e0 Add missing #include files 2015-10-02 10:54:15 -03:00
David Capello
be9e0255b6 Fix bug painting Timeline cels in some special cases 2015-10-01 11:52:32 -03:00
David Capello
e4a71b9065 Show she::DisplayCreationException message when she::System::createDisplay() fails 2015-10-01 10:54:47 -03:00
David Capello
f54ba2c59d Fix Skia port to new SkiaDisplay::flip() impl 2015-09-30 19:58:30 -03:00
David Capello
4fbbd75599 Move Skia libraries as she library dependencies 2015-09-30 19:58:04 -03:00
David Capello
6210e0d85c Change she::Capabilities to a enum class 2015-09-30 16:45:04 -03:00
David Capello
4f5a89791d Fix link in README.md file 2015-09-30 16:40:47 -03:00