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

Issue 2660593002: Paint text cursor in LAYER_SOLID_COLOR (Closed)

Created:
3 years, 11 months ago by yiyix
Modified:
3 years, 10 months ago
Reviewers:
msw, dmazzoni, sadrul
CC:
chromium-reviews, tfarina, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Paint text cursor in LAYER_SOLID_COLOR The text cursor used to painted in a texture layer, where each cursor blink costs 130KB memory to raster. It is now painted in the solid color layer and it is free to raster it. BUG=680536 Review-Url: https://codereview.chromium.org/2660593002 Cr-Commit-Position: refs/heads/master@{#451179} Committed: https://chromium.googlesource.com/chromium/src/+/a33c8f5acb10c229da14134b9987e3b16eaa74f4

Patch Set 1 : fix typo #

Total comments: 14

Patch Set 2 : address comments #

Total comments: 8

Patch Set 3 : address comments #

Total comments: 10

Patch Set 4 : fix typo #

Total comments: 4

Patch Set 5 : address comments #

Total comments: 1

Patch Set 6 : nits #

Total comments: 1

Patch Set 7 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -47 lines) Patch
M chrome/browser/ui/ash/accessibility/ax_tree_source_aura_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/render_text.h View 1 2 3 4 3 chunks +0 lines, -15 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 3 4 3 chunks +0 lines, -11 lines 0 comments Download
M ui/views/controls/textfield/textfield.h View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 5 6 8 chunks +21 lines, -18 lines 0 comments Download

Messages

Total messages: 171 (152 generated)
yiyix
3 years, 10 months ago (2017-01-31 02:57:21 UTC) #33
yiyix
@sadrul, could you please take a look? Thank you.
3 years, 10 months ago (2017-02-01 21:20:05 UTC) #73
sadrul
https://codereview.chromium.org/2660593002/diff/280001/ui/gfx/render_text.h File ui/gfx/render_text.h (left): https://codereview.chromium.org/2660593002/diff/280001/ui/gfx/render_text.h#oldcode772 ui/gfx/render_text.h:772: SkColor cursor_color_; Remove this too? https://codereview.chromium.org/2660593002/diff/280001/ui/views/accessibility/ax_widget_obj_wrapper.cc File ui/views/accessibility/ax_widget_obj_wrapper.cc (right): ...
3 years, 10 months ago (2017-02-02 17:15:32 UTC) #85
yiyix
https://codereview.chromium.org/2660593002/diff/280001/ui/gfx/render_text.h File ui/gfx/render_text.h (left): https://codereview.chromium.org/2660593002/diff/280001/ui/gfx/render_text.h#oldcode772 ui/gfx/render_text.h:772: SkColor cursor_color_; On 2017/02/02 17:15:31, sadrul wrote: > Remove ...
3 years, 10 months ago (2017-02-06 21:36:18 UTC) #86
yiyix
@sadrul, could you please take another look? Thank you very much.
3 years, 10 months ago (2017-02-06 21:36:45 UTC) #88
sadrul
https://codereview.chromium.org/2660593002/diff/300001/ui/views/accessibility/ax_widget_obj_wrapper.cc File ui/views/accessibility/ax_widget_obj_wrapper.cc (left): https://codereview.chromium.org/2660593002/diff/300001/ui/views/accessibility/ax_widget_obj_wrapper.cc#oldcode37 ui/views/accessibility/ax_widget_obj_wrapper.cc:37: Restore? https://codereview.chromium.org/2660593002/diff/300001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2660593002/diff/300001/ui/views/controls/textfield/textfield.cc#newcode962 ui/views/controls/textfield/textfield.cc:962: cursor_view_.SetVisible(true); Call ...
3 years, 10 months ago (2017-02-07 04:19:35 UTC) #92
yiyix
https://codereview.chromium.org/2660593002/diff/300001/ui/views/accessibility/ax_widget_obj_wrapper.cc File ui/views/accessibility/ax_widget_obj_wrapper.cc (left): https://codereview.chromium.org/2660593002/diff/300001/ui/views/accessibility/ax_widget_obj_wrapper.cc#oldcode37 ui/views/accessibility/ax_widget_obj_wrapper.cc:37: On 2017/02/07 04:19:35, sadrul wrote: > Restore? Done. https://codereview.chromium.org/2660593002/diff/300001/ui/views/controls/textfield/textfield.cc ...
3 years, 10 months ago (2017-02-08 19:47:40 UTC) #93
sadrul
+msw@ lgtm Thanks! Please wait for msw@'s approval too before landing. https://codereview.chromium.org/2660593002/diff/500001/ui/views/view.cc File ui/views/view.cc (right): ...
3 years, 10 months ago (2017-02-13 20:33:30 UTC) #142
yiyix
https://codereview.chromium.org/2660593002/diff/500001/ui/views/view.cc File ui/views/view.cc (right): https://codereview.chromium.org/2660593002/diff/500001/ui/views/view.cc#newcode307 ui/views/view.cc:307: } On 2017/02/13 20:33:30, sadrul wrote: > Remove these ...
3 years, 10 months ago (2017-02-13 21:12:24 UTC) #145
msw
https://codereview.chromium.org/2660593002/diff/500001/chrome/browser/ui/ash/accessibility/ax_tree_source_aura_unittest.cc File chrome/browser/ui/ash/accessibility/ax_tree_source_aura_unittest.cc (right): https://codereview.chromium.org/2660593002/diff/500001/chrome/browser/ui/ash/accessibility/ax_tree_source_aura_unittest.cc#newcode101 chrome/browser/ui/ash/accessibility/ax_tree_source_aura_unittest.cc:101: ASSERT_EQ(1U, textfield_children.size()); Should we test that the new child ...
3 years, 10 months ago (2017-02-13 21:27:12 UTC) #148
yiyix
@dmazzoni, could you please review changes in accessibility/ax_tree_source_aura_unittest.cc, do you think more accessibility tests should ...
3 years, 10 months ago (2017-02-15 16:56:32 UTC) #152
msw
lgtm with nits, thanks for the cleanup. https://codereview.chromium.org/2660593002/diff/520001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2660593002/diff/520001/ui/views/controls/textfield/textfield.cc#newcode267 ui/views/controls/textfield/textfield.cc:267: cursor_view_.set_owned_by_client(); On ...
3 years, 10 months ago (2017-02-15 22:50:04 UTC) #157
dmazzoni
lgtm for accessibility, I don't think this will affect anything
3 years, 10 months ago (2017-02-16 20:11:57 UTC) #158
yiyix
https://codereview.chromium.org/2660593002/diff/520001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2660593002/diff/520001/ui/views/controls/textfield/textfield.cc#newcode267 ui/views/controls/textfield/textfield.cc:267: cursor_view_.set_owned_by_client(); On 2017/02/15 22:50:04, msw wrote: > On 2017/02/15 ...
3 years, 10 months ago (2017-02-16 20:33:25 UTC) #159
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/2660593002/560001
3 years, 10 months ago (2017-02-16 20:35:09 UTC) #162
msw
Thanks for the sanity-check, Dominick! Just one more comment. https://codereview.chromium.org/2660593002/diff/560001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/2660593002/diff/560001/ui/views/controls/textfield/textfield.cc#newcode278 ui/views/controls/textfield/textfield.cc:278: ...
3 years, 10 months ago (2017-02-16 20:44:24 UTC) #163
yiyix
On 2017/02/16 20:44:24, msw wrote: > Thanks for the sanity-check, Dominick! > Just one more ...
3 years, 10 months ago (2017-02-16 22:24:42 UTC) #165
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/2660593002/580001
3 years, 10 months ago (2017-02-16 22:26:11 UTC) #168
commit-bot: I haz the power
3 years, 10 months ago (2017-02-17 02:14:25 UTC) #171
Message was sent while issue was closed.
Committed patchset #7 (id:580001) as
https://chromium.googlesource.com/chromium/src/+/a33c8f5acb10c229da14134b9987...

Powered by Google App Engine
This is Rietveld 408576698