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

Issue 1303373005: Android GlUtil: Add helper functions generateTexture/deleteTexture (Closed)

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

Description

Android GlUtil: Add helper functions generateTexture/deleteTexture The purpose with this CL is to remove some code bloat. A subtle change is that GL_TEXTURE_MIN_FILTER in MediaCodecVideoDecoder is changed from GL_NEAREST to GL_LINEAR. This may lead to slightly worse performance when the decoded video is rendered minified, but with better visual quality. After reading https://crbug.com/351458 and the fix https://codereview.chromium.org/713603002 I think this is the right choice. BUG=webrtc:4742 R=hbos@webrtc.org, tommi@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/1a591ddc7e6529e57a27f4a8f133ddd14a7ead16

Patch Set 1 : #

Total comments: 8

Patch Set 2 : addressing hbos@ comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -69 lines) Patch
M talk/app/webrtc/androidtests/src/org/webrtc/GlRectDrawerTest.java View 1 chunk +1 line, -12 lines 0 comments Download
M talk/app/webrtc/java/android/org/webrtc/GlUtil.java View 1 1 chunk +16 lines, -0 lines 0 comments Download
M talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java View 1 3 chunks +6 lines, -22 lines 2 comments Download
M talk/app/webrtc/java/android/org/webrtc/VideoRendererGui.java View 1 2 chunks +4 lines, -14 lines 0 comments Download
M talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java View 1 2 chunks +4 lines, -21 lines 2 comments Download

Messages

Total messages: 12 (4 generated)
magjed_webrtc
tommi - Please take a look.
5 years, 3 months ago (2015-09-01 13:58:41 UTC) #3
magjed_webrtc
hbos - Can you take a look instead?
5 years, 3 months ago (2015-09-02 07:18:57 UTC) #5
hbos
https://codereview.webrtc.org/1303373005/diff/20001/talk/app/webrtc/java/android/org/webrtc/GlUtil.java File talk/app/webrtc/java/android/org/webrtc/GlUtil.java (right): https://codereview.webrtc.org/1303373005/diff/20001/talk/app/webrtc/java/android/org/webrtc/GlUtil.java#newcode82 talk/app/webrtc/java/android/org/webrtc/GlUtil.java:82: GLES20.glDeleteTextures(1, textureArray, 0); If you want this to be ...
5 years, 3 months ago (2015-09-02 08:57:55 UTC) #6
magjed_webrtc
hbos - Please take another look. https://codereview.webrtc.org/1303373005/diff/20001/talk/app/webrtc/java/android/org/webrtc/GlUtil.java File talk/app/webrtc/java/android/org/webrtc/GlUtil.java (right): https://codereview.webrtc.org/1303373005/diff/20001/talk/app/webrtc/java/android/org/webrtc/GlUtil.java#newcode82 talk/app/webrtc/java/android/org/webrtc/GlUtil.java:82: GLES20.glDeleteTextures(1, textureArray, 0); ...
5 years, 3 months ago (2015-09-02 10:15:39 UTC) #8
hbos
lgtm https://codereview.webrtc.org/1303373005/diff/20001/talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java File talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java (right): https://codereview.webrtc.org/1303373005/diff/20001/talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java#newcode84 talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java:84: private int cameraGlTexture = -1; On 2015/09/02 10:15:39, ...
5 years, 3 months ago (2015-09-02 11:10:39 UTC) #9
magjed_webrtc
tommi@ - I need a stamp for: talk/app/webrtc/androidtests/src/org/webrtc/GlRectDrawerTest.java talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java I guess we should move MediaCodecVideoDecoder.java ...
5 years, 3 months ago (2015-09-02 11:50:14 UTC) #10
tommi
rs lgtm. agree that moving to android/ makes sense.
5 years, 3 months ago (2015-09-02 12:08:04 UTC) #11
magjed_webrtc
5 years, 3 months ago (2015-09-02 12:43:23 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:60001) manually as
1a591ddc7e6529e57a27f4a8f133ddd14a7ead16 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698