Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(903)

Issue 2036044: Replaces swap chain lazily when the swap interval is changed....

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by apatrick1
Modified:
13 years, 8 months ago
Reviewers:
dgkoch
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Replaces swap chain lazily when the swap interval is changed. It does not appear to be possible to pass a presentation interval to Present() or change it after creating the swap chain, short of calling Reset(). I decided to try fixing it by replacing the swap chain under the same conditions as a window resize. I tested it with a modified version of the simple vertex shader sample, passing various values to eglSwapInterval. My reading of the EGL spec might be wrong but I believe the interval state should be associated with the surface bound to the current context, rather than the display.

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -38 lines) Patch
M src/libEGL/Display.h View 1 2 2 chunks +3 lines, -6 lines 0 comments Download
M src/libEGL/Display.cpp View 1 2 3 chunks +5 lines, -25 lines 0 comments Download
M src/libEGL/Surface.h View 1 2 3 chunks +8 lines, -1 line 0 comments Download
M src/libEGL/Surface.cpp View 1 2 9 chunks +40 lines, -5 lines 0 comments Download
M src/libEGL/libEGL.cpp View 1 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 4
apatrick1
Daniel, I think I found a bug in eglSwapInterval. Can you take a look at ...
13 years, 8 months ago (2010-08-31 00:40:10 UTC) #1
dgkoch
Hi Al, I concur with your assessment. Your changes look good, my only comments are ...
13 years, 8 months ago (2010-08-31 13:34:53 UTC) #2
apatrick1
Thanks for the feedback. Fixes uploaded. Al
13 years, 8 months ago (2010-08-31 18:40:09 UTC) #3
dgkoch
13 years, 8 months ago (2010-08-31 18:45:40 UTC) #4
looks good.

Daniel
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b