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

Issue 13604007: Fix large mis-paint when resizing windows aura chrome (Closed)

Created:
7 years, 8 months ago by cpu_(ooo_6.6-7.5)
Modified:
7 years, 8 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jonathan.backer, Ian Vollick, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, James Su, alexst (slow to review)
Visibility:
Public.

Description

Fix large mis-paint when resizing windows aura chrome See bug attached for screenshots The CL does two things: - Disables the resizer lock, so that UI bits can go ahead of content bits - Janks (blocks) the UI thread until the compositor has flushed / finished the pending commands. This makes the mis-draw way less, up to one frame behind, which at my regular mouse speed of 1.2 pixels / ms comes out to 20 pixels of whiteout. BUG=177115 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192657

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -6 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest_autogen.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h View 1 2 3 4 7 chunks +8 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_autogen.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 3 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
cpu_(ooo_6.6-7.5)
So this is the simpler version. Of the patch, the complex version of the patch ...
7 years, 8 months ago (2013-04-04 02:09:06 UTC) #1
jonathan.backer
https://codereview.chromium.org/13604007/diff/1/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/13604007/diff/1/ui/compositor/compositor.cc#newcode530 ui/compositor/compositor.cc:530: base::TimeDelta::FromMilliseconds(kResizePaintLatency)); My experience has been that there are a ...
7 years, 8 months ago (2013-04-04 17:25:09 UTC) #2
piman
On Thu, Apr 4, 2013 at 10:25 AM, <backer@chromium.org> wrote: > > https://codereview.chromium.**org/13604007/diff/1/ui/** > compositor/compositor.cc<https://codereview.chromium.org/13604007/diff/1/ui/compositor/compositor.cc> ...
7 years, 8 months ago (2013-04-04 18:54:43 UTC) #3
cpu_(ooo_6.6-7.5)
for completeness I should mention that the old software path also has a UI janker ...
7 years, 8 months ago (2013-04-04 19:18:28 UTC) #4
cpu_(ooo_6.6-7.5)
New version up for review. Hacky wait removed, now we block until cc has processed ...
7 years, 8 months ago (2013-04-04 21:44:18 UTC) #5
jbauman
https://codereview.chromium.org/13604007/diff/15001/gpu/command_buffer/build_gles2_cmd_buffer.py File gpu/command_buffer/build_gles2_cmd_buffer.py (right): https://codereview.chromium.org/13604007/diff/15001/gpu/command_buffer/build_gles2_cmd_buffer.py#newcode1460 gpu/command_buffer/build_gles2_cmd_buffer.py:1460: 'defer_reads': True, This didn't do anything.
7 years, 8 months ago (2013-04-04 21:47:58 UTC) #6
piman
On 2013/04/04 21:47:58, jbauman wrote: > https://codereview.chromium.org/13604007/diff/15001/gpu/command_buffer/build_gles2_cmd_buffer.py > File gpu/command_buffer/build_gles2_cmd_buffer.py (right): > > https://codereview.chromium.org/13604007/diff/15001/gpu/command_buffer/build_gles2_cmd_buffer.py#newcode1460 > ...
7 years, 8 months ago (2013-04-04 21:52:22 UTC) #7
piman
https://codereview.chromium.org/13604007/diff/21002/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/13604007/diff/21002/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode780 content/browser/renderer_host/render_widget_host_view_aura.cc:780: // FinishAllRendering() if we are resizing. Can you file ...
7 years, 8 months ago (2013-04-04 21:56:13 UTC) #8
cpu_(ooo_6.6-7.5)
Please take a look again, now with the autogen files. https://codereview.chromium.org/13604007/diff/21002/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/13604007/diff/21002/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode780 ...
7 years, 8 months ago (2013-04-05 17:05:50 UTC) #9
piman
LGTM+nit https://codereview.chromium.org/13604007/diff/21002/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/13604007/diff/21002/ui/compositor/compositor.cc#newcode414 ui/compositor/compositor.cc:414: is_resizing_ (false), On 2013/04/05 17:05:51, cpu wrote: > ...
7 years, 8 months ago (2013-04-05 17:15:32 UTC) #10
cpu_(ooo_6.6-7.5)
ok, I'll change the name after jb's comments. Thanks for all your help.
7 years, 8 months ago (2013-04-05 17:42:06 UTC) #11
jbauman
lgtm
7 years, 8 months ago (2013-04-05 22:23:18 UTC) #12
cpu_(ooo_6.6-7.5)
7 years, 8 months ago (2013-04-06 00:03:23 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 manually as r192657 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698