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

Issue 12388038: Android: Remove Surface cruft (Closed)

Created:
7 years, 9 months ago by no sievers
Modified:
7 years, 9 months ago
Reviewers:
palmer, bulach, qinmin, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, jam
Visibility:
Public.

Description

Android: Remove Surface cruft This removes unused Surface-related Java-level IPC plumbing. What is not needed anymore is the code to pass Surfaces to child processes. This was only used in a deprecated render path and for MediaPlayer being instantiated in the renderer (which is not supported anymore, it lives in the browser process now). NOTRY=True Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186356

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 5

Patch Set 3 : remove more 'manual JNI' code #

Total comments: 12

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : remove more unused, deprecated arguments #

Patch Set 7 : #

Total comments: 5

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 3

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -459 lines) Patch
M base/android/jni_generator/jni_generator_tests.py View 1 chunk +0 lines, -1 line 0 comments Download
M content/app/android/sandboxed_process_service.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/android/content_video_view.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/android/surface_texture_peer_browser_impl.h View 1 2 3 4 5 6 2 chunks +1 line, -10 lines 0 comments Download
M content/browser/android/surface_texture_peer_browser_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -39 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M content/common/android/common_jni_registrar.cc View 2 chunks +0 lines, -2 lines 0 comments Download
A content/common/android/scoped_java_surface.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +42 lines, -0 lines 0 comments Download
A content/common/android/scoped_java_surface.cc View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
D content/common/android/surface_callback.h View 1 chunk +0 lines, -58 lines 0 comments Download
D content/common/android/surface_callback.cc View 1 chunk +0 lines, -155 lines 0 comments Download
M content/common/android/surface_texture_bridge.cc View 1 2 3 3 chunks +4 lines, -8 lines 0 comments Download
M content/common/android/surface_texture_peer.h View 1 2 3 4 5 6 2 chunks +0 lines, -8 lines 0 comments Download
M content/common/gpu/gpu_channel.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M content/common/gpu/gpu_channel.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 5 6 2 chunks +1 line, -4 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -21 lines 0 comments Download
M content/common/gpu/stream_texture_manager_android.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
content/common/gpu/stream_texture_manager_android.cc View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M content/content_jni.gypi View 2 chunks +0 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/SandboxedProcessService.java View 1 2 3 4 5 6 5 chunks +2 lines, -10 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/BrowserProcessSurfaceTexture.java View 1 chunk +0 lines, -40 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/SandboxedProcessLauncher.java View 1 2 3 4 5 6 2 chunks +3 lines, -27 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/common/ISandboxedProcessCallback.aidl View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/common/ISandboxedProcessService.aidl View 1 chunk +0 lines, -3 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/common/SurfaceCallback.java View 1 chunk +0 lines, -32 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/gpu/stream_texture_host_android.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/gpu/stream_texture_host_android.cc View 1 2 3 4 5 6 1 chunk +2 lines, -5 lines 0 comments Download
M content/renderer/media/stream_texture_factory_impl_android.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
no sievers
This code is messy, I'm ripping out the unused paths here. Min, can you double-check ...
7 years, 9 months ago (2013-03-01 00:14:51 UTC) #1
no sievers
https://codereview.chromium.org/12388038/diff/1/content/public/android/java/src/org/chromium/content/browser/SandboxedProcessLauncher.java File content/public/android/java/src/org/chromium/content/browser/SandboxedProcessLauncher.java (right): https://codereview.chromium.org/12388038/diff/1/content/public/android/java/src/org/chromium/content/browser/SandboxedProcessLauncher.java#newcode280 content/public/android/java/src/org/chromium/content/browser/SandboxedProcessLauncher.java:280: // right media player instance. I should explain this ...
7 years, 9 months ago (2013-03-01 00:18:33 UTC) #2
qinmin
https://codereview.chromium.org/12388038/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (left): https://codereview.chromium.org/12388038/diff/1/content/renderer/render_view_impl.cc#oldcode2705 content/renderer/render_view_impl.cc:2705: if (cmd_line->HasSwitch(switches::kMediaPlayerInRenderProcess)) { keep this logic to create the ...
7 years, 9 months ago (2013-03-01 00:36:26 UTC) #3
no sievers
https://codereview.chromium.org/12388038/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (left): https://codereview.chromium.org/12388038/diff/1/content/renderer/render_view_impl.cc#oldcode2705 content/renderer/render_view_impl.cc:2705: if (cmd_line->HasSwitch(switches::kMediaPlayerInRenderProcess)) { On 2013/03/01 00:36:26, qinmin wrote: > ...
7 years, 9 months ago (2013-03-01 00:43:04 UTC) #4
qinmin
lgtm
7 years, 9 months ago (2013-03-01 03:32:17 UTC) #5
bulach
hey daniel, nice stuff! I have one suggestion below that could potentially simplify this a ...
7 years, 9 months ago (2013-03-01 11:38:23 UTC) #6
no sievers
https://codereview.chromium.org/12388038/diff/4002/content/browser/android/surface_texture_peer_browser_impl.cc File content/browser/android/surface_texture_peer_browser_impl.cc (right): https://codereview.chromium.org/12388038/diff/4002/content/browser/android/surface_texture_peer_browser_impl.cc#newcode50 content/browser/android/surface_texture_peer_browser_impl.cc:50: env, cls.obj(), "<init>", "(Landroid/graphics/SurfaceTexture;)V"); On 2013/03/01 11:38:24, bulach wrote: ...
7 years, 9 months ago (2013-03-01 22:29:12 UTC) #7
bulach
lgtm, I like this much better, thanks daniel! I still have some suggestions here, hopefully ...
7 years, 9 months ago (2013-03-04 10:44:51 UTC) #8
no sievers
https://codereview.chromium.org/12388038/diff/12001/content/common/android/surface.cc File content/common/android/surface.cc (right): https://codereview.chromium.org/12388038/diff/12001/content/common/android/surface.cc#newcode39 content/common/android/surface.cc:39: JNI_Surface::Java_Surface_release(env, j_surface_.obj()); On 2013/03/04 10:44:51, bulach wrote: > I ...
7 years, 9 months ago (2013-03-04 18:09:52 UTC) #9
bulach
still lgtm but some clarifications below: I think I'm just extending your proposal a little ...
7 years, 9 months ago (2013-03-04 18:48:51 UTC) #10
no sievers
On 2013/03/04 18:48:51, bulach wrote: > still lgtm but some clarifications below: I think I'm ...
7 years, 9 months ago (2013-03-04 19:57:38 UTC) #11
no sievers
+piman for content/ OWNERS. Missing OWNER reviewers for these files: content/common/gpu/gpu_channel.h content/renderer/gpu/stream_texture_host_android.h content/browser/browser_main_loop.cc content/renderer/gpu/stream_texture_host_android.cc content/common/gpu/media/android_video_decode_accelerator.cc ...
7 years, 9 months ago (2013-03-04 22:53:36 UTC) #12
piman
LGTM+nit https://codereview.chromium.org/12388038/diff/9028/content/common/android/scoped_java_surface.h File content/common/android/scoped_java_surface.h (right): https://codereview.chromium.org/12388038/diff/9028/content/common/android/scoped_java_surface.h#newcode24 content/common/android/scoped_java_surface.h:24: ScopedJavaSurface(const base::android::JavaRef<jobject>& surface); nit: explicit https://codereview.chromium.org/12388038/diff/9028/content/common/android/scoped_java_surface.h#newcode28 content/common/android/scoped_java_surface.h:28: ScopedJavaSurface(const ...
7 years, 9 months ago (2013-03-04 22:56:29 UTC) #13
no sievers
https://codereview.chromium.org/12388038/diff/9028/content/common/gpu/media/android_video_decode_accelerator.cc File content/common/gpu/media/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/12388038/diff/9028/content/common/gpu/media/android_video_decode_accelerator.cc#newcode9 content/common/gpu/media/android_video_decode_accelerator.cc:9: #include "base/android/jni_android.h" Ok, the jni includes and the 'using ...
7 years, 9 months ago (2013-03-04 22:56:40 UTC) #14
no sievers
https://codereview.chromium.org/12388038/diff/9028/content/common/android/scoped_java_surface.h File content/common/android/scoped_java_surface.h (right): https://codereview.chromium.org/12388038/diff/9028/content/common/android/scoped_java_surface.h#newcode24 content/common/android/scoped_java_surface.h:24: ScopedJavaSurface(const base::android::JavaRef<jobject>& surface); On 2013/03/04 22:56:29, piman wrote: > ...
7 years, 9 months ago (2013-03-04 22:59:16 UTC) #15
bulach
lgtm, android and the JNI is now much clearer, thanks a ton!! https://codereview.chromium.org/12388038/diff/6034/content/common/android/scoped_java_surface.h File content/common/android/scoped_java_surface.h ...
7 years, 9 months ago (2013-03-05 10:32:33 UTC) #16
no sievers
https://codereview.chromium.org/12388038/diff/6034/content/common/android/scoped_java_surface.h File content/common/android/scoped_java_surface.h (right): https://codereview.chromium.org/12388038/diff/6034/content/common/android/scoped_java_surface.h#newcode17 content/common/android/scoped_java_surface.h:17: // When going out of scope, release() is called ...
7 years, 9 months ago (2013-03-05 21:21:46 UTC) #17
no sievers
+palmer: Could you bless the changes to gpu_messages.h? Am just removing a field there.
7 years, 9 months ago (2013-03-05 21:30:22 UTC) #18
no sievers
+other Chris for removing a field from content/common/gpu/gpu_messages.h
7 years, 9 months ago (2013-03-06 00:08:56 UTC) #19
palmer
IPC security LGTM.
7 years, 9 months ago (2013-03-06 00:20:20 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/12388038/18001
7 years, 9 months ago (2013-03-06 00:26:38 UTC) #21
commit-bot: I haz the power
7 years, 9 months ago (2013-03-06 04:23:34 UTC) #22
Message was sent while issue was closed.
Change committed as 186356

Powered by Google App Engine
This is Rietveld 408576698