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

Issue 1974163003: Expose GpuMemoryBufferId through glGetImageivCHROMIUM. (Closed)

Created:
4 years, 7 months ago by erikchen
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ajuma+watch-canvas_chromium.org, ben+mojo_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin (slow to review), dshwang, drott+blinkwatch_chromium.org, krit, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, f(malita), halliwell+watch_chromium.org, jbroman, Justin Novosad, kinuko+watch, lcwu+watch_chromium.org, pdr+graphicswatchlist_chromium.org, piman+watch_chromium.org, qsr+mojo_chromium.org, rjkroege, rwlbuis, Stephen Chennney, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose GpuMemoryBufferId through glGetImageivCHROMIUM. WebKit widgets that provide textures to TextureLayer need to also provide the GpuMemoryBufferId if the texture is backed by a GpuMemoryBuffer. This CL modifies the CHROMIUM Image extension to allow the GpuMemoryBuffer id to be obtained by a new function glGetImageivCHROMIUM. BUG=608026 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/11c5d208606dbce8660ad7f5e41e0aa770655c82 Cr-Commit-Position: refs/heads/master@{#396510}

Patch Set 1 #

Patch Set 2 : Add a header. #

Patch Set 3 : #

Patch Set 4 : Switch to GetIntegerv #

Patch Set 5 : Fix test. #

Patch Set 6 : Comments from piman. #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 6

Patch Set 11 : Comments from piman. #

Total comments: 2

Patch Set 12 : Comments from piman. #

Total comments: 2

Patch Set 13 : Fix test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -4 lines) Patch
M cc/test/test_gles2_interface.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/test_gles2_interface.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M components/mus/gles2/command_buffer_local.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/mus/gles2/command_buffer_local.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M components/mus/public/cpp/lib/command_buffer_client_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/mus/public/cpp/lib/command_buffer_client_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/GLES2/extensions/CHROMIUM/CHROMIUM_gpu_memory_buffer_image.txt View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -0 lines 0 comments Download
M gpu/GLES2/gl2chromium_autogen.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M gpu/GLES2/gl2extchromium.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/client_test_helper.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_c_lib_autogen.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +15 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_autogen.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_autogen.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_autogen.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gpu_control.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/cmd_buffer_functions.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 4 5 6 7 8 3 chunks +15 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 2 3 4 5 6 7 8 9 5 chunks +19 lines, -1 line 0 comments Download
M gpu/gles2_conform_support/egl/context.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M gpu/gles2_conform_support/egl/context.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M gpu/ipc/client/command_buffer_proxy_impl.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M gpu/ipc/client/command_buffer_proxy_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsTypes3D.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 86 (38 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974163003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974163003/1
4 years, 7 months ago (2016-05-13 21:11:40 UTC) #5
erikchen
reveman: Please review. I'm not super pleased about modifying CreateGpuMemoryBufferImageCHROMIUM, but the alternative would be ...
4 years, 7 months ago (2016-05-13 21:15:20 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/66385)
4 years, 7 months ago (2016-05-13 21:30:45 UTC) #10
erikchen
On 2016/05/13 21:30:45, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 7 months ago (2016-05-16 23:58:58 UTC) #11
reveman
hm, I think it might be time to remove CHROMIUM_gpu_memory_buffer_image and instead expose the GpuMemoryBuffer ...
4 years, 7 months ago (2016-05-17 13:32:16 UTC) #12
erikchen
On 2016/05/17 13:32:16, reveman wrote: > hm, I think it might be time to remove ...
4 years, 7 months ago (2016-05-17 16:42:04 UTC) #13
erikchen
reveman: Ping?
4 years, 7 months ago (2016-05-20 23:08:56 UTC) #14
reveman
I think it would be a bit more GL-ish with an enum value for the ...
4 years, 7 months ago (2016-05-23 17:39:25 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974163003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974163003/40001
4 years, 7 months ago (2016-05-23 17:43:30 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/9923) ios-device-gn on ...
4 years, 7 months ago (2016-05-23 17:45:32 UTC) #19
erikchen
piman: Do you prefer the current interface, or reveman's suggestion in #15? I'm happy to ...
4 years, 7 months ago (2016-05-23 17:46:32 UTC) #21
piman
On 2016/05/23 17:46:32, erikchen wrote: > piman: Do you prefer the current interface, or reveman's ...
4 years, 7 months ago (2016-05-23 17:52:24 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974163003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974163003/60001
4 years, 7 months ago (2016-05-25 00:18:03 UTC) #24
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-25 01:30:58 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974163003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974163003/80001
4 years, 7 months ago (2016-05-25 01:38:26 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-25 03:15:28 UTC) #31
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-25 03:15:39 UTC) #32
erikchen
piman: PTAL
4 years, 7 months ago (2016-05-25 17:27:51 UTC) #33
piman
On 2016/05/25 17:27:51, erikchen wrote: > piman: PTAL Oh, hmm I don't think this is ...
4 years, 7 months ago (2016-05-25 18:35:57 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974163003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974163003/100001
4 years, 7 months ago (2016-05-26 00:50:35 UTC) #36
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/206737) linux_chromium_chromeos_ozone_rel_ng on ...
4 years, 7 months ago (2016-05-26 01:12:56 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974163003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974163003/120001
4 years, 7 months ago (2016-05-26 01:28:20 UTC) #42
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/234196)
4 years, 7 months ago (2016-05-26 01:46:51 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974163003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974163003/140001
4 years, 7 months ago (2016-05-26 05:10:28 UTC) #46
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/100605)
4 years, 7 months ago (2016-05-26 05:33:07 UTC) #48
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974163003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974163003/160001
4 years, 7 months ago (2016-05-26 17:53:20 UTC) #50
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/143854) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 7 months ago (2016-05-26 17:58:59 UTC) #52
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974163003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974163003/180001
4 years, 7 months ago (2016-05-26 19:44:16 UTC) #54
erikchen
piman: PTAL
4 years, 7 months ago (2016-05-26 19:45:01 UTC) #55
piman
https://codereview.chromium.org/1974163003/diff/180001/components/mus/gles2/command_buffer_local.cc File components/mus/gles2/command_buffer_local.cc (right): https://codereview.chromium.org/1974163003/diff/180001/components/mus/gles2/command_buffer_local.cc#newcode313 components/mus/gles2/command_buffer_local.cc:313: NOTIMPLEMENTED(); Can you add a TODO? https://codereview.chromium.org/1974163003/diff/180001/components/mus/public/cpp/lib/command_buffer_client_impl.cc File components/mus/public/cpp/lib/command_buffer_client_impl.cc ...
4 years, 7 months ago (2016-05-26 21:16:07 UTC) #56
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-26 21:40:33 UTC) #57
erikchen
https://codereview.chromium.org/1974163003/diff/180001/components/mus/gles2/command_buffer_local.cc File components/mus/gles2/command_buffer_local.cc (right): https://codereview.chromium.org/1974163003/diff/180001/components/mus/gles2/command_buffer_local.cc#newcode313 components/mus/gles2/command_buffer_local.cc:313: NOTIMPLEMENTED(); On 2016/05/26 21:16:07, piman wrote: > Can you ...
4 years, 7 months ago (2016-05-26 21:41:27 UTC) #58
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974163003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974163003/200001
4 years, 7 months ago (2016-05-26 21:42:03 UTC) #60
piman
lgtm https://codereview.chromium.org/1974163003/diff/200001/components/mus/gles2/command_buffer_local.cc File components/mus/gles2/command_buffer_local.cc (right): https://codereview.chromium.org/1974163003/diff/200001/components/mus/gles2/command_buffer_local.cc#newcode313 components/mus/gles2/command_buffer_local.cc:313: // TODO: Once this class supports IOSurface GpuMemoryBuffer ...
4 years, 7 months ago (2016-05-26 21:51:03 UTC) #61
erikchen
https://codereview.chromium.org/1974163003/diff/200001/components/mus/gles2/command_buffer_local.cc File components/mus/gles2/command_buffer_local.cc (right): https://codereview.chromium.org/1974163003/diff/200001/components/mus/gles2/command_buffer_local.cc#newcode313 components/mus/gles2/command_buffer_local.cc:313: // TODO: Once this class supports IOSurface GpuMemoryBuffer backed ...
4 years, 7 months ago (2016-05-26 22:00:17 UTC) #62
commit-bot: I haz the power
Dry run: None
4 years, 7 months ago (2016-05-26 22:00:44 UTC) #63
erikchen
sky: Please review components/mus kbr: Please review third_party/WebKit/Source/platform/graphics junov: Please review third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.*
4 years, 7 months ago (2016-05-26 22:01:33 UTC) #65
sky
LGTM
4 years, 7 months ago (2016-05-26 22:38:29 UTC) #67
erikchen
Not sure how kbr@ got lost in my first round of reviewers. kbr: Please review ...
4 years, 7 months ago (2016-05-26 23:28:12 UTC) #69
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974163003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974163003/220001
4 years, 7 months ago (2016-05-26 23:39:24 UTC) #71
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/168384)
4 years, 7 months ago (2016-05-27 00:27:30 UTC) #73
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974163003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974163003/240001
4 years, 7 months ago (2016-05-27 00:46:43 UTC) #75
Ken Russell (switch to Gerrit)
lgtm given others have reviewed this; couple of questions about the behavior. https://codereview.chromium.org/1974163003/diff/220001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp ...
4 years, 7 months ago (2016-05-27 01:02:10 UTC) #76
erikchen
https://codereview.chromium.org/1974163003/diff/220001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/1974163003/diff/220001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode977 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:977: m_gl->GetImageivCHROMIUM(imageId, GC3D_GPU_MEMORY_BUFFER_ID, &gpuMemoryBufferId); On 2016/05/27 01:02:10, Ken Russell wrote: ...
4 years, 7 months ago (2016-05-27 01:13:37 UTC) #77
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-27 02:56:16 UTC) #79
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974163003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974163003/240001
4 years, 6 months ago (2016-05-27 17:58:10 UTC) #82
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 6 months ago (2016-05-27 18:04:40 UTC) #84
commit-bot: I haz the power
4 years, 6 months ago (2016-05-27 18:06:24 UTC) #86
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/11c5d208606dbce8660ad7f5e41e0aa770655c82
Cr-Commit-Position: refs/heads/master@{#396510}

Powered by Google App Engine
This is Rietveld 408576698