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

Issue 876873003: Add float version of gfx::Range (Closed)

Created:
5 years, 11 months ago by ckocagil
Modified:
5 years, 10 months ago
Reviewers:
Robert Sesek, msw, danakj
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add float version of gfx::Range Adds gfx::RangeF, the float version of gfx::Range. Range unit tests are updated to test both classes. BUG= R=rsesek,msw Committed: https://crrev.com/a7d4e2d9d479247c45d419095b2437144147a2a4 Cr-Commit-Position: refs/heads/master@{#316860}

Patch Set 1 #

Patch Set 2 : templatify #

Patch Set 3 : RangeF unit tests #

Total comments: 11

Patch Set 4 : rebased; tests use typed_test; gfx_exports fixed #

Patch Set 5 : move TRangeBase to internal::; restore Range comment, add a similar comment to RangeF #

Patch Set 6 : fix mac compile #

Patch Set 7 : fix mac compile #

Patch Set 8 : newline at EOF #

Total comments: 9

Patch Set 9 : comments addressed #

Patch Set 10 : revert to non-template implementation #

Total comments: 12

Patch Set 11 : rebased #

Patch Set 12 : comments addressed #

Patch Set 13 : comments addressed 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -79 lines) Patch
M ui/gfx/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/range/range.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
A ui/gfx/range/range_f.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +82 lines, -0 lines 0 comments Download
A ui/gfx/range/range_f.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +88 lines, -0 lines 0 comments Download
M ui/gfx/range/range_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 10 chunks +84 lines, -68 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -5 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 32 (7 generated)
ckocagil
5 years, 11 months ago (2015-01-27 00:49:50 UTC) #2
Robert Sesek
This looks good, but it needs tests. I'm also wondering if it'd be better to ...
5 years, 11 months ago (2015-01-27 17:51:46 UTC) #3
ckocagil
Templatified and updated unit tests. PTAL.
5 years, 10 months ago (2015-01-30 18:21:46 UTC) #4
Robert Sesek
https://codereview.chromium.org/876873003/diff/40001/ui/gfx/range/range.h File ui/gfx/range/range.h (left): https://codereview.chromium.org/876873003/diff/40001/ui/gfx/range/range.h#oldcode29 ui/gfx/range/range.h:29: // A Range contains two integer values that represent ...
5 years, 10 months ago (2015-01-30 20:47:02 UTC) #5
ckocagil
Comments addressed, PTAL https://codereview.chromium.org/876873003/diff/40001/ui/gfx/range/range.h File ui/gfx/range/range.h (right): https://codereview.chromium.org/876873003/diff/40001/ui/gfx/range/range.h#newcode39 ui/gfx/range/range.h:39: GFX_EXPORT TRangeBase<size_t> InvalidRange<size_t>(); On 2015/01/30 20:47:02, ...
5 years, 10 months ago (2015-01-31 02:44:39 UTC) #6
Robert Sesek
Last few comments :-) https://codereview.chromium.org/876873003/diff/140001/ui/gfx/range/range.h File ui/gfx/range/range.h (right): https://codereview.chromium.org/876873003/diff/140001/ui/gfx/range/range.h#newcode1 ui/gfx/range/range.h:1: // Copyright 2015 The Chromium ...
5 years, 10 months ago (2015-02-02 21:42:11 UTC) #7
ckocagil
https://codereview.chromium.org/876873003/diff/140001/ui/gfx/range/range.h File ui/gfx/range/range.h (right): https://codereview.chromium.org/876873003/diff/140001/ui/gfx/range/range.h#newcode1 ui/gfx/range/range.h:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 10 months ago (2015-02-03 00:51:05 UTC) #8
Robert Sesek
LGTM
5 years, 10 months ago (2015-02-03 01:12:25 UTC) #9
Robert Sesek
But please update the CL description to be more accurate w.r.t this change now does.
5 years, 10 months ago (2015-02-03 01:14:57 UTC) #10
ckocagil
+msw: very simple RTHB review. On 2015/02/03 01:14:57, Robert Sesek wrote: > But please update ...
5 years, 10 months ago (2015-02-03 01:27:36 UTC) #14
msw
Dana recently removed templatization of gfx::Rect[F] (and maybe other classes?) for inlining performance and binary ...
5 years, 10 months ago (2015-02-03 20:30:18 UTC) #16
ckocagil
Dana: Any thoughts regarding perf of our use of templates in range.h? We're exporting classes ...
5 years, 10 months ago (2015-02-10 12:31:06 UTC) #17
danakj
On Tue, Feb 10, 2015 at 4:31 AM, <ckocagil@chromium.org> wrote: > Dana: Any thoughts regarding ...
5 years, 10 months ago (2015-02-10 17:44:00 UTC) #18
ckocagil
Done. Reverted to the non-template implementation. On 2015/02/03 20:30:18, msw wrote: > Also, split the ...
5 years, 10 months ago (2015-02-12 16:06:46 UTC) #19
Robert Sesek
LGTM https://codereview.chromium.org/876873003/diff/180001/ui/gfx/range/range_f.cc File ui/gfx/range/range_f.cc (right): https://codereview.chromium.org/876873003/diff/180001/ui/gfx/range/range_f.cc#newcode37 ui/gfx/range/range_f.cc:37: return !base::IsNaN(start_) && !base::IsNaN(end_); Use start() and end() ...
5 years, 10 months ago (2015-02-12 16:52:37 UTC) #20
msw
On 2015/02/12 16:06:46, ckocagil wrote: > On 2015/02/03 20:30:18, msw wrote: > > Also, split ...
5 years, 10 months ago (2015-02-12 21:01:05 UTC) #21
ckocagil
https://codereview.chromium.org/876873003/diff/180001/ui/gfx/range/range_f.cc File ui/gfx/range/range_f.cc (right): https://codereview.chromium.org/876873003/diff/180001/ui/gfx/range/range_f.cc#newcode37 ui/gfx/range/range_f.cc:37: return !base::IsNaN(start_) && !base::IsNaN(end_); On 2015/02/12 21:01:04, msw wrote: ...
5 years, 10 months ago (2015-02-13 18:47:47 UTC) #23
msw
https://codereview.chromium.org/876873003/diff/180001/ui/gfx/range/range_unittest.cc File ui/gfx/range/range_unittest.cc (left): https://codereview.chromium.org/876873003/diff/180001/ui/gfx/range/range_unittest.cc#oldcode58 ui/gfx/range/range_unittest.cc:58: EXPECT_EQ(0U, r.length()); On 2015/02/13 18:47:47, ckocagil wrote: > On ...
5 years, 10 months ago (2015-02-13 19:29:31 UTC) #24
ckocagil
https://codereview.chromium.org/876873003/diff/180001/ui/gfx/range/range_unittest.cc File ui/gfx/range/range_unittest.cc (left): https://codereview.chromium.org/876873003/diff/180001/ui/gfx/range/range_unittest.cc#oldcode58 ui/gfx/range/range_unittest.cc:58: EXPECT_EQ(0U, r.length()); On 2015/02/13 19:29:31, msw wrote: > Did ...
5 years, 10 months ago (2015-02-13 20:05:50 UTC) #25
msw
Nice! lgtm
5 years, 10 months ago (2015-02-13 20:14:13 UTC) #26
ckocagil
rsesek: Can you take another look please?
5 years, 10 months ago (2015-02-18 17:08:01 UTC) #27
Robert Sesek
lgtm
5 years, 10 months ago (2015-02-18 17:21:23 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/876873003/240001
5 years, 10 months ago (2015-02-18 17:22:55 UTC) #30
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 10 months ago (2015-02-18 18:15:34 UTC) #31
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 18:16:25 UTC) #32
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/a7d4e2d9d479247c45d419095b2437144147a2a4
Cr-Commit-Position: refs/heads/master@{#316860}

Powered by Google App Engine
This is Rietveld 408576698