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

Issue 2527203002: Mus: GpuCompositorFrameSink uses WeakPtrFactory (Closed)

Created:
4 years ago by Fady Samuel
Modified:
4 years ago
Reviewers:
yzshen1, sadrul
CC:
chromium-reviews, rjkroege
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mus: GpuCompositorFrameSink uses WeakPtrFactory A Surface can outlive the GpuCompositorFrameSink that created it. Submitting a CompositorFrame to a surface means that the draw callback could get called after GpuCompositorFrameSink is destroyed. By binding the draw callback to a weak ptr we ensure we don't call it if GpuCompositorFrameSink has been destroyed. BUG=668420 TBR=yzshen@chromium.org, sadrul@chromium.org Committed: https://crrev.com/029f79a574a4e032561ac44a72746c95814487dc Cr-Commit-Position: refs/heads/master@{#434347}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M services/ui/surfaces/gpu_compositor_frame_sink.h View 2 chunks +3 lines, -0 lines 0 comments Download
M services/ui/surfaces/gpu_compositor_frame_sink.cc View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
Fady Samuel
+yzshen@ who is cced on the bug. +sadrul@ FYI. I will TBR.
4 years ago (2016-11-24 15:39:48 UTC) #2
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/2527203002/1
4 years ago (2016-11-24 15:40:31 UTC) #5
yzshen1
On 2016/11/24 15:40:31, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years ago (2016-11-24 15:46:14 UTC) #6
Fady Samuel
On 2016/11/24 15:46:14, yzshen1 wrote: > On 2016/11/24 15:40:31, commit-bot: I haz the power wrote: ...
4 years ago (2016-11-24 15:54:22 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-11-24 16:38:37 UTC) #10
commit-bot: I haz the power
4 years ago (2016-11-24 16:41:09 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/029f79a574a4e032561ac44a72746c95814487dc
Cr-Commit-Position: refs/heads/master@{#434347}

Powered by Google App Engine
This is Rietveld 408576698