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

Issue 495313003: Let GpuChannel handle deferred IPC messages of SwapBuffer in batch (Closed)

Created:
6 years, 4 months ago by Hongbo Min
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org, Shouqun Liu, yunchao
Base URL:
https://chromium.googlesource.com/chromium/src@master
Project:
chromium
Visibility:
Public.

Description

We process the pending messages immediately if these messages matches the pattern of SwapBuffers, for example, GLRenderer always issues SwapBuffers calls with a specific IPC message patterns, it should always be SetLatencyInfo->AsyncFlush->Echo sequence. Instead of posting a task to message loop, it could avoid the possibility of being blocked by other channels, and make SwapBuffers executed as soon as possible. BUG=407529 Committed: https://crrev.com/c4c12c1da82232d2145aa0ffd4a7f556178f782f Cr-Commit-Position: refs/heads/master@{#292768}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : fix nits #

Total comments: 5

Patch Set 3 : fix nits II #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -13 lines) Patch
M content/common/gpu/gpu_channel.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_channel.cc View 1 2 2 chunks +75 lines, -13 lines 0 comments Download

Messages

Total messages: 17 (1 generated)
Hongbo Min
Hi, reviewers, could you please take a review? Thanks.
6 years, 4 months ago (2014-08-22 11:33:33 UTC) #1
Hongbo Min
ping kbr@
6 years, 3 months ago (2014-08-25 15:32:10 UTC) #2
Ken Russell (switch to Gerrit)
This looks good overall. It looks a little complicated, but I don't have any good ...
6 years, 3 months ago (2014-08-25 23:03:03 UTC) #3
jbauman
https://codereview.chromium.org/495313003/diff/20001/content/common/gpu/gpu_channel.cc File content/common/gpu/gpu_channel.cc (right): https://codereview.chromium.org/495313003/diff/20001/content/common/gpu/gpu_channel.cc#newcode777 content/common/gpu/gpu_channel.cc:777: m = deferred_messages_.front(); I think you could move these ...
6 years, 3 months ago (2014-08-26 00:00:43 UTC) #4
Hongbo Min
A new bug was filed at http://crbug.com/407531. https://codereview.chromium.org/495313003/diff/20001/content/common/gpu/gpu_channel.cc File content/common/gpu/gpu_channel.cc (right): https://codereview.chromium.org/495313003/diff/20001/content/common/gpu/gpu_channel.cc#newcode771 content/common/gpu/gpu_channel.cc:771: // SwapBuffers ...
6 years, 3 months ago (2014-08-26 11:37:00 UTC) #5
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/495313003/diff/40001/content/common/gpu/gpu_channel.cc File content/common/gpu/gpu_channel.cc (right): https://codereview.chromium.org/495313003/diff/40001/content/common/gpu/gpu_channel.cc#newcode781 content/common/gpu/gpu_channel.cc:781: matched_messages_num = MatchSwapBufferMessagesPattern(message.get()); This isn't the same logic as ...
6 years, 3 months ago (2014-08-26 18:18:56 UTC) #6
Hongbo Min
Russell, thanks for your comments. https://codereview.chromium.org/495313003/diff/40001/content/common/gpu/gpu_channel.cc File content/common/gpu/gpu_channel.cc (right): https://codereview.chromium.org/495313003/diff/40001/content/common/gpu/gpu_channel.cc#newcode781 content/common/gpu/gpu_channel.cc:781: matched_messages_num = MatchSwapBufferMessagesPattern(message.get()); Russell, ...
6 years, 3 months ago (2014-08-27 01:54:00 UTC) #7
jbauman
https://codereview.chromium.org/495313003/diff/40001/content/common/gpu/gpu_channel.cc File content/common/gpu/gpu_channel.cc (right): https://codereview.chromium.org/495313003/diff/40001/content/common/gpu/gpu_channel.cc#newcode783 content/common/gpu/gpu_channel.cc:783: matched_messages_num > 0 && stub && stub->IsScheduled(); I don't ...
6 years, 3 months ago (2014-08-27 20:46:42 UTC) #8
Ken Russell (switch to Gerrit)
Thanks for this contribution and for your explanations. LGTM with jbauman's concerns addressed. https://codereview.chromium.org/495313003/diff/40001/content/common/gpu/gpu_channel.cc File ...
6 years, 3 months ago (2014-08-27 22:16:56 UTC) #9
Hongbo Min
jbauman, The CL is updated. thanks. https://codereview.chromium.org/495313003/diff/40001/content/common/gpu/gpu_channel.cc File content/common/gpu/gpu_channel.cc (right): https://codereview.chromium.org/495313003/diff/40001/content/common/gpu/gpu_channel.cc#newcode783 content/common/gpu/gpu_channel.cc:783: matched_messages_num > 0 ...
6 years, 3 months ago (2014-08-29 01:11:10 UTC) #10
Hongbo Min
Patchset #3 (id:60001) has been deleted
6 years, 3 months ago (2014-08-29 01:43:05 UTC) #11
jbauman
lgtm
6 years, 3 months ago (2014-08-29 20:23:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/495313003/80001
6 years, 3 months ago (2014-08-30 01:24:31 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel_swarming on tryserver.chromium.win ...
6 years, 3 months ago (2014-08-30 02:32:41 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:80001) as 4916accef68ee0cccbf1a44d65b2bc36a4679cb7
6 years, 3 months ago (2014-08-30 03:14:51 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:13:37 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c4c12c1da82232d2145aa0ffd4a7f556178f782f
Cr-Commit-Position: refs/heads/master@{#292768}

Powered by Google App Engine
This is Rietveld 408576698