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

Issue 2042843005: SkMipMap::ComputeLevelSize should only cover SkMipMap's levels. (Closed)

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

Description

SkMipMap::ComputeLevelSize should only cover SkMipMap's levels. SkMipMap only deals with the levels it generates. That is to day, it deals with mipmap levels 1-x, not 0-x. Other functions reflect thing when indexing. They go from 0 to x-1 (giving the index into SkMipMap's contents). ComputeLevelSize should also follow that same indexing. BUG=578304 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2042843005 Committed: https://skia.googlesource.com/skia/+/609623b47f5722a4d3a4dbb5103736fe70ae1878

Patch Set 1 #

Patch Set 2 : Parens around rhs of >> #

Patch Set 3 : Fixing test #

Patch Set 4 : Adding more comments. #

Total comments: 2

Patch Set 5 : Adding asserts to the unit tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -27 lines) Patch
M src/core/SkMipMap.h View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download
M src/core/SkMipMap.cpp View 1 2 2 chunks +9 lines, -9 lines 0 comments Download
M tests/MipMapTest.cpp View 1 2 3 4 2 chunks +22 lines, -18 lines 0 comments Download

Messages

Total messages: 32 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2042843005/1
4 years, 6 months ago (2016-06-07 01:40:34 UTC) #3
cblume
PTAL
4 years, 6 months ago (2016-06-07 01:41:01 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/8941) Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on ...
4 years, 6 months ago (2016-06-07 01:43:46 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2042843005/20001
4 years, 6 months ago (2016-06-07 06:15:58 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/8942)
4 years, 6 months ago (2016-06-07 06:22:29 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2042843005/40001
4 years, 6 months ago (2016-06-07 10:16:08 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-07 10:30:19 UTC) #15
cblume
ping
4 years, 6 months ago (2016-06-08 17:50:53 UTC) #16
reed1
trying to understand this...
4 years, 6 months ago (2016-06-08 20:21:32 UTC) #17
cblume
On 2016/06/08 20:21:32, reed1 wrote: > trying to understand this... Oh sorry, I'll try to ...
4 years, 6 months ago (2016-06-08 20:40:34 UTC) #18
reed1
Lets update the comment on the .h to make this clearer.
4 years, 6 months ago (2016-06-08 20:58:44 UTC) #19
reed1
+ add dox for getLevel() so we see that both functions follow the same (0-based) ...
4 years, 6 months ago (2016-06-08 21:00:39 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2042843005/60001
4 years, 6 months ago (2016-06-08 23:34:54 UTC) #22
cblume
I added documentation in the header that I hope is concise and useful.
4 years, 6 months ago (2016-06-08 23:36:32 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-08 23:51:45 UTC) #25
reed1
lgtm https://codereview.chromium.org/2042843005/diff/60001/tests/MipMapTest.cpp File tests/MipMapTest.cpp (right): https://codereview.chromium.org/2042843005/diff/60001/tests/MipMapTest.cpp#newcode72 tests/MipMapTest.cpp:72: Here would be an interesting place to call ...
4 years, 6 months ago (2016-06-09 10:31:27 UTC) #26
cblume
https://codereview.chromium.org/2042843005/diff/60001/tests/MipMapTest.cpp File tests/MipMapTest.cpp (right): https://codereview.chromium.org/2042843005/diff/60001/tests/MipMapTest.cpp#newcode72 tests/MipMapTest.cpp:72: On 2016/06/09 10:31:26, reed1 wrote: > Here would be ...
4 years, 6 months ago (2016-06-09 16:23:06 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2042843005/80001
4 years, 6 months ago (2016-06-09 16:23:07 UTC) #30
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 16:44:38 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/609623b47f5722a4d3a4dbb5103736fe70ae1878

Powered by Google App Engine
This is Rietveld 408576698