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

Issue 2898953002: Remove SupportsWeakPtr inheritance from GLES2Decoder (Closed)

Created:
3 years, 7 months ago by Chandan
Modified:
3 years, 7 months ago
Reviewers:
Zhenyao Mo, piman
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove SupportsWeakPtr inheritance from GLES2Decoder SupportsWeakPtr's weak pointers are invalidated only after derived class members are destroyed which may lead to use-after-destroy issues. This CL removes SupportsWeakPtr from GLES2Decoder and adds a WeakPtrFactory instance to each of its subclasses. BUG=None 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/2898953002 Cr-Commit-Position: refs/heads/master@{#473962} Committed: https://chromium.googlesource.com/chromium/src/+/0b3fe7fdedf2eb52860ccac16bd8c04822c156b2

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -14 lines) Patch
M gpu/command_buffer/service/context_group.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 2 chunks +3 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 7 chunks +16 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 2 chunks +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h View 2 chunks +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 13 (9 generated)
Chandan
PTAL. Thank you.
3 years, 7 months ago (2017-05-23 14:00:43 UTC) #7
Zhenyao Mo
lgtm
3 years, 7 months ago (2017-05-23 17:10:38 UTC) #8
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/2898953002/1
3 years, 7 months ago (2017-05-23 17:31:29 UTC) #10
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 17:39:24 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/0b3fe7fdedf2eb52860ccac16bd8...

Powered by Google App Engine
This is Rietveld 408576698