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

Issue 1366473002: Move WakeUpGpu logic to GpuChannelManager (Closed)

Created:
5 years, 3 months ago by piman
Modified:
5 years, 3 months ago
Reviewers:
Tom Sepez, no sievers
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move WakeUpGpu logic to GpuChannelManager We don't need to tie the WakeUpGpu to a particular surface, so instead make it a control message, and have the GpuChannelManager pick any available context. We signal GPU access on AsyncFlush instead of OnMakeCurrent, since that's both more accurate and simpler. At that point, that means renderer surfaces don't need to be ImageTransportSurfaces any more, so we can remove NullTransportSurface and ImageTransportSurfaceAndroid, we can use the default offscreen surface instead anyway. DirectSurfaceAndroid can be replaced by PassThroughImageTransportSurface directly, because it's only used to signal GPU access (which is done on AsyncFlush anyway). BUG=487471 Committed: https://crrev.com/fa4f254803e2952851400a35f9ec20605e9c3461 Cr-Commit-Position: refs/heads/master@{#350491}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 8

Patch Set 3 : review comments #

Patch Set 4 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -358 lines) Patch
M content/browser/gpu/gpu_process_host_ui_shim.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 3 chunks +0 lines, -50 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 2 chunks +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 3 chunks +2 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_channel.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_channel.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.h View 3 chunks +15 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 2 3 chunks +61 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 2 chunks +3 lines, -6 lines 0 comments Download
M content/common/gpu/image_transport_surface.h View 4 chunks +0 lines, -10 lines 0 comments Download
M content/common/gpu/image_transport_surface.cc View 1 2 5 chunks +18 lines, -22 lines 0 comments Download
M content/common/gpu/image_transport_surface_android.cc View 2 chunks +1 line, -126 lines 0 comments Download
M content/common/gpu/image_transport_surface_fbo_mac.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu/image_transport_surface_fbo_mac.mm View 1 chunk +0 lines, -4 lines 0 comments Download
M content/common/gpu/image_transport_surface_overlay_mac.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu/image_transport_surface_overlay_mac.mm View 1 chunk +0 lines, -2 lines 0 comments Download
D content/common/gpu/null_transport_surface.h View 1 chunk +0 lines, -43 lines 0 comments Download
D content/common/gpu/null_transport_surface.cc View 1 chunk +0 lines, -75 lines 0 comments Download
M content/content_common.gypi View 1 chunk +0 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (6 generated)
piman
sievers: please review inferno: OWNERS for gpu_messages.h
5 years, 3 months ago (2015-09-23 00:31:46 UTC) #2
piman
On 2015/09/23 00:31:46, piman (slow to review) wrote: > inferno: OWNERS for gpu_messages.h Not sure ...
5 years, 3 months ago (2015-09-23 06:39:20 UTC) #4
no sievers
lgtm, thanks! https://codereview.chromium.org/1366473002/diff/20001/content/common/gpu/gpu_channel.cc File content/common/gpu/gpu_channel.cc (right): https://codereview.chromium.org/1366473002/diff/20001/content/common/gpu/gpu_channel.cc#newcode917 content/common/gpu/gpu_channel.cc:917: if (stub->decoder()) should we also check stub->decoder()->WasContextLost() ...
5 years, 3 months ago (2015-09-23 19:32:33 UTC) #5
Tom Sepez
OWNERS stamp LGTM.
5 years, 3 months ago (2015-09-23 20:54:29 UTC) #6
piman
https://codereview.chromium.org/1366473002/diff/20001/content/common/gpu/gpu_channel.cc File content/common/gpu/gpu_channel.cc (right): https://codereview.chromium.org/1366473002/diff/20001/content/common/gpu/gpu_channel.cc#newcode917 content/common/gpu/gpu_channel.cc:917: if (stub->decoder()) On 2015/09/23 19:32:33, sievers wrote: > should ...
5 years, 3 months ago (2015-09-23 22:32:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1366473002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1366473002/60001
5 years, 3 months ago (2015-09-24 01:02:33 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-09-24 07:45:24 UTC) #13
commit-bot: I haz the power
5 years, 3 months ago (2015-09-24 07:46:15 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fa4f254803e2952851400a35f9ec20605e9c3461
Cr-Commit-Position: refs/heads/master@{#350491}

Powered by Google App Engine
This is Rietveld 408576698