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

Issue 1744413002: Disabling mipmap generation until anisotropic mipmap levels are generated. (Closed)

Created:
4 years, 9 months ago by cblume
Modified:
4 years, 9 months ago
Reviewers:
cblume, bsalomon
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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M src/core/SkImageCacherator.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/GrImageIDTextureAdjuster.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 21 (8 generated)
cblume
4 years, 9 months ago (2016-02-29 18:57:13 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1744413002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1744413002/1
4 years, 9 months ago (2016-02-29 18:57:37 UTC) #5
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 9 months ago (2016-02-29 18:57:38 UTC) #6
bsalomon
lgtm
4 years, 9 months ago (2016-02-29 19:19:37 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-02-29 19:20:55 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1744413002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1744413002/1
4 years, 9 months ago (2016-02-29 19:26:15 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://skia.googlesource.com/skia/+/89685d9112cfdffb35d14fb18ddff38a18729587
4 years, 9 months ago (2016-02-29 19:27:34 UTC) #13
Brian Osman
On 2016/02/29 19:27:34, commit-bot: I haz the power wrote: > Committed patchset #1 (id:1) as ...
4 years, 9 months ago (2016-03-24 20:21:11 UTC) #14
bsalomon
Think so, but checking with Chris.
4 years, 9 months ago (2016-03-24 20:38:28 UTC) #17
cblume
On 2016/03/24 20:38:28, bsalomon wrote: > Think so, but checking with Chris. Oh yes. Definitely. ...
4 years, 9 months ago (2016-03-24 20:54:16 UTC) #18
Brian Osman
On 2016/03/24 20:54:16, cblume wrote: > On 2016/03/24 20:38:28, bsalomon wrote: > > Think so, ...
4 years, 9 months ago (2016-03-25 13:57:22 UTC) #19
bsalomon
On 2016/03/25 13:57:22, Brian Osman wrote: > On 2016/03/24 20:54:16, cblume wrote: > > On ...
4 years, 9 months ago (2016-03-25 14:06:42 UTC) #20
Brian Osman
4 years, 9 months ago (2016-03-25 14:22:10 UTC) #21
Message was sent while issue was closed.
On 2016/03/25 14:06:42, bsalomon wrote:
> On 2016/03/25 13:57:22, Brian Osman wrote:
> > On 2016/03/24 20:54:16, cblume wrote:
> > > On 2016/03/24 20:38:28, bsalomon wrote:
> > > > Think so, but checking with Chris.
> > > 
> > > Oh yes. Definitely. I thought I had already.
> > 
> > So I just tested doing this locally... It creates some regressions:
> > 
> > 1) The mip-chains don't look identical to the GL ones, which is probably
okay
> -
> > it would ensure that they're consistent across different GL implementations,
> > which is likely a net win.
> > 2) It doesn't handle all texture formats. In particular, if it encounters
> > Index8, it fails, which ultimately results in us not making a texture at
all,
> so
> > those elements are dropping out completely in various SKPs. The GL path
> expands
> > Index8 to RGBA8888 first, and then ends up generating mips of that data.
> > Ultimately, we probably need to do the expansion - Index8 isn't a texturable
> > format on many devices these days. (We've also added things like F16
recently,
> > and that needs to be handled in SkMipMap).
> > 3) It doesn't handle sRGB. This is a bigger issue that I need to discuss
with
> > reed@ when I get in the office later today... I spoke with Brian about it
last
> > night, but it's fairly tricky to get right.
> > 
> > So... my simple workaround proposal:
> > 
> > In the two locations where we attempt to use the CPU mipmap generation path,
> we
> > fall back to the GPU path if it fails for any reason. That would include the
> > current failure when it sees Index8 data). In addition until the CPU
> mip-mapping
> > code handles sRGB, we have it fail in that situation, too (triggering the GL
> > fallback), so that GL can do the right thing there. Make sense?
> 
> That sounds like a good plan to me. Will the sRGB failure have adverse effects
> on the sw backend? That is, would it cause MIP mapping to not work at all on
> sRGB sources for sw, and is sw ok with that if so?

Ah, yeah. That will definitely cause issues for raster. I can try hoisting the
check one level up so it only affects Ganesh...

Powered by Google App Engine
This is Rietveld 408576698