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

Issue 1903503002: Remove static initializer for SkOpts::Init() (Closed)

Created:
4 years, 8 months ago by mtklein_C
Modified:
4 years, 8 months ago
Reviewers:
jcgregorio, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Remove static initializer for SkOpts::Init() Static initializers run in a confusing unspecified order, so it's best to have as few of them as possible. Most tools and clients I can find already call SkGraphics::Init(), (or equivalently create an SkAutoGraphics) which calls SkOpts::Init(): - Chrome - Chrome renderer - Android - DM - nanobench - SampleApp - VisualBench - the old debugger Seems like the only thing relying on this static initializer today is the new debugger, fixed here. TBR=reed@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1903503002 Committed: https://skia.googlesource.com/skia/+/05db63b5fc262136da9b289418b871180cd1359b

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -8 lines) Patch
M src/core/SkOpts.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkOpts.cpp View 1 chunk +1 line, -7 lines 0 comments Download
M tools/skiaserve/skiaserve.cpp View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (8 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/1903503002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1903503002/1
4 years, 8 months ago (2016-04-19 16:37:28 UTC) #3
mtklein_C
4 years, 8 months ago (2016-04-19 16:45:34 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-19 16:51:39 UTC) #8
mtklein_C
No diffs in Gold!
4 years, 8 months ago (2016-04-19 17:16:28 UTC) #9
mtklein_C
Gonna get this going to unblock getting wide testing of a dependent CL. Hope you ...
4 years, 8 months ago (2016-04-19 19:41:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1903503002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1903503002/1
4 years, 8 months ago (2016-04-19 19:41:28 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-19 19:42:27 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/05db63b5fc262136da9b289418b871180cd1359b

Powered by Google App Engine
This is Rietveld 408576698