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

Issue 2654853002: Remove gfx::Canvas::DrawStringRectWithHalo. (Closed)

Created:
3 years, 11 months ago by Evan Stade
Modified:
3 years, 9 months ago
Reviewers:
msw, sky
CC:
chromium-reviews, Ian Vollick, tfarina, jbauman+watch_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, cc-bugs_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove gfx::Canvas::DrawStringRectWithHalo. This was not used anywhere in production. We have a faux halo effect in a couple places (dragged bookmarks, avatar button) which is accomplished with stacked shadows. This is something I might try to change, but I don't believe the current halo code is going to help with that. The only current uses of DrawStringRectWithHalo are in tests and example code which can be removed without harm. BUG=624175 Review-Url: https://codereview.chromium.org/2654853002 Cr-Commit-Position: refs/heads/master@{#459830} Committed: https://chromium.googlesource.com/chromium/src/+/2a2a1f9d36c51c3a4762cd7ddaf9d4a2d142ca24

Patch Set 1 #

Total comments: 7

Patch Set 2 : msw review #

Total comments: 2

Patch Set 3 : format #

Patch Set 4 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -145 lines) Patch
M ui/compositor/layer_unittest.cc View 1 2 3 5 chunks +13 lines, -71 lines 0 comments Download
M ui/gfx/canvas.h View 1 2 3 2 chunks +0 lines, -19 lines 0 comments Download
M ui/gfx/canvas_notimplemented.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M ui/gfx/canvas_skia.cc View 1 2 2 chunks +0 lines, -19 lines 0 comments Download
M ui/gfx/render_text.h View 1 2 3 chunks +0 lines, -7 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 3 chunks +0 lines, -7 lines 0 comments Download
D ui/gfx/test/data/compositor/string_with_halo.png View Binary file 0 comments Download
M ui/views/examples/text_example.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/examples/text_example.cc View 1 2 6 chunks +0 lines, -10 lines 0 comments Download

Messages

Total messages: 28 (16 generated)
Evan Stade
3 years, 11 months ago (2017-01-24 17:19:35 UTC) #2
msw
lgtm with nits https://codereview.chromium.org/2654853002/diff/1/ui/compositor/layer_unittest.cc File ui/compositor/layer_unittest.cc (right): https://codereview.chromium.org/2654853002/diff/1/ui/compositor/layer_unittest.cc#newcode98 ui/compositor/layer_unittest.cc:98: enum DrawFunction { Please remove this ...
3 years, 11 months ago (2017-01-25 18:09:07 UTC) #7
Evan Stade
oh dang, I guess it is still used on Windows (which sadly doesn't show up ...
3 years, 11 months ago (2017-01-26 00:43:11 UTC) #8
msw
On 2017/01/26 00:43:11, Evan Stade wrote: > oh dang, I guess it is still used ...
3 years, 11 months ago (2017-01-26 00:52:10 UTC) #9
Evan Stade
rebased, +sky for layer_unittest.cc https://codereview.chromium.org/2654853002/diff/20001/ui/compositor/layer_unittest.cc File ui/compositor/layer_unittest.cc (right): https://codereview.chromium.org/2654853002/diff/20001/ui/compositor/layer_unittest.cc#newcode96 ui/compositor/layer_unittest.cc:96: class DrawFadedStringLayerDelegateDelegate : public LayerDelegate ...
3 years, 9 months ago (2017-03-22 22:59:56 UTC) #13
Evan Stade
actually +sky. PTAL layer_unittest.cc
3 years, 9 months ago (2017-03-22 23:00:20 UTC) #16
msw
still lgtm
3 years, 9 months ago (2017-03-22 23:20:11 UTC) #17
sky
LGTM
3 years, 9 months ago (2017-03-22 23:50:53 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2654853002/40001
3 years, 9 months ago (2017-03-23 12:38:23 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/406612) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
3 years, 9 months ago (2017-03-23 13:07:30 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2654853002/60001
3 years, 9 months ago (2017-03-27 17:04:04 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 18:20:55 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/2a2a1f9d36c51c3a4762cd7ddaf9...

Powered by Google App Engine
This is Rietveld 408576698