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

Issue 1967553002: DO NOT COMMIT - DialogSurface initial implementation. (Closed)

Created:
4 years, 7 months ago by liberato (no reviews please)
Modified:
4 years, 4 months ago
Reviewers:
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DialogSurface initial implementation. This CL has been split up into: https://codereview.chromium.org/2178973004 https://codereview.chromium.org/2220623002/ This CL adds support for getting Android Surfaces via Dialog, rather than via SurfaceView. These are constructed in the browser process. If one is willing to send the window token from the browser to the gpu, then the dialogs may be created directly in the gpu process as well. Positioning is exposed directly via the native wrappers. In the current CL, the position is not adjusted for the compositor's screen position, just to simplify the CL. BUG=618368 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel

Patch Set 1 #

Patch Set 2 : fixes and cleanup. #

Patch Set 3 : rebased. #

Patch Set 4 : works in browser or gpu process. #

Patch Set 5 : renamed #

Patch Set 6 : remove gpu surfaces. now only in the browser. #

Patch Set 7 : removed example code in avda. see ps6 for how to use. #

Patch Set 8 : added check for gpu process for dialog surface manager. #

Total comments: 14

Patch Set 9 : cl feedback #

Patch Set 10 : rename SurfaceDialogController to SurfaceDialog #

Patch Set 11 : started getting activity for the render frame. #

Patch Set 12 : removed ExtraConfig to make Cl smaller #

Patch Set 13 : cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1474 lines, -16 lines) Patch
M content/app/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/app/android/app_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -2 lines 0 comments Download
M content/app/android/child_process_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +14 lines, -1 line 0 comments Download
A content/app/android/dialog_surface_activity_mapper.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -0 lines 0 comments Download
A content/app/android/dialog_surface_activity_mapper.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +61 lines, -0 lines 0 comments Download
M content/content_jni.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +14 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/DialogSurfaceActivityMapper.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +44 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/gpu_ipc_common.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/ipc/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
A gpu/ipc/common/dialog_surface_lookup.h View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
A + gpu/ipc/common/dialog_surface_lookup.cc View 1 2 3 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M media/base/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 4 chunks +28 lines, -0 lines 0 comments Download
A media/base/android/dialog_surface.h View 1 2 3 4 5 6 7 8 9 1 chunk +92 lines, -0 lines 0 comments Download
A media/base/android/dialog_surface.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +87 lines, -0 lines 0 comments Download
A media/base/android/dialog_surface_callback.h View 1 2 3 4 5 6 7 8 9 1 chunk +79 lines, -0 lines 0 comments Download
A media/base/android/dialog_surface_callback.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +165 lines, -0 lines 0 comments Download
A media/base/android/dialog_surface_manager.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +67 lines, -0 lines 0 comments Download
A media/base/android/dialog_surface_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +87 lines, -0 lines 0 comments Download
A media/base/android/java/src/org/chromium/media/DialogSurface.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +296 lines, -0 lines 0 comments Download
A media/base/android/java/src/org/chromium/media/DialogSurfaceCallback.java View 1 2 3 4 5 6 7 8 1 chunk +34 lines, -0 lines 0 comments Download
A media/base/android/java/src/org/chromium/media/DialogSurfaceManager.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +121 lines, -0 lines 0 comments Download
A media/base/android/java/src/org/chromium/media/DialogSurfaceManagerWrapper.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +57 lines, -0 lines 0 comments Download
A media/base/android/java/src/org/chromium/media/DialogSurfaceWrapper.java View 1 2 3 4 5 6 7 8 9 1 chunk +57 lines, -0 lines 0 comments Download
A media/base/android/java/src/org/chromium/media/IDialogSurface.aidl View 1 2 3 4 5 6 7 8 9 1 chunk +23 lines, -0 lines 0 comments Download
A media/base/android/java/src/org/chromium/media/IDialogSurfaceActivityMapper.aidl View 1 2 3 4 5 6 7 8 9 10 1 chunk +25 lines, -0 lines 0 comments Download
A + media/base/android/java/src/org/chromium/media/IDialogSurfaceCallback.aidl View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -7 lines 0 comments Download
A media/base/android/java/src/org/chromium/media/IDialogSurfaceManager.aidl View 1 2 3 4 5 6 7 8 9 10 1 chunk +25 lines, -0 lines 0 comments Download
A + media/base/android/java/src/org/chromium/media/common.aidl View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M media/base/android/media_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (11 generated)
liberato (no reviews please)
just FYI - not ready for review. i'm going to split this up into several ...
4 years, 7 months ago (2016-05-13 21:28:16 UTC) #4
liberato (no reviews please)
it's now ready to review. mind taking a first pass at it before i open ...
4 years, 6 months ago (2016-06-08 17:40:32 UTC) #9
liberato (no reviews please)
per offline discussion with watk@, opening this up for a bit wider review. see PS6 ...
4 years, 6 months ago (2016-06-08 22:19:55 UTC) #11
DaleCurtis
Haven't looked through this much yet, but if you're going to use these dialog surfaces ...
4 years, 6 months ago (2016-06-09 18:39:33 UTC) #12
liberato (no reviews please)
On 2016/06/09 18:39:33, DaleCurtis wrote: > Haven't looked through this much yet, but if you're ...
4 years, 6 months ago (2016-06-09 18:45:09 UTC) #13
watk
Just publishing nits I came across while doing a quick read over. I haven't got ...
4 years, 6 months ago (2016-06-10 21:46:39 UTC) #14
liberato (no reviews please)
thanks for the feedback. after some offline discussion, i think that i'll take dale's suggestion ...
4 years, 6 months ago (2016-06-10 22:50:05 UTC) #15
DaleCurtis
Thinking longer term, should this just be a specialization of gfx::Surface? Or, at least designed ...
4 years, 6 months ago (2016-06-13 17:46:15 UTC) #16
liberato (no reviews please)
On 2016/06/13 17:46:15, DaleCurtis wrote: > Thinking longer term, should this just be a specialization ...
4 years, 6 months ago (2016-06-13 18:05:26 UTC) #17
DaleCurtis
I don't have any strongly-formed thoughts :) You'll need to chat further with the compositing ...
4 years, 6 months ago (2016-06-13 18:15:14 UTC) #18
liberato (no reviews please)
4 years, 6 months ago (2016-06-13 18:30:38 UTC) #19
On 2016/06/13 18:15:14, DaleCurtis wrote:
> I don't have any strongly-formed thoughts :) You'll need to chat further with
> the compositing and GPU folks if you think the idea is appealing. My only
> thought was that we might already have an abstraction system for
> platform-specific surfaces -- in which case ensuring we can drop in later
sounds
> reasonable. It's possible no such system exists.

makes sense.  it'd be nice if it does, and we can do as you suggest.  i'll chat
with sievers to see if he has thoughts on how best to do it.

also, i updated the design doc.  it should make things clearer now.  i
completely forgot that i wrote one a while ago.  :)

Powered by Google App Engine
This is Rietveld 408576698