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

Issue 467183003: Minor scoped_refptr cleanup in cc::OutputSurface. (Closed)

Created:
6 years, 3 months ago by dcheng
Modified:
6 years, 3 months ago
Reviewers:
danakj, jamesr, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, Ryan Sleevi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Minor scoped_refptr cleanup in cc::OutputSurface. Using const scoped_refptr<T>& is more efficient when passing a scoped_refptr<T> to a function or returning a scoped_refptr<T> from an accessor. It avoids the creation of a temporary scoped_refptr and reduces refcount churn. BUG=none Committed: https://crrev.com/6afa1700e5019cce52fdb1d498d1d7ece69e3a2c Cr-Commit-Position: refs/heads/master@{#291955}

Patch Set 1 #

Patch Set 2 : With raw pointer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -20 lines) Patch
M cc/output/gl_renderer_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M cc/output/output_surface.h View 1 2 chunks +4 lines, -5 lines 0 comments Download
M cc/output/output_surface.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M cc/output/renderer_pixeltest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/resource_provider.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/video_resource_updater_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/test/layer_tree_test.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_delegated.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/compositor_output_surface.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
dcheng
dcheng@chromium.org changed reviewers: + danakj@chromium.org, enne@chromium.org
6 years, 3 months ago (2014-08-26 15:24:53 UTC) #1
dcheng
This was mentioned yesterday in the review of https://codereview.chromium.org/500123003 (one of the scoped_refptr implicit conversion ...
6 years, 3 months ago (2014-08-26 15:24:53 UTC) #2
danakj
LGTM Did you try changing this to a ContextProvider*? Was there something that needed to ...
6 years, 3 months ago (2014-08-26 15:35:18 UTC) #3
dcheng
PTAL. I've changed context_provider() to return a raw pointer and it seems fine--all callsites were ...
6 years, 3 months ago (2014-08-26 16:00:07 UTC) #4
danakj
LGTM!
6 years, 3 months ago (2014-08-26 16:19:01 UTC) #5
danakj
danakj@chromium.org changed reviewers: + jamesr@chromium.org
6 years, 3 months ago (2014-08-26 16:19:16 UTC) #6
danakj
+jamesr for content/renderer/gpu
6 years, 3 months ago (2014-08-26 16:19:16 UTC) #7
jamesr
lgtm
6 years, 3 months ago (2014-08-26 17:11:01 UTC) #8
dcheng
The CQ bit was checked by dcheng@chromium.org
6 years, 3 months ago (2014-08-26 17:15:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/467183003/20001
6 years, 3 months ago (2014-08-26 17:16:48 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-26 18:17:01 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (20001) as bf056c37ea2fa74299a203dd9917004d78cc5b05
6 years, 3 months ago (2014-08-26 19:11:49 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:44:34 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6afa1700e5019cce52fdb1d498d1d7ece69e3a2c
Cr-Commit-Position: refs/heads/master@{#291955}

Powered by Google App Engine
This is Rietveld 408576698