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

Issue 255713008: Change glimage to accept a type. (Closed)

Created:
6 years, 7 months ago by alexst (slow to review)
Modified:
6 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Rearrange GLImage API to create them with a usage type instead of using usage type while mapping the buffer. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268548

Patch Set 1 : More work in progress #

Patch Set 2 : wip #

Patch Set 3 : First draft #

Total comments: 1

Patch Set 4 : no ozone #

Total comments: 17

Patch Set 5 : Comments #

Patch Set 6 : #

Patch Set 7 : Build #

Total comments: 9

Patch Set 8 : #

Total comments: 2

Patch Set 9 : rebase #

Patch Set 10 : #

Total comments: 3

Patch Set 11 : Comments #

Total comments: 2

Patch Set 12 : #

Patch Set 13 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1310 lines, -2270 lines) Patch
M android_webview/browser/gpu_memory_buffer_factory_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M android_webview/browser/gpu_memory_buffer_factory_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -17 lines 0 comments Download
M cc/resources/raster_worker_pool_perftest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 4 5 6 7 6 chunks +11 lines, -7 lines 0 comments Download
M cc/test/test_gles2_interface.h View 1 chunk +3 lines, -2 lines 0 comments Download
M cc/test/test_gles2_interface.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 1 chunk +3 lines, -2 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M content/browser/gpu/browser_gpu_channel_host_factory.h View 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/gpu/browser_gpu_channel_host_factory.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +13 lines, -3 lines 0 comments Download
M content/common/child_process_host_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/common/child_process_host_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/common/child_process_messages.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -5 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.h View 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl.h View 1 2 3 4 10 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shm.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shm.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -1 line 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 2 3 4 5 6 7 1 chunk +21 lines, -4 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -9 lines 0 comments Download
A + gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt View 1 2 3 4 5 6 7 5 chunks +25 lines, -15 lines 0 comments Download
M gpu/GLES2/extensions/CHROMIUM/CHROMIUM_map_image.txt View 1 2 3 4 1 chunk +0 lines, -107 lines 0 comments Download
M gpu/GLES2/gl2extchromium.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -8 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/client/client_test_helper.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_c_lib_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 12 20 chunks +95 lines, -184 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.h View 1 chunk +5 lines, -3 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +22 lines, -35 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -4 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_autogen.h View 2 chunks +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_autogen.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_autogen.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h View 2 chunks +5 lines, -5 lines 0 comments Download
M gpu/command_buffer/client/gpu_control.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gpu_memory_buffer_factory.h View 1 chunk +4 lines, -4 lines 0 comments Download
M gpu/command_buffer/client/gpu_memory_buffer_tracker.h View 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gpu_memory_buffer_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -3 lines 0 comments Download
M gpu/command_buffer/cmd_buffer_functions.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +781 lines, -1556 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +81 lines, -211 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/tests/gl_gpu_memory_buffer_unittest.cc View 1 2 3 4 5 6 7 5 chunks +10 lines, -9 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M gpu/gles2_conform_support/egl/display.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M gpu/gles2_conform_support/egl/display.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M mojo/gles2/command_buffer_client_impl.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M mojo/gles2/command_buffer_client_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -5 lines 0 comments Download
M ppapi/proxy/ppapi_command_buffer_proxy.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/gpu_memory_buffer.h View 1 2 3 4 1 chunk +3 lines, -6 lines 0 comments Download
M ui/gl/gl_bindings.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc View 1 2 3 4 5 6 7 3 chunks +31 lines, -11 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
alexst (slow to review)
David, please have a look at this. The CL is surprisingly big, but most of ...
6 years, 7 months ago (2014-04-29 19:19:54 UTC) #1
reveman
https://codereview.chromium.org/255713008/diff/60001/ui/gfx/gpu_memory_buffer.h File ui/gfx/gpu_memory_buffer.h (right): https://codereview.chromium.org/255713008/diff/60001/ui/gfx/gpu_memory_buffer.h#newcode88 ui/gfx/gpu_memory_buffer.h:88: virtual void* Map() = 0; Can we start be ...
6 years, 7 months ago (2014-04-29 20:04:43 UTC) #2
alexst (slow to review)
On 2014/04/29 20:04:43, reveman wrote: > https://codereview.chromium.org/255713008/diff/60001/ui/gfx/gpu_memory_buffer.h > File ui/gfx/gpu_memory_buffer.h (right): > > https://codereview.chromium.org/255713008/diff/60001/ui/gfx/gpu_memory_buffer.h#newcode88 > ...
6 years, 7 months ago (2014-04-29 20:29:48 UTC) #3
reveman
https://codereview.chromium.org/255713008/diff/80001/content/common/gpu/client/gpu_memory_buffer_impl.h File content/common/gpu/client/gpu_memory_buffer_impl.h (right): https://codereview.chromium.org/255713008/diff/80001/content/common/gpu/client/gpu_memory_buffer_impl.h#newcode39 content/common/gpu/client/gpu_memory_buffer_impl.h:39: gfx::GpuMemoryBuffer::Usage usage_; Doesn't seem to be used by this ...
6 years, 7 months ago (2014-04-30 11:31:27 UTC) #4
alexst (slow to review)
Please have another look. https://codereview.chromium.org/255713008/diff/80001/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_map_image.txt File gpu/GLES2/extensions/CHROMIUM/CHROMIUM_map_image.txt (right): https://codereview.chromium.org/255713008/diff/80001/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_map_image.txt#newcode54 gpu/GLES2/extensions/CHROMIUM/CHROMIUM_map_image.txt:54: INVALID_ENUM is generated if <usage> ...
6 years, 7 months ago (2014-04-30 23:41:45 UTC) #5
reveman
https://codereview.chromium.org/255713008/diff/80001/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_map_image.txt File gpu/GLES2/extensions/CHROMIUM/CHROMIUM_map_image.txt (right): https://codereview.chromium.org/255713008/diff/80001/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_map_image.txt#newcode54 gpu/GLES2/extensions/CHROMIUM/CHROMIUM_map_image.txt:54: INVALID_ENUM is generated if <usage> is not one of ...
6 years, 7 months ago (2014-05-01 12:06:37 UTC) #6
alexst (slow to review)
https://codereview.chromium.org/255713008/diff/140001/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt File gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt (right): https://codereview.chromium.org/255713008/diff/140001/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt#newcode41 gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt:41: GL_IMAGE_ROWBYTES_CHROMIUM 0x78F0 On 2014/05/01 12:06:38, reveman wrote: > nit: ...
6 years, 7 months ago (2014-05-01 13:44:51 UTC) #7
reveman
https://codereview.chromium.org/255713008/diff/140001/gpu/command_buffer/service/gpu_control_service.h File gpu/command_buffer/service/gpu_control_service.h (right): https://codereview.chromium.org/255713008/diff/140001/gpu/command_buffer/service/gpu_control_service.h#newcode59 gpu/command_buffer/service/gpu_control_service.h:59: unsigned usage); On 2014/05/01 13:44:51, alexst wrote: > On ...
6 years, 7 months ago (2014-05-01 13:48:45 UTC) #8
alexst (slow to review)
ptal
6 years, 7 months ago (2014-05-01 14:45:29 UTC) #9
reveman
You'll need to update android_webview/browser/gpu_memory_buffer_factory_impl.cc too. https://codereview.chromium.org/255713008/diff/180001/content/browser/gpu/browser_gpu_channel_host_factory.cc File content/browser/gpu/browser_gpu_channel_host_factory.cc (right): https://codereview.chromium.org/255713008/diff/180001/content/browser/gpu/browser_gpu_channel_host_factory.cc#newcode383 content/browser/gpu/browser_gpu_channel_host_factory.cc:383: if (!GpuMemoryBufferImpl::IsFormatValid(internalformat)) Please ...
6 years, 7 months ago (2014-05-01 15:15:54 UTC) #10
alexst (slow to review)
New patch. https://codereview.chromium.org/255713008/diff/210001/android_webview/browser/gpu_memory_buffer_factory_impl.cc File android_webview/browser/gpu_memory_buffer_factory_impl.cc (right): https://codereview.chromium.org/255713008/diff/210001/android_webview/browser/gpu_memory_buffer_factory_impl.cc#newcode36 android_webview/browser/gpu_memory_buffer_factory_impl.cc:36: int err = g_gl_draw_functions->map(buffer_id_, MAP_READ_WRITE, &vaddr); This ...
6 years, 7 months ago (2014-05-01 17:45:06 UTC) #11
reveman
FYI, all platform specific code in RenderMessageFilter::OnAllocateGpuMemoryBuffer is ugly and probably a bit confusing. I'm ...
6 years, 7 months ago (2014-05-01 18:07:32 UTC) #12
alexst (slow to review)
On 2014/05/01 18:07:32, reveman wrote: > FYI, all platform specific code in > RenderMessageFilter::OnAllocateGpuMemoryBuffer is ...
6 years, 7 months ago (2014-05-01 21:03:20 UTC) #13
reveman
lgtm
6 years, 7 months ago (2014-05-01 21:19:04 UTC) #14
alexst (slow to review)
+kenrb for IPC security review +danakj for ui/gfx owner review +brettw for pepper owner review ...
6 years, 7 months ago (2014-05-01 22:10:27 UTC) #15
danakj
On 2014/05/01 22:10:27, alexst wrote: > +danakj for ui/gfx owner review Looks like reveman is ...
6 years, 7 months ago (2014-05-01 22:12:24 UTC) #16
kenrb
lgtm for IPC change
6 years, 7 months ago (2014-05-02 15:44:29 UTC) #17
piman
https://codereview.chromium.org/255713008/diff/220001/gpu/command_buffer/client/gles2_c_lib_autogen.h File gpu/command_buffer/client/gles2_c_lib_autogen.h (right): https://codereview.chromium.org/255713008/diff/220001/gpu/command_buffer/client/gles2_c_lib_autogen.h#newcode802 gpu/command_buffer/client/gles2_c_lib_autogen.h:802: GLenum usage) { These functions are autogenerated by gpu/command_buffer/build_gles2_cmd_buffer.py, ...
6 years, 7 months ago (2014-05-02 20:21:18 UTC) #18
alexst (slow to review)
https://codereview.chromium.org/255713008/diff/220001/gpu/command_buffer/client/gles2_c_lib_autogen.h File gpu/command_buffer/client/gles2_c_lib_autogen.h (right): https://codereview.chromium.org/255713008/diff/220001/gpu/command_buffer/client/gles2_c_lib_autogen.h#newcode802 gpu/command_buffer/client/gles2_c_lib_autogen.h:802: GLenum usage) { On 2014/05/02 20:21:18, piman wrote: > ...
6 years, 7 months ago (2014-05-02 22:06:17 UTC) #19
piman
lgtm
6 years, 7 months ago (2014-05-02 22:35:33 UTC) #20
Ben Goodger (Google)
lgtm
6 years, 7 months ago (2014-05-05 15:12:57 UTC) #21
brettw
lgtm
6 years, 7 months ago (2014-05-05 16:34:54 UTC) #22
alexst (slow to review)
The CQ bit was checked by alexst@chromium.org
6 years, 7 months ago (2014-05-05 17:23:25 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexst@chromium.org/255713008/230001
6 years, 7 months ago (2014-05-05 17:23:42 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-05 22:20:30 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #2). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-06 00:57:17 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-06 03:04:16 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium
6 years, 7 months ago (2014-05-06 03:04:16 UTC) #28
alexst (slow to review)
The CQ bit was checked by alexst@chromium.org
6 years, 7 months ago (2014-05-06 12:44:04 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexst@chromium.org/255713008/250001
6 years, 7 months ago (2014-05-06 12:44:13 UTC) #30
commit-bot: I haz the power
6 years, 7 months ago (2014-05-06 17:16:57 UTC) #31
Message was sent while issue was closed.
Change committed as 268548

Powered by Google App Engine
This is Rietveld 408576698