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

Issue 8515012: Avoid unnecessary work in |RenderTextWin::UpdateLayout()| if there are no runs. (Closed)

Created:
9 years, 1 month ago by Alexei Svitkine (slow)
Modified:
9 years, 1 month ago
Reviewers:
msw, sky
CC:
chromium-reviews
Visibility:
Public.

Description

Avoid unnecessary work in |RenderTextWin::UpdateLayout()| if there are no runs. Avoids calling unnecessary Uniscribe functions until there's text to process. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109723

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -5 lines) Patch
M ui/gfx/render_text_win.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/render_text_win.cc View 1 2 3 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Alexei Svitkine (slow)
msw: review sky: OWNERS approval
9 years, 1 month ago (2011-11-10 21:40:27 UTC) #1
sky
LGTM http://codereview.chromium.org/8515012/diff/1/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): http://codereview.chromium.org/8515012/diff/1/ui/gfx/render_text_win.cc#newcode320 ui/gfx/render_text_win.cc:320: HDC hdc = CreateCompatibleDC(NULL); nit: use ScopedCreateDC.
9 years, 1 month ago (2011-11-10 21:49:04 UTC) #2
Alexei Svitkine (slow)
http://codereview.chromium.org/8515012/diff/1/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): http://codereview.chromium.org/8515012/diff/1/ui/gfx/render_text_win.cc#newcode320 ui/gfx/render_text_win.cc:320: HDC hdc = CreateCompatibleDC(NULL); On 2011/11/10 21:49:04, sky wrote: ...
9 years, 1 month ago (2011-11-10 22:10:35 UTC) #3
msw
http://codereview.chromium.org/8515012/diff/7001/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): http://codereview.chromium.org/8515012/diff/7001/ui/gfx/render_text_win.cc#newcode321 ui/gfx/render_text_win.cc:321: base::win::ScopedCreateDC hdc(CreateCompatibleDC(NULL)); You can optionally move this (and the ...
9 years, 1 month ago (2011-11-10 22:22:08 UTC) #4
Alexei Svitkine (slow)
http://codereview.chromium.org/8515012/diff/7001/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): http://codereview.chromium.org/8515012/diff/7001/ui/gfx/render_text_win.cc#newcode321 ui/gfx/render_text_win.cc:321: base::win::ScopedCreateDC hdc(CreateCompatibleDC(NULL)); On 2011/11/10 22:22:08, msw wrote: > You ...
9 years, 1 month ago (2011-11-11 14:53:48 UTC) #5
Alexei Svitkine (slow)
Ping. (Re-sending because Gmail marked my last msg as spam for me - in case ...
9 years, 1 month ago (2011-11-11 18:30:19 UTC) #6
msw
LGTM; thanks!
9 years, 1 month ago (2011-11-11 19:55:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/8515012/9002
9 years, 1 month ago (2011-11-11 19:56:51 UTC) #8
commit-bot: I haz the power
Try job failure for 8515012-9002 (retry) on mac_rel for step "compile" (clobber build). It's a ...
9 years, 1 month ago (2011-11-11 20:53:31 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/8515012/9002
9 years, 1 month ago (2011-11-11 20:55:34 UTC) #10
commit-bot: I haz the power
9 years, 1 month ago (2011-11-11 23:22:42 UTC) #11
Change committed as 109723

Powered by Google App Engine
This is Rietveld 408576698