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

Issue 1639693002: Adding direct access to SkMipMap levels. (Closed)

Created:
4 years, 11 months ago by cblume
Modified:
4 years, 10 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2

Patch Set 2 : Making the function a static member. #

Total comments: 2

Patch Set 3 : Restricting mipmap level count to isotropic space. #

Patch Set 4 : Adding unit tests. Restricting ComputeLevelCount to a minimum size of 2x2, like SkMipMap. Fixing a … #

Total comments: 8

Patch Set 5 : Refactoring MipMap tests. #

Patch Set 6 : Fixing an assert. #

Patch Set 7 : Adding printf debugging because the buildbot is seeing something different from what I am seeing.p #

Patch Set 8 : No longer asserting in cases where the mipmap didn't build. #

Patch Set 9 : A test was failing because >= became < without flipping operands. #

Patch Set 10 : Is the 1x1 SkMipMap the problem? #

Patch Set 11 : The size of the levels is not always what I expect them to be. #

Patch Set 12 : Fixing first problem in unit test. #

Patch Set 13 : Uncommenting 1x1 test to see if it now causes problems. #

Patch Set 14 : Making negative test assert SkMipMap::Build returned null #

Total comments: 4

Patch Set 15 : ComputeLevelCount now returns a number matching the levels of SkMipMap as opposed to the number of … #

Patch Set 16 : Rebasing. #

Patch Set 17 : Fixing spelling mistake and rebase mistake. #

Total comments: 2

Patch Set 18 : Making the mipmap test less verbose. #

Total comments: 2

Patch Set 19 : Removing comparisons of ComputeLevelCoutn and Build's level coutn, since that comparison is already… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -7 lines) Patch
M src/core/SkMipMap.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -0 lines 0 comments Download
M src/core/SkMipMap.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +63 lines, -0 lines 0 comments Download
M tests/MipMapTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +104 lines, -7 lines 0 comments Download

Messages

Total messages: 66 (25 generated)
cblume
4 years, 11 months ago (2016-01-26 02:22:44 UTC) #2
cblume
4 years, 11 months ago (2016-01-26 02:24:26 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639693002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639693002/1
4 years, 11 months ago (2016-01-26 02:27:18 UTC) #6
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 11 months ago (2016-01-26 02:27:19 UTC) #7
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Please ask for an LGTM from ...
4 years, 11 months ago (2016-01-26 08:27:02 UTC) #9
reed1
florin, did your fix where we store 2 scale values (x,y) land? https://codereview.chromium.org/1639693002/diff/1/src/core/SkMipMap.h File src/core/SkMipMap.h ...
4 years, 11 months ago (2016-01-26 14:25:55 UTC) #11
f(malita)
On 2016/01/26 14:25:55, reed1 wrote: > florin, did your fix where we store 2 scale ...
4 years, 11 months ago (2016-01-26 14:28:24 UTC) #12
cblume
https://codereview.chromium.org/1639693002/diff/1/src/core/SkMipMap.h File src/core/SkMipMap.h (right): https://codereview.chromium.org/1639693002/diff/1/src/core/SkMipMap.h#newcode55 src/core/SkMipMap.h:55: int SkGetMipMapLevelCount(int baseWidth, int baseHeight); On 2016/01/26 14:25:55, reed1 ...
4 years, 11 months ago (2016-01-26 17:16:53 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639693002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639693002/20001
4 years, 11 months ago (2016-01-26 17:17:07 UTC) #15
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Please ask for an LGTM from ...
4 years, 11 months ago (2016-01-26 17:17:08 UTC) #17
reed1
We will want a unittest to exercise the new functions (unittests can access private headers, ...
4 years, 11 months ago (2016-01-26 18:15:42 UTC) #18
cblume
On 2016/01/26 18:15:42, reed1 wrote: > This is not what we do today, in terms ...
4 years, 11 months ago (2016-01-26 18:27:16 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639693002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639693002/40001
4 years, 11 months ago (2016-01-26 19:47:07 UTC) #21
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Please ask for an LGTM from ...
4 years, 11 months ago (2016-01-26 19:47:08 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639693002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639693002/60001
4 years, 11 months ago (2016-01-27 02:00:39 UTC) #25
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Please ask for an LGTM from ...
4 years, 11 months ago (2016-01-27 02:00:41 UTC) #27
cblume
On 2016/01/26 18:15:42, reed1 wrote: > We will want a unittest to exercise the new ...
4 years, 11 months ago (2016-01-27 02:01:29 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639693002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639693002/60001
4 years, 11 months ago (2016-01-27 02:02:24 UTC) #30
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Please ask for an LGTM from ...
4 years, 11 months ago (2016-01-27 02:02:27 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639693002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639693002/60001
4 years, 11 months ago (2016-01-27 23:31:55 UTC) #34
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Please ask for an LGTM from ...
4 years, 11 months ago (2016-01-27 23:31:58 UTC) #36
reed1
https://codereview.chromium.org/1639693002/diff/60001/src/core/SkMipMap.cpp File src/core/SkMipMap.cpp (right): https://codereview.chromium.org/1639693002/diff/60001/src/core/SkMipMap.cpp#newcode377 src/core/SkMipMap.cpp:377: int SkMipMap::ComputeLevelCount(int baseWidth, int baseHeight) { Its a little ...
4 years, 11 months ago (2016-01-28 02:06:03 UTC) #37
cblume
https://codereview.chromium.org/1639693002/diff/60001/src/core/SkMipMap.cpp File src/core/SkMipMap.cpp (right): https://codereview.chromium.org/1639693002/diff/60001/src/core/SkMipMap.cpp#newcode377 src/core/SkMipMap.cpp:377: int SkMipMap::ComputeLevelCount(int baseWidth, int baseHeight) { On 2016/01/28 02:06:03, ...
4 years, 10 months ago (2016-02-01 09:31:07 UTC) #38
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639693002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639693002/100001
4 years, 10 months ago (2016-02-01 19:22:49 UTC) #40
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Please ask for an LGTM from ...
4 years, 10 months ago (2016-02-01 19:22:52 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639693002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639693002/260001
4 years, 10 months ago (2016-02-03 05:43:24 UTC) #44
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Please ask for an LGTM from ...
4 years, 10 months ago (2016-02-03 05:43:26 UTC) #46
reed1
https://codereview.chromium.org/1639693002/diff/260001/src/core/SkMipMap.cpp File src/core/SkMipMap.cpp (right): https://codereview.chromium.org/1639693002/diff/260001/src/core/SkMipMap.cpp#newcode413 src/core/SkMipMap.cpp:413: if (NULL == fLevels) { I think we should ...
4 years, 10 months ago (2016-02-05 22:37:11 UTC) #47
cblume
https://codereview.chromium.org/1639693002/diff/260001/src/core/SkMipMap.cpp File src/core/SkMipMap.cpp (right): https://codereview.chromium.org/1639693002/diff/260001/src/core/SkMipMap.cpp#newcode413 src/core/SkMipMap.cpp:413: if (NULL == fLevels) { On 2016/02/05 22:37:11, reed1 ...
4 years, 10 months ago (2016-02-06 13:38:16 UTC) #48
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639693002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639693002/280001
4 years, 10 months ago (2016-02-06 13:38:36 UTC) #50
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Please ask for an LGTM from ...
4 years, 10 months ago (2016-02-06 13:38:44 UTC) #52
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639693002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639693002/320001
4 years, 10 months ago (2016-02-10 02:58:03 UTC) #54
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Please ask for an LGTM from ...
4 years, 10 months ago (2016-02-10 02:58:05 UTC) #56
cblume
Are there any more changes I should make to this CL?
4 years, 10 months ago (2016-02-16 03:06:14 UTC) #57
reed1
sorry for the delay. the code/header look good, thanks. just a comment about making the ...
4 years, 10 months ago (2016-02-16 15:53:45 UTC) #58
cblume
https://codereview.chromium.org/1639693002/diff/320001/tests/MipMapTest.cpp File tests/MipMapTest.cpp (right): https://codereview.chromium.org/1639693002/diff/320001/tests/MipMapTest.cpp#newcode123 tests/MipMapTest.cpp:123: int zeroWidthResult = SkMipMap::ComputeLevelCount(0, 100); On 2016/02/16 15:53:45, reed1 ...
4 years, 10 months ago (2016-02-16 23:53:46 UTC) #59
reed1
thanks. one last suggestion, to remove more copy/paste code. https://codereview.chromium.org/1639693002/diff/340001/tests/MipMapTest.cpp File tests/MipMapTest.cpp (right): https://codereview.chromium.org/1639693002/diff/340001/tests/MipMapTest.cpp#newcode162 tests/MipMapTest.cpp:162: ...
4 years, 10 months ago (2016-02-17 14:29:11 UTC) #60
cblume
https://codereview.chromium.org/1639693002/diff/340001/tests/MipMapTest.cpp File tests/MipMapTest.cpp (right): https://codereview.chromium.org/1639693002/diff/340001/tests/MipMapTest.cpp#newcode162 tests/MipMapTest.cpp:162: REPORTER_ASSERT(reporter, mm->countLevels() == SkMipMap::ComputeLevelCount(255, 255)); On 2016/02/17 14:29:11, reed1 ...
4 years, 10 months ago (2016-02-17 19:54:41 UTC) #61
reed1
lgtm
4 years, 10 months ago (2016-02-17 20:05:45 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1639693002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1639693002/360001
4 years, 10 months ago (2016-02-17 22:29:21 UTC) #64
commit-bot: I haz the power
4 years, 10 months ago (2016-02-17 22:53:26 UTC) #66
Message was sent while issue was closed.
Committed patchset #19 (id:360001) as
https://skia.googlesource.com/skia/+/e2412d5738e4ee37a897cc51996431a4dfb10436

Powered by Google App Engine
This is Rietveld 408576698