-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use SDL for replay. #88
Conversation
I'm pretty sure we don't care about X11 anything once we get the SDL paths working. That's our current line of thinking at least... |
OK good - just thought I'd check. On Wed, Jun 18, 2014 at 2:02 PM, Michael Sartain notifications@github.com
|
Lawrence is right. There's a couple spots where I can just remove the X11 code instead of ifdef'ing it out. Working on that now. Should have it done in a few minutes. The only caveat is the glxUseXfont stuff that I'm not sure how to work around with the SDL. I need to look at that more carefully. I left it as a TODO for now... hopefully that doesn't ruin anybody's day. |
If it's something not in SDL that makes sense to get into SDL, then we should try to do an official SDL patch. Checking with Sam / Ryan makes the most sense on those. Otherwise we'll have to use SDL_GetWindowWMInfo() and have some code in there to handle the different platforms - something like I did in glxspheres.c. Maybe we should get this type of thing into vogl_port though? |
Talk directly to the device through the SDL? |
Yea - I'm talking about implementing vogl_replay_window::is_direct() and the font cache stuff by either getting a patch into SDL or putting the functionality into our vogl_port using SDL_GetWIndowWMInfo() and the native handles. Option #2 probably makes the most sense right now? |
Alright. Do you want me to get that in this branch? Also I removed more X11/GLX code that Lawrence noticed. |
Would be nice to have a TODO comment in the is_direct() call, but otherwise no - doing it in another checkin is fine. Thanks Jeremy! |
I'm also getting a ton of warnings on Linux when building with Clang 3.4.1 (in the vogl chroot). Are you seeing this as well? |
If you're referring to all the SDL-Doxygen warnings, then yeah I see those too. I think it might be something special clang is doing. It's on my todo list to silence those. It's coming directly from the SDL source. |
Turns out Clang can parse Doxygen-style comments with the |
#else | ||
# error "Need to handle *GetCurrentContext for this platform." | ||
#error "Need to handle *GetCurrentContext for this platform." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a line-attached comment for testing purposes.
This change uses the SDL to create a window and handle events for the trace replayer (command line and editor). This change has a pervasive impact so any code reviews would be appreciated.