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

Issue 2706653002: Added SurfaceTextureGLOwner to create / own GL objects. (Closed)

Created:
3 years, 10 months ago by liberato (no reviews please)
Modified:
3 years, 9 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, piman+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added SurfaceTextureGLOwner to create / own GL objects. To simplify lifetime issues with surface textures, this L introduces SurfaceTextureGLOwner. It is a SurfaceTexture which creates and destroys the underlying GL objects. This CL also switches AVDAPictureBufferManager / SharedState to use SurfaceTextureGLOwner rather than maintaining them separately. BUG=618368 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/2706653002 Cr-Commit-Position: refs/heads/master@{#455180} Committed: https://chromium.googlesource.com/chromium/src/+/2744a14dfbc08a2e286aa9d7faab5c465b1910b8

Patch Set 1 #

Patch Set 2 : made destruction the same as before #

Total comments: 4

Patch Set 3 : added thread checker #

Patch Set 4 : Added (broken) unit test #

Total comments: 2

Patch Set 5 : unit tests #

Total comments: 4

Patch Set 6 : renamed tests #

Patch Set 7 : rebased #

Patch Set 8 : stopped including gl_initializer.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -60 lines) Patch
M media/gpu/BUILD.gn View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M media/gpu/avda_picture_buffer_manager.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M media/gpu/avda_picture_buffer_manager.cc View 1 2 3 4 5 6 3 chunks +11 lines, -20 lines 0 comments Download
M media/gpu/avda_shared_state.h View 1 4 chunks +10 lines, -18 lines 0 comments Download
M media/gpu/avda_shared_state.cc View 3 chunks +3 lines, -16 lines 0 comments Download
A media/gpu/surface_texture_gl_owner.h View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A media/gpu/surface_texture_gl_owner.cc View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
A media/gpu/surface_texture_gl_owner_unittest.cc View 1 2 3 4 5 6 7 1 chunk +113 lines, -0 lines 0 comments Download
M ui/gl/android/surface_texture.h View 1 2 chunks +10 lines, -3 lines 0 comments Download
M ui/gl/android/surface_texture.cc View 1 2 chunks +14 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 49 (28 generated)
liberato (no reviews please)
watk: this should be a no-op change to set up some of the other AVDA ...
3 years, 10 months ago (2017-02-21 22:36:49 UTC) #13
watk
nice, lgtm https://codereview.chromium.org/2706653002/diff/20001/media/gpu/surface_texture_gl_owner.h File media/gpu/surface_texture_gl_owner.h (right): https://codereview.chromium.org/2706653002/diff/20001/media/gpu/surface_texture_gl_owner.h#newcode6 media/gpu/surface_texture_gl_owner.h:6: #define MEDIA_GPU_AVDA_SURFACE_TEXTURE_GL_OWNER_H_ remove AVDA https://codereview.chromium.org/2706653002/diff/20001/media/gpu/surface_texture_gl_owner.h#newcode19 media/gpu/surface_texture_gl_owner.h:19: class ...
3 years, 10 months ago (2017-02-21 23:18:31 UTC) #14
liberato (no reviews please)
https://codereview.chromium.org/2706653002/diff/20001/media/gpu/surface_texture_gl_owner.h File media/gpu/surface_texture_gl_owner.h (right): https://codereview.chromium.org/2706653002/diff/20001/media/gpu/surface_texture_gl_owner.h#newcode6 media/gpu/surface_texture_gl_owner.h:6: #define MEDIA_GPU_AVDA_SURFACE_TEXTURE_GL_OWNER_H_ On 2017/02/21 23:18:31, watk wrote: > remove ...
3 years, 10 months ago (2017-02-22 01:22:46 UTC) #17
Ken Russell (switch to Gerrit)
Looks fine overall. What tests cover these code paths though?
3 years, 10 months ago (2017-02-22 01:33:31 UTC) #18
liberato (no reviews please)
On 2017/02/22 01:33:31, Ken Russell wrote: > Looks fine overall. What tests cover these code ...
3 years, 10 months ago (2017-02-22 18:00:08 UTC) #21
liberato (no reviews please)
On 2017/02/22 18:00:08, liberato wrote: > On 2017/02/22 01:33:31, Ken Russell wrote: > > Looks ...
3 years, 10 months ago (2017-02-22 22:49:00 UTC) #22
Ken Russell (switch to Gerrit)
Your new unittest looks good in general. See the specific comment about a potential source ...
3 years, 10 months ago (2017-02-23 02:38:09 UTC) #23
liberato (no reviews please)
https://codereview.chromium.org/2706653002/diff/60001/media/gpu/surface_texture_gl_owner_unittest.cc File media/gpu/surface_texture_gl_owner_unittest.cc (right): https://codereview.chromium.org/2706653002/diff/60001/media/gpu/surface_texture_gl_owner_unittest.cc#newcode82 media/gpu/surface_texture_gl_owner_unittest.cc:82: // Which is: 1281 On 2017/02/23 02:38:09, Ken Russell ...
3 years, 10 months ago (2017-02-23 05:43:35 UTC) #24
liberato (no reviews please)
kbr: thanks for all the help! PTAL @ unit tests. thanks -fl
3 years, 10 months ago (2017-02-23 17:42:15 UTC) #25
watk
Nice test! lgtm https://codereview.chromium.org/2706653002/diff/80001/media/gpu/surface_texture_gl_owner_unittest.cc File media/gpu/surface_texture_gl_owner_unittest.cc (right): https://codereview.chromium.org/2706653002/diff/80001/media/gpu/surface_texture_gl_owner_unittest.cc#newcode59 media/gpu/surface_texture_gl_owner_unittest.cc:59: surface_ = nullptr; These are all ...
3 years, 10 months ago (2017-02-23 19:52:40 UTC) #26
Ken Russell (switch to Gerrit)
Very nice. LGTM. Please watch the bots to make sure the new tests are reliable.
3 years, 10 months ago (2017-02-24 00:48:45 UTC) #27
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/2706653002/120001
3 years, 9 months ago (2017-03-06 21:43:45 UTC) #31
liberato (no reviews please)
thanks for all the comments. (sorry for the delay -- waited until i was back ...
3 years, 9 months ago (2017-03-06 21:43:56 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/222914) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 9 months ago (2017-03-06 21:49:21 UTC) #34
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/2706653002/140001
3 years, 9 months ago (2017-03-06 22:55:37 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/395105)
3 years, 9 months ago (2017-03-07 00:49:15 UTC) #39
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/2706653002/140001
3 years, 9 months ago (2017-03-07 01:14:38 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/378953)
3 years, 9 months ago (2017-03-07 04:34:26 UTC) #43
Ken Russell (switch to Gerrit)
On 2017/03/07 04:34:26, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 9 months ago (2017-03-07 06:13:34 UTC) #44
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/2706653002/140001
3 years, 9 months ago (2017-03-07 17:29:39 UTC) #46
commit-bot: I haz the power
3 years, 9 months ago (2017-03-07 19:51:05 UTC) #49
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/2744a14dfbc08a2e286aa9d7faab...

Powered by Google App Engine
This is Rietveld 408576698