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

Issue 1396013004: Android: Replace EGL14 with EGL10 (Closed)

Created:
5 years, 2 months ago by magjed_webrtc
Modified:
5 years, 2 months ago
Reviewers:
AlexG, perkj_webrtc
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Android: Replace EGL14 with EGL10 The purpose with this change is to support older API levels by replacing EGL14 (API lvl 17) with EGL10 (API lvl 1). The main purpose is to lower API lvl requirement for SurfaceViewRenderer from API lvl 17 to API lvl 15. Also, camera texture capture will work on API lvl < 17 (and texture encode/decode in MediaCodec, but we don't use MediaCodec below API lvl 18?). GLSurfaceView/VideoRendererGui is already using EGL10. EGL 1.1 - 1.4 added new functionality, but won't affect performance. We don't need the functionality, so there should be no reason to not use EGL 1.0. I have profiled AppRTCDemo with Qualcomm Trepn Profiler on a Nexus 5 and Nexus 6 and couldn't see any difference. Specifically, this CL: * Update EglBase to use EGL10 instead of EGL14. * Update imports from EGL14 to EGL10 in a lot of files (plus changing import order in some cases). * Update VideoCapturerAndroid to always support texture capture. Committed: https://crrev.com/8c425aa8f66fc2f06df402a0f2163cb53373856f Cr-Commit-Position: refs/heads/master@{#10378}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 4

Patch Set 3 : Add comments for hardcoded EGL constants #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -197 lines) Patch
M talk/app/webrtc/androidtests/src/org/webrtc/GlRectDrawerTest.java View 4 chunks +9 lines, -9 lines 0 comments Download
M talk/app/webrtc/androidtests/src/org/webrtc/SurfaceTextureHelperTest.java View 6 chunks +12 lines, -11 lines 0 comments Download
M talk/app/webrtc/androidtests/src/org/webrtc/SurfaceViewRendererOnMeasureTest.java View 4 chunks +4 lines, -3 lines 0 comments Download
M talk/app/webrtc/androidtests/src/org/webrtc/VideoCapturerAndroidTest.java View 1 10 chunks +10 lines, -42 lines 0 comments Download
M talk/app/webrtc/java/android/org/webrtc/EglBase.java View 1 2 8 chunks +62 lines, -61 lines 0 comments Download
M talk/app/webrtc/java/android/org/webrtc/SurfaceTextureHelper.java View 1 2 chunks +2 lines, -1 line 0 comments Download
M talk/app/webrtc/java/android/org/webrtc/SurfaceViewRenderer.java View 1 2 chunks +2 lines, -1 line 0 comments Download
M talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java View 1 9 chunks +11 lines, -37 lines 0 comments Download
M talk/app/webrtc/java/android/org/webrtc/VideoRendererGui.java View 1 3 chunks +5 lines, -12 lines 0 comments Download
M talk/app/webrtc/java/jni/androidmediadecoder_jni.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M talk/app/webrtc/java/jni/classreferenceholder.cc View 1 2 chunks +1 line, -9 lines 0 comments Download
M talk/app/webrtc/java/jni/surfacetexturehelper_jni.cc View 1 1 chunk +9 lines, -7 lines 0 comments Download
M talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java View 1 2 chunks +2 lines, -1 line 0 comments Download
M webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 27 (16 generated)
magjed_webrtc
Alex - Can you help me manually test this CL?
5 years, 2 months ago (2015-10-20 22:50:40 UTC) #9
perkj_webrtc
On 2015/10/20 22:50:40, magjed_webrtc wrote: > Alex - Can you help me manually test this ...
5 years, 2 months ago (2015-10-21 03:30:22 UTC) #10
magjed_webrtc
On 2015/10/21 03:30:22, perkj1 wrote: > On 2015/10/20 22:50:40, magjed_webrtc wrote: > > Alex - ...
5 years, 2 months ago (2015-10-21 03:46:58 UTC) #11
perkj_webrtc
lgtm if the below is addressed. https://codereview.webrtc.org/1396013004/diff/40001/talk/app/webrtc/java/android/org/webrtc/EglBase.java File talk/app/webrtc/java/android/org/webrtc/EglBase.java (right): https://codereview.webrtc.org/1396013004/diff/40001/talk/app/webrtc/java/android/org/webrtc/EglBase.java#newcode46 talk/app/webrtc/java/android/org/webrtc/EglBase.java:46: private static final ...
5 years, 2 months ago (2015-10-21 15:26:57 UTC) #15
magjed_webrtc
https://codereview.webrtc.org/1396013004/diff/40001/talk/app/webrtc/java/android/org/webrtc/EglBase.java File talk/app/webrtc/java/android/org/webrtc/EglBase.java (right): https://codereview.webrtc.org/1396013004/diff/40001/talk/app/webrtc/java/android/org/webrtc/EglBase.java#newcode46 talk/app/webrtc/java/android/org/webrtc/EglBase.java:46: private static final int EGL_OPENGL_ES2_BIT = 4; On 2015/10/21 ...
5 years, 2 months ago (2015-10-21 21:54:35 UTC) #17
AlexG
May be it will be better to use same approach as MediaCodec and VideorendererGui was ...
5 years, 2 months ago (2015-10-22 00:15:41 UTC) #18
magjed_webrtc
Actually, the main purpose with this CL is to lower the API lvl requirement for ...
5 years, 2 months ago (2015-10-22 18:14:38 UTC) #21
AlexG
lgtm
5 years, 2 months ago (2015-10-22 21:22:51 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1396013004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1396013004/60001
5 years, 2 months ago (2015-10-22 23:06:53 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 2 months ago (2015-10-22 23:52:43 UTC) #26
commit-bot: I haz the power
5 years, 2 months ago (2015-10-22 23:52:56 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8c425aa8f66fc2f06df402a0f2163cb53373856f
Cr-Commit-Position: refs/heads/master@{#10378}

Powered by Google App Engine
This is Rietveld 408576698