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

Issue 10440019: Add support for GL_CHROMIUM_pixel_transfer_buffer_object. (Closed)

Created:
8 years, 7 months ago by reveman
Modified:
8 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add support for GL_CHROMIUM_pixel_transfer_buffer_object. This adds two new types of buffer objects, GL_PIXEL_PACK_TRANSFER_BUFFER_BINDING_CHROMIUM and GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM. The PIXEL_PACK buffer affects API calls that pack pixel data, such as glReadPixels. The PIXEL_UNPACK buffer affects API calls that unpack pixel data, such as glTexImage2D. These new buffer object are backed by shared memory, which allows clients to update them without any unnecessary copying. BUG=111096, 161337 TEST=unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168999

Patch Set 1 #

Total comments: 17

Patch Set 2 : Client side implementation. #

Patch Set 3 : Remove unnecessary change. #

Total comments: 2

Patch Set 4 : Use enums values in 0x6000 - 0x7FFF range and add GL_CHROMIUM_pixel_transfer_buffer_object extensio… #

Patch Set 5 : rebase #

Patch Set 6 : rebase #

Total comments: 14

Patch Set 7 : #

Patch Set 8 : #

Total comments: 14

Patch Set 9 : #

Patch Set 10 : rebase #

Patch Set 11 : uint8_t -> uint8 #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+553 lines, -5 lines) Patch
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 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 11 12 13 2 chunks +14 lines, -0 lines 0 comments Download
A gpu/command_buffer/client/buffer_tracker.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +103 lines, -0 lines 0 comments Download
A gpu/command_buffer/client/buffer_tracker.cc View 1 1 chunk +69 lines, -0 lines 0 comments Download
A gpu/command_buffer/client/buffer_tracker_unittest.cc View 1 2 3 4 5 6 1 chunk +74 lines, -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 2 chunks +10 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +14 lines, -5 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 chunks +188 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_autogen.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_autogen.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/cmd_buffer_functions.txt View 1 2 3 4 5 1 chunk +3 lines, -0 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 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gl_utils.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/gpu.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M gpu/gpu_common.gypi View 1 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M third_party/khronos/GLES2/gl2chromium.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/khronos/GLES2/gl2ext.h View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/khronos/README.chromium View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_impl.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_impl.cc View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
reveman
Hi guys, this is far from ready but I thought it would be good for ...
8 years, 7 months ago (2012-05-24 18:54:04 UTC) #1
greggman
On 2012/05/24 18:54:04, David Reveman wrote: > Hi guys, > > this is far from ...
8 years, 7 months ago (2012-05-24 20:55:29 UTC) #2
greggman
Hey Al, thoughts on this? http://codereview.chromium.org/10440019/diff/1/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): http://codereview.chromium.org/10440019/diff/1/gpu/command_buffer/client/gles2_implementation.cc#newcode1511 gpu/command_buffer/client/gles2_implementation.cc:1511: case GL_PIXEL_PACK_TRANSFER_BUFFER_CHROMIUM: style: case ...
8 years, 7 months ago (2012-05-24 20:56:00 UTC) #3
apatrick_chromium
A high level question, perhaps just indicative of my misunderstanding of what you're doing here. ...
8 years, 7 months ago (2012-05-24 21:48:31 UTC) #4
piman
On Thu, May 24, 2012 at 2:48 PM, <apatrick@chromium.org> wrote: > A high level question, ...
8 years, 7 months ago (2012-05-24 21:56:41 UTC) #5
apatrick_chromium
On 2012/05/24 21:56:41, piman wrote: > On Thu, May 24, 2012 at 2:48 PM, <mailto:apatrick@chromium.org> ...
8 years, 7 months ago (2012-05-24 22:05:49 UTC) #6
piman
On Thu, May 24, 2012 at 3:05 PM, <apatrick@chromium.org> wrote: > On 2012/05/24 21:56:41, piman ...
8 years, 7 months ago (2012-05-24 22:18:49 UTC) #7
google-reveman
On Thu, May 24, 2012 at 4:55 PM, <gman@chromium.org> wrote: > On 2012/05/24 18:54:04, David ...
8 years, 7 months ago (2012-05-25 15:27:56 UTC) #8
gman1
If you want I can look into moving MappedMemoryManager to the ShareGroup and the things ...
8 years, 7 months ago (2012-05-25 15:42:40 UTC) #9
gman1
On Fri, May 25, 2012 at 8:42 AM, Gregg Tavares (社用) <gman@google.com> wrote: > If ...
8 years, 7 months ago (2012-05-25 15:44:01 UTC) #10
reveman
http://codereview.chromium.org/10440019/diff/1/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): http://codereview.chromium.org/10440019/diff/1/gpu/command_buffer/client/gles2_implementation.cc#newcode1521 gpu/command_buffer/client/gles2_implementation.cc:1521: buffer_tracker_->RemoveBuffer(buffer_id); On 2012/05/24 20:56:00, greggman wrote: > Should this ...
8 years, 7 months ago (2012-05-25 15:45:10 UTC) #11
google-reveman
On Fri, May 25, 2012 at 11:42 AM, Gregg Tavares (社用) <gman@google.com> wrote: > If ...
8 years, 7 months ago (2012-05-25 15:49:36 UTC) #12
gman1
On Fri, May 25, 2012 at 8:49 AM, David Reveman <reveman@google.com> wrote: > On Fri, ...
8 years, 7 months ago (2012-05-25 15:50:50 UTC) #13
greggman
On 2012/05/25 15:50:50, gman1 wrote: > On Fri, May 25, 2012 at 8:49 AM, David ...
8 years, 6 months ago (2012-06-01 20:23:27 UTC) #14
google-reveman
On Fri, Jun 1, 2012 at 4:23 PM, <gman@chromium.org> wrote: > On 2012/05/25 15:50:50, gman1 ...
8 years, 6 months ago (2012-06-01 20:48:06 UTC) #15
reveman
Hi, this a client side only implementation of GL_CHROMIUM_pixel_transfer_buffer_object. It provides a way to implement ...
8 years, 1 month ago (2012-11-15 22:00:09 UTC) #16
apatrick_chromium
LGTM for my part but make sure gman signs off. https://codereview.chromium.org/10440019/diff/28001/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h File gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h (right): https://codereview.chromium.org/10440019/diff/28001/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h#newcode549 ...
8 years, 1 month ago (2012-11-15 22:18:38 UTC) #17
reveman
https://codereview.chromium.org/10440019/diff/28001/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h File gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h (right): https://codereview.chromium.org/10440019/diff/28001/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h#newcode549 gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h:549: { 0x88EC, "GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM", }, On 2012/11/15 22:18:38, apatrick_chromium wrote: ...
8 years, 1 month ago (2012-11-16 01:59:38 UTC) #18
greggman
https://codereview.chromium.org/10440019/diff/35002/gpu/command_buffer/client/buffer_tracker_unittest.cc File gpu/command_buffer/client/buffer_tracker_unittest.cc (right): https://codereview.chromium.org/10440019/diff/35002/gpu/command_buffer/client/buffer_tracker_unittest.cc#newcode54 gpu/command_buffer/client/buffer_tracker_unittest.cc:54: BufferTracker::Buffer* buffer = buffer_tracker_->CreateBuffer(kId1, size); This isn't really checking ...
8 years, 1 month ago (2012-11-19 04:50:14 UTC) #19
reveman
The latest patch should address all review feedback. PTAL. https://codereview.chromium.org/10440019/diff/35002/gpu/command_buffer/client/buffer_tracker_unittest.cc File gpu/command_buffer/client/buffer_tracker_unittest.cc (right): https://codereview.chromium.org/10440019/diff/35002/gpu/command_buffer/client/buffer_tracker_unittest.cc#newcode54 gpu/command_buffer/client/buffer_tracker_unittest.cc:54: ...
8 years, 1 month ago (2012-11-20 16:49:30 UTC) #20
greggman
lgtm with a few minor nits I think the general rule (although it's not 100%) ...
8 years, 1 month ago (2012-11-20 18:57:41 UTC) #21
reveman
https://codereview.chromium.org/10440019/diff/37001/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): https://codereview.chromium.org/10440019/diff/37001/gpu/command_buffer/client/gles2_implementation.cc#newcode1662 gpu/command_buffer/client/gles2_implementation.cc:1662: if (!SafeAddInt32(offset, size, &end) || end > buffer_size) { ...
8 years, 1 month ago (2012-11-20 23:24:30 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/10440019/39003
8 years, 1 month ago (2012-11-20 23:51:33 UTC) #23
commit-bot: I haz the power
Presubmit check for 10440019-39003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-11-20 23:51:44 UTC) #24
reveman
ppapi/native_client owner lgtm please
8 years, 1 month ago (2012-11-21 00:41:03 UTC) #25
bbudge
lgtm
8 years, 1 month ago (2012-11-21 00:55:41 UTC) #26
bbudge
lgtm lgtm
8 years, 1 month ago (2012-11-21 00:55:41 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/10440019/39003
8 years, 1 month ago (2012-11-21 00:58:08 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/10440019/27056
8 years, 1 month ago (2012-11-21 03:57:45 UTC) #29
commit-bot: I haz the power
Retried try job too often for step(s) content_unittests
8 years, 1 month ago (2012-11-21 05:17:41 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/10440019/35046
8 years, 1 month ago (2012-11-21 05:34:38 UTC) #31
commit-bot: I haz the power
8 years, 1 month ago (2012-11-21 07:30:32 UTC) #32
Change committed as 168999

Powered by Google App Engine
This is Rietveld 408576698