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

Issue 1495693003: Index8 GPU and CPU raster support. (Closed)

Created:
5 years ago by aleksandar.stojiljkovic
Modified:
3 years, 5 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

Index8 GPU and CPU raster support. Code developed to support Chromium GIF (animation and single frame) Index8 decoding: https://codereview.chromium.org/1460523002/ GPU: Following handling of YUV planes: palette and indices are in two textures and GrIndex8toRGBEffect is used to render to RGBA target texture, used further in Ganesh. CPU: Only thing needed there was a change in SkImageGenerator::tryGenerateBitmap: Chromium image generator declares Index8 colorType, but in rare cases (never with the first frame, only with some of the frames after) decoder can produce only N32. Caveats: At the moment, there is conversion to N32 before rendering in case where drawBitmapRect has clipping scalling. Plan is to provide measurements showing that there is improvement in this case, too and optionally improve. Using RGBA target texture as existing code is doing the same, good to check if N32 (so, BGRA for cases where N32 == BGRA) is better. BUG=chromium:476531, chromium:138421

Patch Set 1 #

Total comments: 2

Patch Set 2 : generate index8, n32 replaced by onGetColorType #

Total comments: 2

Patch Set 3 : revert SkImageGenerator&SkImageCacherator changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -1 line) Patch
M gyp/gpu.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkBitmapDevice.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/SkGr.cpp View 4 chunks +77 lines, -0 lines 0 comments Download
A src/gpu/effects/GrIndex8toRGBEffect.h View 1 chunk +27 lines, -0 lines 0 comments Download
A src/gpu/effects/GrIndex8toRGBEffect.cpp View 1 chunk +85 lines, -0 lines 0 comments Download
A tests/Index8Test.cpp View 1 chunk +93 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
aleksandar.stojiljkovic
Index8 GPU and CPU raster support. Code developed to support Chromium GIF (animation and single ...
5 years ago (2015-12-03 13:30:49 UTC) #2
reed1
There will more further complications down the road (e.g. as we add other ways to ...
5 years ago (2015-12-03 13:47:23 UTC) #4
aleksandar.stojiljkovic
On 2015/12/03 13:47:23, reed1 wrote: > There will more further complications down the road (e.g. ...
5 years ago (2015-12-03 14:12:48 UTC) #5
aleksandar.stojiljkovic
On 2015/12/03 14:12:48, aleksandar.stojiljkovic wrote: ... > peeking and getting info would be good if ...
5 years ago (2015-12-03 14:19:41 UTC) #7
scroggo
On 2015/12/03 14:12:48, aleksandar.stojiljkovic wrote: > On 2015/12/03 13:47:23, reed1 wrote: > > There will ...
5 years ago (2015-12-03 15:06:06 UTC) #8
aleksandar.stojiljkovic
Trying different approach according to reed's comment - avoid allocation and failed pixel fetch of ...
5 years ago (2015-12-07 19:31:02 UTC) #9
reed1
How will you implement onGetColorType for GIF? I presume by sniffing the encoded data? If ...
5 years ago (2015-12-07 19:45:36 UTC) #10
aleksandar.stojiljkovic
On 2015/12/07 19:45:36, reed1 wrote: > How will you implement onGetColorType for GIF? I presume ...
5 years ago (2015-12-07 20:24:49 UTC) #11
aleksandar.stojiljkovic
On 2015/12/07 20:24:49, aleksandar.stojiljkovic wrote: > On 2015/12/07 19:45:36, reed1 wrote: > > How will ...
5 years ago (2015-12-07 20:31:08 UTC) #12
reed1
If a generator is created with partial data, and later the complete data is available, ...
5 years ago (2015-12-07 20:45:35 UTC) #13
aleksandar.stojiljkovic
On 2015/12/07 20:45:35, reed1 wrote: > If a generator is created with partial data, and ...
5 years ago (2015-12-07 20:59:43 UTC) #14
scroggo_chromium
3 years, 5 months ago (2017-07-12 20:08:02 UTC) #15
We're dropping Index8 (skbug.com/6828)

Powered by Google App Engine
This is Rietveld 408576698