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

Issue 5345050: Implemented EGL_NV_post_sub_buffer. (Closed)

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

Description

Implemented EGL_NV_post_sub_buffer. The change to the sample is just to demonstrate how I tested it. I won't check in the stuff under samples/. It's not clear to me what eglPostSubBufferNV should do if EGL_POST_SUB_BUFFER_SUPPORTED_NV is false. At the moment it fails silently as though it was called on the wrong surface type: "If <surface> is a back-buffered surface, then the requested portion of the color buffer is copied to the native window associated with that surface. If <surface> is a single-buffered window, pixmap, or pbuffer surface, eglSwapBuffers and eglPostSubBufferNV have no effect." Committed: http://code.google.com/p/angleproject/source/detail?r=902

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+622 lines, -24 lines) Patch
M samples/build_samples.gyp View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M samples/gles2_book/Common/esUtil.h View 1 2 3 4 chunks +12 lines, -2 lines 0 comments Download
M samples/gles2_book/Common/esUtil.c View 1 2 3 8 chunks +22 lines, -6 lines 0 comments Download
A samples/gles2_book/PostSubBuffer/PostSubBuffer.c View 1 2 3 1 chunk +204 lines, -0 lines 0 comments Download
A samples/gles2_book/PostSubBuffer/PostSubBuffer.vcproj View 1 2 1 chunk +183 lines, -0 lines 0 comments Download
M samples/samples.sln View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M src/libEGL/Display.cpp View 1 2 5 chunks +12 lines, -4 lines 0 comments Download
M src/libEGL/Surface.h View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M src/libEGL/Surface.cpp View 1 2 10 chunks +125 lines, -11 lines 4 comments Download
M src/libEGL/libEGL.cpp View 1 2 3 chunks +41 lines, -0 lines 0 comments Download

Messages

Total messages: 9
apatrick1
Hi Daniel. Please review when you get a chance. Thanks, Al
13 years ago (2011-11-07 23:58:50 UTC) #1
dgkoch
A few issues, but largely looks good. BTW for the samples, instead of making throw ...
13 years ago (2011-11-16 21:43:53 UTC) #2
dgkoch
http://codereview.appspot.com/5345050/diff/3001/samples/gles2_book/MipMap2D/MipMap2D.c File samples/gles2_book/MipMap2D/MipMap2D.c (right): http://codereview.appspot.com/5345050/diff/3001/samples/gles2_book/MipMap2D/MipMap2D.c#newcode314 samples/gles2_book/MipMap2D/MipMap2D.c:314: eglPostSubBufferNV = (PFNEGLPOSTSUBBUFFERNVPROC) eglGetProcAddress("eglPostSubBufferNV"); btw it's unnecessary to call ...
13 years ago (2011-11-16 21:44:55 UTC) #3
apatrick1
Sure, I find the samples a joy to work with. All done I think.
13 years ago (2011-11-16 22:38:37 UTC) #4
dgkoch
LGTM, other than the issue in the samples. http://codereview.appspot.com/5345050/diff/12001/samples/gles2_book/Common/esUtil.c File samples/gles2_book/Common/esUtil.c (right): http://codereview.appspot.com/5345050/diff/12001/samples/gles2_book/Common/esUtil.c#newcode85 samples/gles2_book/Common/esUtil.c:85: surface ...
13 years ago (2011-11-18 18:47:17 UTC) #5
apatrick1
Done.
13 years ago (2011-11-22 19:42:38 UTC) #6
dgkoch
one minor item. LGTM with that fixed. http://codereview.appspot.com/5345050/diff/17002/src/libEGL/Surface.cpp File src/libEGL/Surface.cpp (right): http://codereview.appspot.com/5345050/diff/17002/src/libEGL/Surface.cpp#newcode514 src/libEGL/Surface.cpp:514: x, mHeight ...
13 years ago (2011-11-23 03:39:20 UTC) #7
ramasamykalai
just for testing http://codereview.appspot.com/5345050/diff/17002/src/libEGL/Surface.cpp File src/libEGL/Surface.cpp (right): http://codereview.appspot.com/5345050/diff/17002/src/libEGL/Surface.cpp#newcode310 src/libEGL/Surface.cpp:310: if (rect.right > static_cast<LONG>(presentParameters.BackBufferWidth)) why const ...
13 years ago (2011-11-23 08:49:34 UTC) #8
apatrick1
13 years ago (2011-11-23 17:18:43 UTC) #9
http://codereview.appspot.com/5345050/diff/17002/src/libEGL/Surface.cpp
File src/libEGL/Surface.cpp (right):

http://codereview.appspot.com/5345050/diff/17002/src/libEGL/Surface.cpp#newco...
src/libEGL/Surface.cpp:310: if (rect.right >
static_cast<LONG>(presentParameters.BackBufferWidth))
On 2011/11/23 08:49:35, ramasamykalai wrote:
> why const ?

I don't understand the question.

http://codereview.appspot.com/5345050/diff/17002/src/libEGL/Surface.cpp#newco...
src/libEGL/Surface.cpp:514: x, mHeight - y - height,
On 2011/11/23 03:39:20, dgkoch wrote:
> Should probably be using transformPixelRect() here to handle the RECT
flipping.
> I should have caught that earlier :-0

Fair point.
Sign in to reply to this message.

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