Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Issue 4671003: Added glResizeCHRM to resize the drawable. (Closed)

Created:
10 years, 1 month ago by jonathan.backer
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., darin-cc_chromium.org, apatrick_chromium, brettw-cc_chromium.org
Visibility:
Public.

Description

Added glResizeCHRM to resize the drawable associated with the command buffer. This new command is used to pipe resize requests to the GPU process. It will allow is to synchronize the resize with the drawing. Specifically, if we resize at the wrong time, we will damage the backbuffer, causing visual artefacts (http://code.google.com/p/chromium/issues/detail?id=54430). The resize request gets sent to the GLContext. Each backend will implement it differently. At this point it's set as a NOP. -I will do an XResizeWindow on Linux. -Nat will do a resize on Windows. -Nico (or me?) will refactor the MacOSX code to use this path. There is one line webkit patch that's necessary to activate this code (removing an #ifdef). BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66307

Patch Set 1 #

Patch Set 2 : Enable for other platforms as well. #

Total comments: 6

Patch Set 3 : Fix nits and add to feature_info.cc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -3 lines) Patch
M app/gfx/gl/gl_context.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/GLES2/gl2ext.h View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_c_lib_autogen.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_cmd_helper_autogen.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_autogen.h View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_test_autogen.h View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_id_test_autogen.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M gpu/command_buffer/common/gles2_cmd_ids_autogen.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_autogen.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jonathan.backer
I've called the command glResizeCHRM. The CHRM indicates that this is a Chromium GL extension. ...
10 years, 1 month ago (2010-11-10 17:09:20 UTC) #1
apatrick
Remember to implement this for the OSMesa GLContexts as well. We're using them more and ...
10 years, 1 month ago (2010-11-10 18:22:31 UTC) #2
greggman
some minor nits otherwise LGTM http://codereview.chromium.org/4671003/diff/2001/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc File chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc (right): http://codereview.chromium.org/4671003/diff/2001/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc#newcode230 chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc:230: glResizeCHRM(width, height); kbr would ...
10 years, 1 month ago (2010-11-10 18:30:40 UTC) #3
nduca
General question, not necessarily for backer... is there any plumbing we need with the extension ...
10 years, 1 month ago (2010-11-10 20:51:17 UTC) #4
greggman
On Wed, Nov 10, 2010 at 12:51 PM, <[email protected]> wrote: > General question, not necessarily ...
10 years, 1 month ago (2010-11-10 20:58:50 UTC) #5
jonathan.backer
http://codereview.chromium.org/4671003/diff/2001/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc File chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc (right): http://codereview.chromium.org/4671003/diff/2001/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc#newcode230 chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc:230: glResizeCHRM(width, height); On 2010/11/10 18:30:41, greggman wrote: > kbr ...
10 years, 1 month ago (2010-11-15 22:41:00 UTC) #6
greggman
10 years, 1 month ago (2010-11-15 23:33:45 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698