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

Issue 2449993005: Remove GLImage::Destroy(). (Closed)

Created:
4 years, 1 month ago by sandersd (OOO until July 31)
Modified:
4 years, 1 month ago
Reviewers:
piman, ccameron, reveman, hshi1
CC:
chromium-reviews, feature-media-reviews_chromium.org, mac-reviews_chromium.org, miu+watch_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove GLImage::Destroy(). Since there are no longer any implementations that depend on the GL context for destruction, we can remove this and simplify the GLImage interface. In particular, it will now be possible to hand ownership of GLImages entirely to a Texture. BUG=602708 CQ_INCLUDE_TRYBOTS=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 Committed: https://crrev.com/c1d469cc0c952d1e63836ada51659637d36db5e8 Cr-Commit-Position: refs/heads/master@{#428915}

Patch Set 1 #

Patch Set 2 : Remove GLImage::Destroy(). #

Total comments: 4

Patch Set 3 : Fix CrOS and Mac. #

Patch Set 4 : reset() -> = nullptr #

Patch Set 5 : One more Destroy() call on Mac. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -159 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 chunks +1 line, -5 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc View 1 1 chunk +1 line, -4 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/image_manager.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/service/image_manager.cc View 1 1 chunk +2 lines, -11 lines 0 comments Download
M gpu/command_buffer/service/texture_definition.cc View 1 2 chunks +0 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/texture_manager_unittest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/tests/texture_image_factory.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M gpu/ipc/service/stream_texture_android.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M gpu/ipc/service/stream_texture_android.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M media/gpu/avda_codec_image.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M media/gpu/avda_codec_image.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M media/gpu/vaapi_drm_picture.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M media/gpu/vaapi_tfp_picture.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M media/gpu/vt_video_decode_accelerator_mac.cc View 1 2 3 4 2 chunks +1 line, -5 lines 0 comments Download
M ui/accelerated_widget_mac/ca_layer_tree_unittest_mac.mm View 1 2 8 chunks +1 line, -16 lines 0 comments Download
M ui/gl/gl_image.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M ui/gl/gl_image_egl.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_image_egl.cc View 1 2 2 chunks +8 lines, -14 lines 0 comments Download
M ui/gl/gl_image_glx.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_image_glx.cc View 1 2 2 chunks +2 lines, -8 lines 0 comments Download
M ui/gl/gl_image_io_surface.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_image_io_surface.mm View 1 2 chunks +0 lines, -7 lines 0 comments Download
M ui/gl/gl_image_memory.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_image_memory.cc View 1 2 chunks +1 line, -7 lines 0 comments Download
M ui/gl/gl_image_ref_counted_memory.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_image_ref_counted_memory.cc View 1 2 chunks +1 line, -8 lines 0 comments Download
M ui/gl/gl_image_shared_memory.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_image_shared_memory.cc View 1 2 chunks +1 line, -8 lines 0 comments Download
M ui/gl/gl_image_stub.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_image_surface_texture.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/gl/gl_image_surface_texture.cc View 1 2 chunks +0 lines, -8 lines 0 comments Download
M ui/gl/test/gl_image_test_template.h View 1 7 chunks +4 lines, -14 lines 0 comments Download
M ui/ozone/demo/surfaceless_gl_renderer.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/ozone/gl/gl_image_ozone_native_pixmap.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/ozone/gl/gl_image_ozone_native_pixmap.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M ui/ozone/platform/drm/gpu/gbm_surface.cc View 1 2 3 2 chunks +2 lines, -7 lines 0 comments Download

Messages

Total messages: 43 (27 generated)
sandersd (OOO until July 31)
piman@: This is the same strategy we used for AVDACodecImage, and for the same purpose. ...
4 years, 1 month ago (2016-10-26 20:20:26 UTC) #2
piman
+reveman In general I am very supportive of not having a Destroy() on GLImage, especially ...
4 years, 1 month ago (2016-10-26 21:28:30 UTC) #4
reveman
The GLImage code has changed significantly since Destroy function was introduced and it looks like ...
4 years, 1 month ago (2016-10-27 04:35:14 UTC) #5
sandersd (OOO until July 31)
On 2016/10/27 04:35:14, reveman wrote: > The GLImage code has changed significantly since Destroy function ...
4 years, 1 month ago (2016-10-27 17:41:09 UTC) #6
reveman
On 2016/10/27 at 17:41:09, sandersd wrote: > On 2016/10/27 04:35:14, reveman wrote: > > The ...
4 years, 1 month ago (2016-10-27 17:53:33 UTC) #7
reveman
On 2016/10/27 at 17:41:09, sandersd wrote: > On 2016/10/27 04:35:14, reveman wrote: > > The ...
4 years, 1 month ago (2016-10-27 17:53:34 UTC) #8
sandersd (OOO until July 31)
hshi@: Please review ui/ozone/. all: This CL now removes GLImage::Destroy() entirely (and ImageManager::Destroy() too). PTAL.
4 years, 1 month ago (2016-10-27 19:15:49 UTC) #14
piman
lgtm, very nice!
4 years, 1 month ago (2016-10-27 19:39:57 UTC) #15
reveman
lgtm https://codereview.chromium.org/2449993005/diff/20001/ui/gl/gl_image_egl.cc File ui/gl/gl_image_egl.cc (right): https://codereview.chromium.org/2449993005/diff/20001/ui/gl/gl_image_egl.cc#newcode24 ui/gl/gl_image_egl.cc:24: egl_image_ = EGL_NO_IMAGE_KHR; nit: no need for this ...
4 years, 1 month ago (2016-10-27 20:01:45 UTC) #18
sandersd (OOO until July 31)
ccameron@chromium.org: Please review ui/accelerated_widget_mac/. https://codereview.chromium.org/2449993005/diff/20001/ui/gl/gl_image_egl.cc File ui/gl/gl_image_egl.cc (right): https://codereview.chromium.org/2449993005/diff/20001/ui/gl/gl_image_egl.cc#newcode24 ui/gl/gl_image_egl.cc:24: egl_image_ = EGL_NO_IMAGE_KHR; On 2016/10/27 ...
4 years, 1 month ago (2016-10-27 20:13:09 UTC) #20
hshi1
ui/ozone LGTM
4 years, 1 month ago (2016-10-27 20:15:11 UTC) #24
sandersd (OOO until July 31)
On 2016/10/27 20:15:11, hshi1 wrote: > ui/ozone LGTM ccameron@: ping.
4 years, 1 month ago (2016-11-01 00:13:00 UTC) #35
ccameron
lgtm
4 years, 1 month ago (2016-11-01 00:16:36 UTC) #36
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/2449993005/80001
4 years, 1 month ago (2016-11-01 00:26:15 UTC) #39
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 1 month ago (2016-11-01 02:24:52 UTC) #41
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 02:26:49 UTC) #43
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c1d469cc0c952d1e63836ada51659637d36db5e8
Cr-Commit-Position: refs/heads/master@{#428915}

Powered by Google App Engine
This is Rietveld 408576698