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

Issue 2434323002: Add isEncoded to SkImageGenerator (Closed)

Created:
4 years, 2 months ago by cblume
Modified:
4 years, 2 months ago
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add isEncoded to SkImageGenerator From within getDeferredTextureImageData() we want to know if the SkImage is backed by an encoded image or not. We decided to add isEncoded to the SkImage. However, the SkImage then needs to query the SkImageGenerator. In order to land this change, 3 separate patches are needed to not break the build. This patch must land first. It allows image generators to override isEncoded. The second patch will be in Chrome, where its DecodingImageGenerators will override isEncoded. The third patch will then change getDeferredTextureImageData() to query isEncoded. BUG=646089 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2434323002

Patch Set 1 #

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

Messages

Total messages: 12 (8 generated)
cblume
PTAL This is part of https://codereview.chromium.org/2337803002/ which will need to be landed in 3 pieces. ...
4 years, 2 months ago (2016-10-20 19:04:30 UTC) #5
cblume
https://chromiumcodereview.appspot.com/2434323002/diff/1/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://chromiumcodereview.appspot.com/2434323002/diff/1/include/core/SkImageGenerator.h#newcode75 include/core/SkImageGenerator.h:75: bool isEncoded() const { return this->onIsEncoded(); } Note that ...
4 years, 2 months ago (2016-10-20 19:08:39 UTC) #6
bsalomon
Deferring to others. I'm not too familiar with this code.
4 years, 2 months ago (2016-10-20 19:17:05 UTC) #8
cblume
4 years, 2 months ago (2016-10-21 09:14:04 UTC) #11
I believe this is no longer needed.
A better alternative was made: https://skia-review.googlesource.com/c/3780/

I will close this issue.

Powered by Google App Engine
This is Rietveld 408576698