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

Issue 1176643002: Use callback instead of weak pointer in OutputSurfaceWithoutParent. (Closed)

Created:
5 years, 6 months ago by sunnyps
Modified:
5 years, 6 months ago
Reviewers:
no sievers
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@output_surface_task_runner
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use callback instead of weak pointer in OutputSurfaceWithoutParent. Using a weak ptr for compositor_impl_ is unnecessary if we are not checking for null. Using a callback with an unretained ptr is better. Committed: https://crrev.com/b4b56fbc7d91881982884dee01ae8de7459463fc Cr-Commit-Position: refs/heads/master@{#333622}

Patch Set 1 #

Patch Set 2 : Remove unused var. #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -7 lines) Patch
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176643002/1
5 years, 6 months ago (2015-06-09 20:29:43 UTC) #2
sunnyps
PTAL
5 years, 6 months ago (2015-06-09 22:01:46 UTC) #6
no sievers
lgtm https://codereview.chromium.org/1176643002/diff/40001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/1176643002/diff/40001/content/browser/renderer_host/compositor_impl_android.cc#newcode648 content/browser/renderer_host/compositor_impl_android.cc:648: weak_factory_.GetWeakPtr()))); The OutputSurface should not be able to ...
5 years, 6 months ago (2015-06-09 22:48:30 UTC) #7
sunnyps
Changed the weak ptr to base::Unretained and updated the commit message. https://codereview.chromium.org/1176643002/diff/40001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): ...
5 years, 6 months ago (2015-06-09 23:39:35 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1176643002/60001
5 years, 6 months ago (2015-06-09 23:40:46 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 6 months ago (2015-06-10 00:45:23 UTC) #12
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 00:46:43 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b4b56fbc7d91881982884dee01ae8de7459463fc
Cr-Commit-Position: refs/heads/master@{#333622}

Powered by Google App Engine
This is Rietveld 408576698