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

Issue 2115023002: Store mipmap levels in deferred texture image (Closed)

Created:
4 years, 5 months ago by cblume
Modified:
4 years, 4 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

Store mipmap levels in deferred texture image This is a follow-up to https://codereview.chromium.org/2034933003/ which was reverted due to a memory leak. When creating the deferred texture image, detect if using medium / high quality. If so, generate and store mipmaps in the deferred texture image. When creating a texture from that be sure to read it back out. BUG=578304 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2115023002 Committed: https://skia.googlesource.com/skia/+/d6113140f7ae8996f679ac6698a60fb8c1386da3

Patch Set 1 #

Patch Set 2 : Adding the test back in (with a change to auto unref the proxy). #

Patch Set 3 : It looks like maybe the leak is in respecting gamma. #

Patch Set 4 : Did I leak a SkBitmap? #

Total comments: 1

Patch Set 5 : The memory leak seems to be fixed. Checking. #

Patch Set 6 : Rebasing against fix. #

Patch Set 7 : Merged in serialization of color space info. #

Total comments: 10

Patch Set 8 : Making TU function static (instead of unnamed namespace) + moving it closer to call site. Indenting… #

Patch Set 9 : Merging DeferredTextureImage unit tests. Adding tests for low and high qualities. #

Total comments: 2

Patch Set 10 : Renaming static function to_use_underscores. #

Patch Set 11 : Updating call sites. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -106 lines) Patch
A gm/deferredtextureimage.cpp View 1 2 3 4 5 6 7 8 1 chunk +195 lines, -0 lines 0 comments Download
D gm/deferredtextureimagedata.cpp View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -81 lines 0 comments Download
M include/core/SkImage.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -1 line 0 comments Download
M src/image/SkImage_Gpu.cpp View 1 2 3 4 5 6 7 8 9 10 8 chunks +108 lines, -18 lines 0 comments Download
M tests/ImageTest.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 40 (25 generated)
cblume
This is a fix for a patch that landed a while ago and was reverted. ...
4 years, 5 months ago (2016-07-22 16:08:16 UTC) #5
cblume
https://codereview.chromium.org/2115023002/diff/60001/gm/deferredtextureimage.cpp File gm/deferredtextureimage.cpp (right): https://codereview.chromium.org/2115023002/diff/60001/gm/deferredtextureimage.cpp#newcode99 gm/deferredtextureimage.cpp:99: void onOnceBeforeDraw() override { I should have added helpful ...
4 years, 5 months ago (2016-07-22 16:53:50 UTC) #8
bsalomon
On 2016/07/22 16:53:50, cblume wrote: > https://codereview.chromium.org/2115023002/diff/60001/gm/deferredtextureimage.cpp > File gm/deferredtextureimage.cpp (right): > > https://codereview.chromium.org/2115023002/diff/60001/gm/deferredtextureimage.cpp#newcode99 > ...
4 years, 5 months ago (2016-07-22 17:27:58 UTC) #9
cblume
On 2016/07/22 17:27:58, bsalomon wrote: > How did the original code leak? I think I'm ...
4 years, 5 months ago (2016-07-22 18:07:26 UTC) #10
cblume
On 2016/07/22 18:07:26, cblume wrote: > On 2016/07/22 17:27:58, bsalomon wrote: > > How did ...
4 years, 5 months ago (2016-07-22 18:58:33 UTC) #11
cblume
I did a bit of printf debugging and it seems like the unit test is ...
4 years, 4 months ago (2016-07-27 00:31:34 UTC) #12
cblume
It looks like the memory leaks are all cleared up. PTAL
4 years, 4 months ago (2016-07-29 08:26:23 UTC) #15
bsalomon
https://codereview.chromium.org/2115023002/diff/120001/gm/deferredtextureimage.cpp File gm/deferredtextureimage.cpp (right): https://codereview.chromium.org/2115023002/diff/120001/gm/deferredtextureimage.cpp#newcode16 gm/deferredtextureimage.cpp:16: class DeferredTextureImage_Medium : public skiagm::GM { Should we replace ...
4 years, 4 months ago (2016-07-29 14:12:35 UTC) #18
cblume
https://codereview.chromium.org/2115023002/diff/120001/gm/deferredtextureimage.cpp File gm/deferredtextureimage.cpp (right): https://codereview.chromium.org/2115023002/diff/120001/gm/deferredtextureimage.cpp#newcode16 gm/deferredtextureimage.cpp:16: class DeferredTextureImage_Medium : public skiagm::GM { On 2016/07/29 14:12:35, ...
4 years, 4 months ago (2016-07-29 20:14:13 UTC) #19
cblume
https://codereview.chromium.org/2115023002/diff/120001/gm/deferredtextureimage.cpp File gm/deferredtextureimage.cpp (right): https://codereview.chromium.org/2115023002/diff/120001/gm/deferredtextureimage.cpp#newcode16 gm/deferredtextureimage.cpp:16: class DeferredTextureImage_Medium : public skiagm::GM { On 2016/07/29 20:14:13, ...
4 years, 4 months ago (2016-07-30 02:28:40 UTC) #22
bsalomon
lgtm w/ rename request https://codereview.chromium.org/2115023002/diff/120001/src/image/SkImage_Gpu.cpp File src/image/SkImage_Gpu.cpp (right): https://codereview.chromium.org/2115023002/diff/120001/src/image/SkImage_Gpu.cpp#newcode493 src/image/SkImage_Gpu.cpp:493: SkAlphaType at = this->isOpaque() ? ...
4 years, 4 months ago (2016-08-09 19:02:09 UTC) #25
cblume
https://codereview.chromium.org/2115023002/diff/160001/src/image/SkImage_Gpu.cpp File src/image/SkImage_Gpu.cpp (right): https://codereview.chromium.org/2115023002/diff/160001/src/image/SkImage_Gpu.cpp#newcode388 src/image/SkImage_Gpu.cpp:388: static bool shouldUseMipMaps(const SkImage::DeferredTextureImageUsageParams & param) { On 2016/08/09 ...
4 years, 4 months ago (2016-08-09 19:07:20 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2115023002/200001
4 years, 4 months ago (2016-08-09 20:45:03 UTC) #37
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://skia.googlesource.com/skia/+/d6113140f7ae8996f679ac6698a60fb8c1386da3
4 years, 4 months ago (2016-08-09 20:46:00 UTC) #39
hal.canary
4 years, 4 months ago (2016-08-10 00:46:04 UTC) #40
Message was sent while issue was closed.
A revert of this CL (patchset #11 id:200001) has been created in
https://codereview.chromium.org/2227323002/ by halcanary@google.com.

The reason for reverting is: speculative revert: android dm crashes.

Powered by Google App Engine
This is Rietveld 408576698