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

Issue 160073005: Cache the boolean value in instance variable instead of calling usingDelegatedRenderer (Closed)

Created:
6 years, 10 months ago by sivag
Modified:
6 years, 10 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Cache the boolean value in usingDelegatedRenderer. As we are going to use this api at many places, caching the value at the first instance, will save the checking every time. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251665

Patch Set 1 : Cache the boolean value in usingDelegatedRenderer #

Total comments: 2

Patch Set 2 : Replaced the usage of UsingDelegatedRenderer with instance variable. #

Total comments: 2

Patch Set 3 : Remove usingdelegatedrenderer function and make code inline. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -17 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 5 chunks +9 lines, -17 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
sivag
PTAL..
6 years, 10 months ago (2014-02-12 11:59:00 UTC) #1
no sievers
https://codereview.chromium.org/160073005/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/160073005/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode108 content/browser/renderer_host/render_widget_host_view_android.cc:108: static bool g_using_delegated_renderer = nit: remove 'g_' prefix since ...
6 years, 10 months ago (2014-02-12 17:36:59 UTC) #2
aelias_OOO_until_Jul13
I'm not a fan of this. statics and globals have a way of coming back ...
6 years, 10 months ago (2014-02-12 19:36:48 UTC) #3
aelias_OOO_until_Jul13
Also, we're converging on delegated rendering everywhere, and when that happens we can just delete ...
6 years, 10 months ago (2014-02-12 23:02:34 UTC) #4
sivag
On 2014/02/12 19:36:48, aelias wrote: > I'm not a fan of this. statics and globals ...
6 years, 10 months ago (2014-02-13 16:53:13 UTC) #5
sivag
On 2014/02/12 23:02:34, aelias wrote: > Also, we're converging on delegated rendering everywhere, and when ...
6 years, 10 months ago (2014-02-14 11:30:20 UTC) #6
sivag
PTAL..
6 years, 10 months ago (2014-02-14 11:30:50 UTC) #7
no sievers
lgtm with 1 nit https://codereview.chromium.org/160073005/diff/90001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/160073005/diff/90001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode159 content/browser/renderer_host/render_widget_host_view_android.cc:159: using_delegated_renderer_(UsingDelegatedRenderer()) { I'd remove the ...
6 years, 10 months ago (2014-02-14 18:42:47 UTC) #8
aelias_OOO_until_Jul13
lgtm modulo same comment as sievers@
6 years, 10 months ago (2014-02-14 19:18:20 UTC) #9
sivag
https://codereview.chromium.org/160073005/diff/90001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/160073005/diff/90001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode159 content/browser/renderer_host/render_widget_host_view_android.cc:159: using_delegated_renderer_(UsingDelegatedRenderer()) { On 2014/02/14 18:42:48, sievers wrote: > I'd ...
6 years, 10 months ago (2014-02-17 07:51:13 UTC) #10
sivag
The CQ bit was checked by siva.gunturi@samsung.com
6 years, 10 months ago (2014-02-17 07:51:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/siva.gunturi@samsung.com/160073005/170001
6 years, 10 months ago (2014-02-17 07:51:28 UTC) #12
commit-bot: I haz the power
6 years, 10 months ago (2014-02-17 12:33:52 UTC) #13
Message was sent while issue was closed.
Change committed as 251665

Powered by Google App Engine
This is Rietveld 408576698