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

Issue 43463003: Remember value of IsImplSidePaintingEnabled (Closed)

Created:
7 years, 1 month ago by Tom Hudson
Modified:
7 years, 1 month ago
Reviewers:
danakj, nduca, Sami, tomhudson
CC:
chromium-reviews, cc-bugs_chromium.org, Sami (do not use)
Visibility:
Public.

Description

Remember value of IsImplSidePaintingEnabled Command line arguments are constant at runtime, but the function cc::switches::IsImplSidePaintingEnabled() does two searches through the list of arguments every time it's called, and it's called every time we record a SkPicture. With this patch, the function remembers the value determined by the first call and avoids repeating the searches on subsequent calls. BUG=311248 R=nduca@chromium.org,skyostil@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231314

Patch Set 1 #

Patch Set 2 : Sami's review #

Patch Set 3 : Brace style not caught by presubmit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M cc/base/switches.cc View 1 2 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Tom Hudson
Marginal speedup for Picture::Record, but it's something that was showing up on the CPU profiles. ...
7 years, 1 month ago (2013-10-25 09:56:08 UTC) #1
Tom Hudson
Having talked to Sami about this, I'd meant to cc: him.
7 years, 1 month ago (2013-10-25 10:03:01 UTC) #2
Sami
A simpler way to write this would be: namespace { bool CheckImplSidePaintingStatus() { const CommandLine& ...
7 years, 1 month ago (2013-10-25 10:33:13 UTC) #3
Tom Hudson
On 2013/10/25 10:33:13, Sami wrote: > A simpler way to write this would be: Done.
7 years, 1 month ago (2013-10-25 11:09:03 UTC) #4
Sami
lgtm, thanks. For extra credit make this generic and convert the other getters in this ...
7 years, 1 month ago (2013-10-25 11:12:28 UTC) #5
danakj
On 2013/10/25 11:12:28, Sami wrote: > lgtm, thanks. For extra credit make this generic and ...
7 years, 1 month ago (2013-10-25 18:58:59 UTC) #6
danakj
LGTM2
7 years, 1 month ago (2013-10-25 18:59:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tomhudson@chromium.org/43463003/10002
7 years, 1 month ago (2013-10-28 09:12:30 UTC) #8
commit-bot: I haz the power
7 years, 1 month ago (2013-10-28 12:17:21 UTC) #9
Message was sent while issue was closed.
Change committed as 231314

Powered by Google App Engine
This is Rietveld 408576698