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

Issue 4291066: Add support for eglBindTexImage and eglReleaseTexImage (Closed)

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

Description

With this patch we can bind pbuffers as textures. Once we add support for using a sharing handle to create a pbuffer we can use this to allow us to use it as a texture as well. BUG=129 TEST=modified Simple_Texture2D works

Patch Set 1 #

Total comments: 22

Patch Set 2 : fix configs and style #

Total comments: 27

Patch Set 3 : Remove extra configs, move stuff to texture2d #

Total comments: 2

Patch Set 4 : add more checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -23 lines) Patch
M src/libEGL/Config.cpp View 1 2 4 chunks +4 lines, -2 lines 0 comments Download
M src/libEGL/Display.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M src/libEGL/Display.cpp View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M src/libEGL/Surface.h View 1 2 4 chunks +17 lines, -3 lines 0 comments Download
M src/libEGL/Surface.cpp View 1 2 7 chunks +49 lines, -1 line 0 comments Download
M src/libEGL/libEGL.cpp View 1 2 3 6 chunks +102 lines, -6 lines 0 comments Download
M src/libGLESv2/Context.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/libGLESv2/Texture.h View 1 2 3 chunks +9 lines, -1 line 0 comments Download
M src/libGLESv2/Texture.cpp View 1 2 8 chunks +54 lines, -6 lines 0 comments Download
M src/libGLESv2/libGLESv2.cpp View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
M src/libGLESv2/libGLESv2.def View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 21
John Bauman
13 years, 5 months ago (2011-03-24 06:36:12 UTC) #1
apatrick1
Good stuff! A few thoughts below. I'll add Daniel as a reviewer as well. http://codereview.appspot.com/4291066/diff/1/src/libEGL/Display.cpp ...
13 years, 5 months ago (2011-03-24 20:15:24 UTC) #2
John Bauman
Thanks for looking at this. http://codereview.appspot.com/4291066/diff/1/src/libEGL/Display.cpp File src/libEGL/Display.cpp (right): http://codereview.appspot.com/4291066/diff/1/src/libEGL/Display.cpp#newcode415 src/libEGL/Display.cpp:415: Surface *Display::createOffscreenSurface(int width, int ...
13 years, 5 months ago (2011-03-25 00:02:52 UTC) #3
John Bauman
Fixed a bunch of style issues, added some extra checks, and added some new egl ...
13 years, 5 months ago (2011-03-25 02:39:37 UTC) #4
apatrick1
Looks good to me but you surpass my EGL-fu so I will hand over sign-off ...
13 years, 5 months ago (2011-03-25 18:40:05 UTC) #5
John Bauman
http://codereview.appspot.com/4291066/diff/8003/src/libEGL/Config.cpp File src/libEGL/Config.cpp (right): http://codereview.appspot.com/4291066/diff/8003/src/libEGL/Config.cpp#newcode261 src/libEGL/Config.cpp:261: SORT(mBindToTextureRGBA); On 2011/03/25 18:40:05, apatrick1 wrote: > Look at ...
13 years, 5 months ago (2011-03-25 22:21:31 UTC) #6
dgkoch
Note that there have been changes to Texture.h/.cpp since this patch was generated, and thus ...
13 years, 5 months ago (2011-03-29 04:33:26 UTC) #7
John Bauman
http://codereview.appspot.com/4291066/diff/8003/src/libEGL/Config.cpp File src/libEGL/Config.cpp (right): http://codereview.appspot.com/4291066/diff/8003/src/libEGL/Config.cpp#newcode174 src/libEGL/Config.cpp:174: mSurfaceType = asTexture ? EGL_PBUFFER_BIT : (EGL_PBUFFER_BIT | EGL_WINDOW_BIT ...
13 years, 5 months ago (2011-03-29 05:09:30 UTC) #8
dgkoch
http://codereview.appspot.com/4291066/diff/8003/src/libEGL/Config.cpp File src/libEGL/Config.cpp (right): http://codereview.appspot.com/4291066/diff/8003/src/libEGL/Config.cpp#newcode174 src/libEGL/Config.cpp:174: mSurfaceType = asTexture ? EGL_PBUFFER_BIT : (EGL_PBUFFER_BIT | EGL_WINDOW_BIT ...
13 years, 5 months ago (2011-03-29 12:48:51 UTC) #9
John Bauman
http://codereview.appspot.com/4291066/diff/8003/src/libEGL/Config.cpp File src/libEGL/Config.cpp (right): http://codereview.appspot.com/4291066/diff/8003/src/libEGL/Config.cpp#newcode174 src/libEGL/Config.cpp:174: mSurfaceType = asTexture ? EGL_PBUFFER_BIT : (EGL_PBUFFER_BIT | EGL_WINDOW_BIT ...
13 years, 5 months ago (2011-03-29 13:06:51 UTC) #10
John Bauman
http://codereview.appspot.com/4291066/diff/8003/src/libGLESv2/Texture.cpp File src/libGLESv2/Texture.cpp (right): http://codereview.appspot.com/4291066/diff/8003/src/libGLESv2/Texture.cpp#newcode1328 src/libGLESv2/Texture.cpp:1328: redefineTexture(0, format, surface->getWidth(), surface->getHeight(), GL_UNSIGNED_BYTE, true); On 2011/03/29 04:33:26, ...
13 years, 5 months ago (2011-03-29 15:10:31 UTC) #11
John Bauman
Get rid of the unnecessary new configs, move all of the Texture code into Texture2D, ...
13 years, 5 months ago (2011-03-29 15:50:20 UTC) #12
dgkoch
Hi John, Almost there… a couple more egl errors to check, and that's all I ...
13 years, 5 months ago (2011-03-29 18:35:32 UTC) #13
John Bauman
13 years, 5 months ago (2011-03-29 20:36:29 UTC) #14
nicolas
This generally looks good to me. The redefineTexture() behavior isn't entirely correct for all situations, ...
13 years, 5 months ago (2011-03-30 15:47:53 UTC) #15
dgkoch
LGTM. Don't forget to update src/common/version.h when you land this.
13 years, 5 months ago (2011-03-30 16:13:25 UTC) #16
John Bauman
Thanks for the reviews. Now to get commit access (or get someone else to commit ...
13 years, 5 months ago (2011-03-30 18:52:37 UTC) #17
dgkoch
On 2011/03/30 18:52:37, John Bauman wrote: > Thanks for the reviews. Now to get commit ...
13 years, 5 months ago (2011-03-30 19:46:19 UTC) #18
apatrick
Excellent work jbauman. You landed running. Very impressive. On Wed, Mar 30, 2011 at 12:46 ...
13 years, 5 months ago (2011-03-30 20:39:07 UTC) #19
apatrick
I have a change to build_angle.gyp that will automatically generate the subversion revision number. I ...
13 years, 5 months ago (2011-03-30 20:39:59 UTC) #20
dgkoch
13 years, 5 months ago (2011-03-30 20:45:25 UTC) #21
On 2011-03-30, at 4:38 PM, Alastair Patrick wrote:

> I have a change to build_angle.gyp that will automatically generate the
subversion revision number. I will land it soon.
> 


Nice!  looking forward to having that in.

Daniel

Sign in to reply to this message.

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