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

Issue 10535174: Addition of unpremultiply setting to GL_CHROMIUM_copy_texture. (Closed)

Created:
8 years, 6 months ago by Jeff Timanus
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Addition of an unpremultiplied-alpha setting for the GL_CHROMIUM_copy_texture command buffer GL extension. The extension needs to support the ability to unpremultiply the source of the copy because of the canvas2d-webgl texture use case. Canvas is stored in premultiplied form, yet WebGL expects texture contents to be in unpremultiplied form. Change also includes conversion of argument types to overriders of WebGraphicsContext3D::copyTextureCHROMIUM(...). This change is necessary as a result of a wk-change: https://bugs.webkit.org/show_bug.cgi?id=86275 BUG=101051 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142962

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 8

Patch Set 3 : Addressing review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -19 lines) Patch
M gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gl_utils.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc View 1 2 4 chunks +43 lines, -6 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 5 chunks +26 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc View 1 2 chunks +58 lines, -0 lines 0 comments Download
M third_party/khronos/GLES2/gl2ext.h View 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/gpu/webgraphicscontext3d_in_process_impl.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Jeff Timanus
PTAL. One thing that concerns me with this change is the behaviour for alpha=0 when ...
8 years, 6 months ago (2012-06-14 20:36:33 UTC) #1
apatrick_chromium
https://chromiumcodereview.appspot.com/10535174/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc (right): https://chromiumcodereview.appspot.com/10535174/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode30 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:30: const int kNumShaders = 6; 7 https://chromiumcodereview.appspot.com/10535174/diff/1/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode111 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:111: gl_FragColor.rgb ...
8 years, 6 months ago (2012-06-14 21:06:29 UTC) #2
Jeff Timanus
Thx for the review. I'm concerned that I did not have to make any modifications ...
8 years, 6 months ago (2012-06-14 22:54:14 UTC) #3
apatrick_chromium
On 2012/06/14 22:54:14, Jeff Timanus wrote: > Thx for the review. > > I'm concerned ...
8 years, 6 months ago (2012-06-14 23:43:18 UTC) #4
greggman
https://chromiumcodereview.appspot.com/10535174/diff/13001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc (right): https://chromiumcodereview.appspot.com/10535174/diff/13001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode111 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:111: gl_FragColor.rgb /= gl_FragColor.a; IF the spec actually says that ...
8 years, 6 months ago (2012-06-15 00:11:45 UTC) #5
Jeff Timanus
https://chromiumcodereview.appspot.com/10535174/diff/13001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc (right): https://chromiumcodereview.appspot.com/10535174/diff/13001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#newcode111 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:111: gl_FragColor.rgb /= gl_FragColor.a; On 2012/06/15 00:11:45, greggman wrote: > ...
8 years, 6 months ago (2012-06-18 14:50:24 UTC) #6
greggman
lgtm
8 years, 6 months ago (2012-06-18 16:07:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/twiz@chromium.org/10535174/15001
8 years, 6 months ago (2012-06-19 14:29:54 UTC) #8
commit-bot: I haz the power
8 years, 6 months ago (2012-06-19 15:43:19 UTC) #9
Change committed as 142962

Powered by Google App Engine
This is Rietveld 408576698