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

Issue 1404923004: Proposal for SkImageGenerator::canDecodeAndScale API

Created:
5 years, 2 months ago by aleksandar.stojiljkovic
Modified:
5 years, 2 months ago
Reviewers:
scroggo, reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Proposal for SkImageGenerator::canDecodeAndScale API targetted use: 1) decode images to resolution close to displayed 2) when decoder supports it, decode opaque images to RGB565 BUG=skia:

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -0 lines) Patch
M include/core/SkImageGenerator.h View 1 2 chunks +55 lines, -0 lines 1 comment Download
M src/core/SkImageGenerator.cpp View 1 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
aleksandar.stojiljkovic
This is proposal extending original from https://codereview.chromium.org/1396323007/
5 years, 2 months ago (2015-10-15 16:10:12 UTC) #1
scroggo
https://codereview.chromium.org/1404923004/diff/1/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1404923004/diff/1/include/core/SkImageGenerator.h#newcode137 include/core/SkImageGenerator.h:137: bool canDecodeAndScale(const SkColorType colorType, const SkScalar scale = SK_Scalar1, ...
5 years, 2 months ago (2015-10-15 16:26:33 UTC) #3
aleksandar.stojiljkovic
> https://codereview.chromium.org/1404923004/diff/1/include/core/SkImageGenerator.h#newcode137 > include/core/SkImageGenerator.h:137: bool canDecodeAndScale(const SkColorType > colorType, const SkScalar scale = SK_Scalar1, > ...
5 years, 2 months ago (2015-10-15 17:00:48 UTC) #4
aleksandar.stojiljkovic
Related change: implementation for the proposed API - RGB565 support in Webkit decoders is in ...
5 years, 2 months ago (2015-10-19 15:26:48 UTC) #6
aleksandar.stojiljkovic
Fixing the review issues. Corresponding skia change: Issue 1412423008: Handling large jpegs in CPU raster ...
5 years, 2 months ago (2015-10-23 09:11:00 UTC) #7
aleksandar.stojiljkovic
5 years, 2 months ago (2015-10-23 09:37:02 UTC) #8
updated to correspond to state in https://codereview.chromium.org/1412423008
Duplicated here - FWIW API will anyway change as reed is defining it.

https://codereview.chromium.org/1404923004/diff/20001/include/core/SkImageGen...
File include/core/SkImageGenerator.h (right):

https://codereview.chromium.org/1404923004/diff/20001/include/core/SkImageGen...
include/core/SkImageGenerator.h:16: class GrTexture;
Rebased meanwhile...

Powered by Google App Engine
This is Rietveld 408576698