Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Issue 13543007: GLImage support for Android zero-copy pixel buffers (Closed)

Created:
7 years, 8 months ago by kaanb
Modified:
7 years, 8 months ago
CC:
chromium-reviews, sail+watch_chromium.org, klobag.chromium, epenner
Visibility:
Public.

Description

GLImage support for Android zero-copy pixel buffers BUG=175012 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192971

Patch Set 1 #

Patch Set 2 : Remove a TODO and remove pixel_buffer.h from gl.gyp #

Total comments: 57

Patch Set 3 : Incorporate code reviews #

Patch Set 4 : s/window/buffer/ #

Total comments: 1

Patch Set 5 : Rebase and fix the decoder used for GLSuppressor #

Total comments: 16

Patch Set 6 : Implement ReleaseTexImage #

Patch Set 7 : s/PixelBuffer/GpuMemoryBuffer/ #

Total comments: 6

Patch Set 8 : Fix minor indentation issue #

Total comments: 2

Patch Set 9 : More s/PixelBuffer/GpuMemoryBuffer/ #

Patch Set 10 : Incorporate code reviews #

Patch Set 11 : Check for GL errors in BindTexImage #

Patch Set 12 : Add braces around case statements when scoped_ptr<> is used within #

Patch Set 13 : Move gl_image_egl files to the Android specific section #

Patch Set 14 : Add expectations to the unittests for GetErrors() coming from the suppressor #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -16 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 2 chunks +14 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +15 lines, -0 lines 1 comment Download
M ui/gfx/native_widget_types.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gl/gl_image.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -1 line 0 comments Download
M ui/gl/gl_image_android.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +20 lines, -1 line 0 comments Download
A ui/gl/gl_image_egl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +37 lines, -0 lines 0 comments Download
A ui/gl/gl_image_egl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +84 lines, -0 lines 0 comments Download
M ui/gl/gl_image_glx.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_image_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +18 lines, -4 lines 0 comments Download
M ui/gl/gl_image_mac.cc View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -2 lines 0 comments Download
M ui/gl/gl_image_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
kaanb
I'm splitting up the big patch in https://codereview.chromium.org/12386027/ for landing.
7 years, 8 months ago (2013-04-04 22:53:43 UTC) #1
danakj
+reveman
7 years, 8 months ago (2013-04-04 22:57:36 UTC) #2
apatrick_chromium
https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_android.cc File ui/gl/gl_image_android.cc (right): https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_android.cc#newcode43 ui/gl/gl_image_android.cc:43: return NULL; nit: redundant https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_egl.cc File ui/gl/gl_image_egl.cc (right): https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_egl.cc#newcode46 ...
7 years, 8 months ago (2013-04-04 23:33:40 UTC) #3
reveman
https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image.h File ui/gl/gl_image.h (right): https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image.h#newcode40 ui/gl/gl_image.h:40: gfx::PixelBufferHandle window, const gfx::Size& size); "window" is not a ...
7 years, 8 months ago (2013-04-05 00:13:24 UTC) #4
no sievers
https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_egl.cc File ui/gl/gl_image_egl.cc (right): https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_egl.cc#newcode53 ui/gl/gl_image_egl.cc:53: EGLBoolean success = eglDestroyImageKHR( On 2013/04/04 23:33:40, apatrick_chromium wrote: ...
7 years, 8 months ago (2013-04-05 00:23:02 UTC) #5
apatrick_chromium
https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_egl.cc File ui/gl/gl_image_egl.cc (right): https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_egl.cc#newcode53 ui/gl/gl_image_egl.cc:53: EGLBoolean success = eglDestroyImageKHR( > That being said, what ...
7 years, 8 months ago (2013-04-05 00:38:04 UTC) #6
kaanb
https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_android.cc File ui/gl/gl_image_android.cc (right): https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_android.cc#newcode16 ui/gl/gl_image_android.cc:16: switch (GetGLImplementation()) { On 2013/04/05 00:13:24, David Reveman wrote: ...
7 years, 8 months ago (2013-04-05 01:02:52 UTC) #7
reveman
GLImage changes looks good, just move EGL_NATIVE_BUFFER_ANDROID to the right place https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_egl.cc File ui/gl/gl_image_egl.cc (right): ...
7 years, 8 months ago (2013-04-05 04:35:32 UTC) #8
kaanb
Should ReleaseTexImage() remain as NOTREACHED()? https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_egl.cc File ui/gl/gl_image_egl.cc (right): https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_egl.cc#newcode9 ui/gl/gl_image_egl.cc:9: #define EGL_NATIVE_BUFFER_EGL 0x3140 On ...
7 years, 8 months ago (2013-04-05 07:17:05 UTC) #9
no sievers
https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_egl.cc File ui/gl/gl_image_egl.cc (right): https://codereview.chromium.org/13543007/diff/12/ui/gl/gl_image_egl.cc#newcode53 ui/gl/gl_image_egl.cc:53: EGLBoolean success = eglDestroyImageKHR( On 2013/04/05 00:38:04, apatrick_chromium wrote: ...
7 years, 8 months ago (2013-04-05 16:55:57 UTC) #10
apatrick_chromium
LGTM with nits for my part. I defer sign-off to Daniel for correct ReleaseTexImage implementation. ...
7 years, 8 months ago (2013-04-05 17:35:58 UTC) #11
reveman
It makes sense to add a proper implementation of ReleaseTexImage even if we don't necessarily ...
7 years, 8 months ago (2013-04-05 17:58:06 UTC) #12
reveman
https://codereview.chromium.org/13543007/diff/21001/ui/gfx/native_widget_types.h File ui/gfx/native_widget_types.h (right): https://codereview.chromium.org/13543007/diff/21001/ui/gfx/native_widget_types.h#newcode324 ui/gfx/native_widget_types.h:324: typedef void* PixelBufferHandle; I'm not sure we should be ...
7 years, 8 months ago (2013-04-05 18:25:57 UTC) #13
no sievers
On 2013/04/05 18:25:57, David Reveman wrote: > https://codereview.chromium.org/13543007/diff/21001/ui/gfx/native_widget_types.h > File ui/gfx/native_widget_types.h (right): > > https://codereview.chromium.org/13543007/diff/21001/ui/gfx/native_widget_types.h#newcode324 ...
7 years, 8 months ago (2013-04-05 18:34:41 UTC) #14
reveman
On 2013/04/05 18:25:57, David Reveman wrote: > https://codereview.chromium.org/13543007/diff/21001/ui/gfx/native_widget_types.h > File ui/gfx/native_widget_types.h (right): > > https://codereview.chromium.org/13543007/diff/21001/ui/gfx/native_widget_types.h#newcode324 ...
7 years, 8 months ago (2013-04-05 18:36:38 UTC) #15
kaanb
https://codereview.chromium.org/13543007/diff/21001/ui/gfx/native_widget_types.h File ui/gfx/native_widget_types.h (right): https://codereview.chromium.org/13543007/diff/21001/ui/gfx/native_widget_types.h#newcode324 ui/gfx/native_widget_types.h:324: typedef void* PixelBufferHandle; On 2013/04/05 18:25:58, David Reveman wrote: ...
7 years, 8 months ago (2013-04-05 18:49:24 UTC) #16
epennerAtGoogle
Looking good! Just a couple random notes: - The API can look like GL (map/unmap), ...
7 years, 8 months ago (2013-04-05 19:01:30 UTC) #17
kaanb
7 years, 8 months ago (2013-04-05 19:49:41 UTC) #18
kaanb
Ok, not sure why the latest mail came out empty. Is everybody okay with GpuMemoryBuffer? ...
7 years, 8 months ago (2013-04-05 19:55:27 UTC) #19
epennerAtGoogle
On 2013/04/05 19:55:27, kaanb wrote: > Ok, not sure why the latest mail came out ...
7 years, 8 months ago (2013-04-05 20:51:26 UTC) #20
kaanb
On 2013/04/05 20:51:26, epennerAtGoogle wrote: > On 2013/04/05 19:55:27, kaanb wrote: > > Ok, not ...
7 years, 8 months ago (2013-04-05 21:18:35 UTC) #21
epennerAtGoogle
I like GpuMemoryBuffer. No particular reason ;) Hmm, I guess 'buffer' could be anything, like ...
7 years, 8 months ago (2013-04-05 21:28:12 UTC) #22
reveman
GpuMemoryBuffer sgtm.
7 years, 8 months ago (2013-04-05 21:29:42 UTC) #23
kaanb1
GpuMemoryBuffer for the win. I've done s/PixelBuffer/GpuMemoryBuffer/ everywhere. I'd prefer to tackle fixing the gyp ...
7 years, 8 months ago (2013-04-05 22:12:46 UTC) #24
no sievers
lgtm, just a few nits.
7 years, 8 months ago (2013-04-05 22:16:24 UTC) #25
no sievers
https://codereview.chromium.org/13543007/diff/30005/ui/gl/gl_image.h File ui/gl/gl_image.h (right): https://codereview.chromium.org/13543007/diff/30005/ui/gl/gl_image.h#newcode40 ui/gl/gl_image.h:40: gfx::GpuMemoryBufferHandle buffer, const gfx::Size& size); nit: gfx::Size by value ...
7 years, 8 months ago (2013-04-05 22:16:34 UTC) #26
kaanb
adding sky@ as reviewer for ui/gfx/native_widget_types.h per danakj@'s suggestion
7 years, 8 months ago (2013-04-06 00:33:20 UTC) #27
sky
LGTM
7 years, 8 months ago (2013-04-08 14:45:09 UTC) #28
kaanb
Thanks for the reviews, I'll try to commit. https://codereview.chromium.org/13543007/diff/30005/ui/gl/gl_image.h File ui/gl/gl_image.h (right): https://codereview.chromium.org/13543007/diff/30005/ui/gl/gl_image.h#newcode40 ui/gl/gl_image.h:40: gfx::GpuMemoryBufferHandle ...
7 years, 8 months ago (2013-04-08 15:48:11 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaanb@chromium.org/13543007/44001
7 years, 8 months ago (2013-04-08 15:48:31 UTC) #30
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-08 15:56:56 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaanb@chromium.org/13543007/55002
7 years, 8 months ago (2013-04-08 17:29:36 UTC) #32
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=115908
7 years, 8 months ago (2013-04-08 18:09:50 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaanb@chromium.org/13543007/57003
7 years, 8 months ago (2013-04-08 19:25:47 UTC) #34
no sievers
https://codereview.chromium.org/13543007/diff/57003/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc File gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc (right): https://codereview.chromium.org/13543007/diff/57003/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc#newcode7919 gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc:7919: .WillOnce(Return(GL_NO_ERROR)) EXPECT_CALL(*gl_, GetError()) .WillOnce(Return(GL_NO_ERROR)) .WillOnce(Return(GL_NO_ERROR)) .RetiresOnSaturation(); here and below
7 years, 8 months ago (2013-04-08 20:02:52 UTC) #35
commit-bot: I haz the power
7 years, 8 months ago (2013-04-09 00:41:09 UTC) #36
Message was sent while issue was closed.
Change committed as 192971

Powered by Google App Engine
This is Rietveld 408576698