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

Issue 2791723003: Update GpuSurfaceTracker to include Android surfaces. (Closed)

Created:
3 years, 8 months ago by liberato (no reviews please)
Modified:
3 years, 7 months ago
CC:
chromium-reviews, avayvod+watch_chromium.org, jam, jbauman+watch_chromium.org, feature-media-reviews_chromium.org, feature-vr-reviews_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, mlamouri+watch-media_chromium.org, tguilbert
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update GpuSurfaceTracker to include Android surfaces. Previously, GpuSurfaceTracker would add accelerated widgets and java Surfaces via separate API calls. Now, a java surface is required when registering an accelerated widget (ANativeWindow) on Android. BUG=710230 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2791723003 Cr-Commit-Position: refs/heads/master@{#468488} Committed: https://chromium.googlesource.com/chromium/src/+/d90f48c21a3dd8c93bbfb9dc53cdc4c644277702

Patch Set 1 #

Patch Set 2 : switched to registering structure #

Patch Set 3 : rebased #

Patch Set 4 : fixed constructors #

Patch Set 5 : fixed compile on non-android #

Patch Set 6 : actually fixed non-android platforms #

Patch Set 7 : cleanup, fixed nullptr surface #

Total comments: 2

Patch Set 8 : split into two constructors #

Patch Set 9 : made one-arg constructor implicit #

Total comments: 12

Patch Set 10 : made one-arg constructor explicit again #

Patch Set 11 : rebased #

Total comments: 2

Patch Set 12 : updated comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -54 lines) Patch
M chrome/browser/android/vr_shell/mailbox_to_surface_bridge.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/media/android/browser_surface_view_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -4 lines 0 comments Download
M gpu/ipc/common/gpu_surface_tracker.h View 1 2 3 4 5 6 7 8 9 4 chunks +23 lines, -12 lines 0 comments Download
M gpu/ipc/common/gpu_surface_tracker.cc View 1 2 3 4 5 6 7 8 9 3 chunks +28 lines, -28 lines 0 comments Download
M ui/compositor/test/in_process_context_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -1 line 0 comments Download

Messages

Total messages: 64 (51 generated)
liberato (no reviews please)
boliu: before i open this up to owners review, please let me know if it's ...
3 years, 8 months ago (2017-04-10 22:44:23 UTC) #28
boliu
yep, content lgtm https://codereview.chromium.org/2791723003/diff/120001/gpu/ipc/common/gpu_surface_tracker.h File gpu/ipc/common/gpu_surface_tracker.h (right): https://codereview.chromium.org/2791723003/diff/120001/gpu/ipc/common/gpu_surface_tracker.h#newcode43 gpu/ipc/common/gpu_surface_tracker.h:43: jobject j_surface maybe just write two ...
3 years, 8 months ago (2017-04-10 22:50:46 UTC) #29
liberato (no reviews please)
Hi all this is a small refactor of GpuSurfaceTracker that touches a few ares of ...
3 years, 8 months ago (2017-04-11 20:49:02 UTC) #44
mthiesse
vr_shell/ lgtm
3 years, 8 months ago (2017-04-11 20:53:18 UTC) #45
Ian Vollick
On 2017/04/11 20:53:18, mthiesse wrote: > vr_shell/ lgtm I'm not a good reviewer for that ...
3 years, 8 months ago (2017-04-11 21:53:32 UTC) #47
dcheng
IPC LGTM with C++ nits addressed https://codereview.chromium.org/2791723003/diff/160001/gpu/ipc/common/gpu_surface_tracker.cc File gpu/ipc/common/gpu_surface_tracker.cc (right): https://codereview.chromium.org/2791723003/diff/160001/gpu/ipc/common/gpu_surface_tracker.cc#newcode23 gpu/ipc/common/gpu_surface_tracker.cc:23: // a Surface ...
3 years, 8 months ago (2017-04-14 00:55:24 UTC) #48
liberato (no reviews please)
thanks for the comments. danakj: vollick redirected to piman to look at ui/compositor/test/in_process_context_factory.cc but he's ...
3 years, 8 months ago (2017-04-18 20:47:38 UTC) #54
klausw
mailbox_to_surface_bridge LGTM, assuming that the behavior is equivalent to what it was doing manually. The ...
3 years, 8 months ago (2017-04-18 21:30:55 UTC) #55
liberato (no reviews please)
danakj / piman: friendly ping about ui/ thanks -fl
3 years, 7 months ago (2017-04-28 21:07:44 UTC) #56
danakj
LGTM w/ a comment about the comment https://codereview.chromium.org/2791723003/diff/200001/ui/compositor/test/in_process_context_factory.cc File ui/compositor/test/in_process_context_factory.cc (right): https://codereview.chromium.org/2791723003/diff/200001/ui/compositor/test/in_process_context_factory.cc#newcode340 ui/compositor/test/in_process_context_factory.cc:340: // ContentShell ...
3 years, 7 months ago (2017-05-01 22:26:12 UTC) #57
liberato (no reviews please)
thanks for the feedback, everyone. -fl https://codereview.chromium.org/2791723003/diff/200001/ui/compositor/test/in_process_context_factory.cc File ui/compositor/test/in_process_context_factory.cc (right): https://codereview.chromium.org/2791723003/diff/200001/ui/compositor/test/in_process_context_factory.cc#newcode340 ui/compositor/test/in_process_context_factory.cc:340: // ContentShell probably ...
3 years, 7 months ago (2017-05-01 22:41:39 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2791723003/220001
3 years, 7 months ago (2017-05-01 22:42:26 UTC) #61
commit-bot: I haz the power
3 years, 7 months ago (2017-05-01 23:45:05 UTC) #64
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/d90f48c21a3dd8c93bbfb9dc53cd...

Powered by Google App Engine
This is Rietveld 408576698