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

Issue 2018283002: Add getting the size of a given mipmap level. (Closed)

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

Description

Add getting the size of a given mipmap level. When allocating memory for mipmaps, it would be very handy to know the dimensions of a given mipmap level. R=bsalomon@google.com BUG=578304 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2018283002 Committed: https://skia.googlesource.com/skia/+/f95ff4a37aba42a07b0fed9ee760d1a238c6d291

Patch Set 1 #

Patch Set 2 : Fixing missing include. #

Patch Set 3 : Merged updates from base branch. #

Patch Set 4 : Adding unit tests. #

Patch Set 5 : Renaming the test. #

Patch Set 6 : Fixing unit test. #

Patch Set 7 : Using SkMipMap::ComputeLevel* functions within SkMipMap::Build. #

Total comments: 2

Patch Set 8 : Removing loop for getting the size of a given mipmap level. #

Total comments: 2

Patch Set 9 : Right shifting instead of dividing. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -17 lines) Patch
M src/core/SkMipMap.h View 1 chunk +4 lines, -2 lines 0 comments Download
M src/core/SkMipMap.cpp View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -15 lines 0 comments Download
M tests/MipMapTest.cpp View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (25 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/2018283002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018283002/1
4 years, 6 months ago (2016-05-28 14:10:20 UTC) #3
cblume
PTAL
4 years, 6 months ago (2016-05-28 14:10:44 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Mac-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-x86_64-Release-Trybot/builds/2873)
4 years, 6 months ago (2016-05-28 14:14:31 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018283002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018283002/20001
4 years, 6 months ago (2016-05-28 14:26:20 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/8861)
4 years, 6 months ago (2016-05-28 14:33:24 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018283002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018283002/20001
4 years, 6 months ago (2016-05-30 05:33:24 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/8866)
4 years, 6 months ago (2016-05-30 05:41:34 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018283002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018283002/40001
4 years, 6 months ago (2016-05-30 17:08:36 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-30 17:22:07 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018283002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018283002/60001
4 years, 6 months ago (2016-05-31 01:38:43 UTC) #20
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/8787)
4 years, 6 months ago (2016-05-31 01:42:14 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018283002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018283002/80001
4 years, 6 months ago (2016-05-31 04:13:54 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot/builds/3845)
4 years, 6 months ago (2016-05-31 04:17:07 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018283002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018283002/100001
4 years, 6 months ago (2016-05-31 06:39:22 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-31 06:51:28 UTC) #30
reed1
1. Who is going to call this? Since its private, I would expect to see ...
4 years, 6 months ago (2016-05-31 12:48:09 UTC) #32
cblume
On 2016/05/31 12:48:09, reed1 wrote: > 1. Who is going to call this? Since its ...
4 years, 6 months ago (2016-05-31 16:31:16 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018283002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018283002/120001
4 years, 6 months ago (2016-05-31 23:52:53 UTC) #35
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot/builds/1820)
4 years, 6 months ago (2016-06-01 00:03:17 UTC) #37
reed1
https://codereview.chromium.org/2018283002/diff/120001/src/core/SkMipMap.cpp File src/core/SkMipMap.cpp (right): https://codereview.chromium.org/2018283002/diff/120001/src/core/SkMipMap.cpp#newcode518 src/core/SkMipMap.cpp:518: for (int currentMipLevel = 0; currentMipLevel <= level; currentMipLevel++) ...
4 years, 6 months ago (2016-06-01 12:55:56 UTC) #38
cblume
https://codereview.chromium.org/2018283002/diff/120001/src/core/SkMipMap.cpp File src/core/SkMipMap.cpp (right): https://codereview.chromium.org/2018283002/diff/120001/src/core/SkMipMap.cpp#newcode518 src/core/SkMipMap.cpp:518: for (int currentMipLevel = 0; currentMipLevel <= level; currentMipLevel++) ...
4 years, 6 months ago (2016-06-01 17:02:16 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018283002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018283002/140001
4 years, 6 months ago (2016-06-01 17:02:35 UTC) #41
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-01 17:20:26 UTC) #43
reed1
lgtm w/ nit about shifts https://codereview.chromium.org/2018283002/diff/140001/src/core/SkMipMap.cpp File src/core/SkMipMap.cpp (right): https://codereview.chromium.org/2018283002/diff/140001/src/core/SkMipMap.cpp#newcode516 src/core/SkMipMap.cpp:516: int width = SkTMax(1, ...
4 years, 6 months ago (2016-06-01 19:36:18 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018283002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018283002/160001
4 years, 6 months ago (2016-06-02 15:16:01 UTC) #46
cblume
https://codereview.chromium.org/2018283002/diff/140001/src/core/SkMipMap.cpp File src/core/SkMipMap.cpp (right): https://codereview.chromium.org/2018283002/diff/140001/src/core/SkMipMap.cpp#newcode516 src/core/SkMipMap.cpp:516: int width = SkTMax(1, baseWidth / (1 << level)); ...
4 years, 6 months ago (2016-06-02 15:16:17 UTC) #47
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-02 15:29:27 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2018283002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2018283002/160001
4 years, 6 months ago (2016-06-02 16:00:56 UTC) #52
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 16:01:53 UTC) #54
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://skia.googlesource.com/skia/+/f95ff4a37aba42a07b0fed9ee760d1a238c6d291

Powered by Google App Engine
This is Rietveld 408576698