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

Issue 1816223002: Update SkSpecialImage to be able to create tight SkImages and SkSurfaces (Closed)

Created:
4 years, 9 months ago by robertphillips
Modified:
4 years, 9 months ago
Reviewers:
bsalomon, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Update SkSpecialImage to be able to create tight SkImages and SkSurfaces This calved off of: https://codereview.chromium.org/1810693003/ (Switch SkTileImageFilter over to new onFilterImage interface) since the TileImageFilter needs a tight bitmap/texture/image to perform its draw. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1816223002 Committed: https://skia.googlesource.com/skia/+/b4bd11e66519f545282f914c67b54bf17cecab84

Patch Set 1 #

Patch Set 2 : update to ToT #

Patch Set 3 : clean up #

Patch Set 4 : Add TODOs #

Patch Set 5 : Fix line endings #

Total comments: 2

Patch Set 6 : Rm ' ' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -2 lines) Patch
M src/core/SkSpecialImage.h View 1 2 3 2 chunks +15 lines, -1 line 0 comments Download
M src/core/SkSpecialImage.cpp View 1 2 3 4 5 6 chunks +71 lines, -1 line 0 comments Download
M tests/SpecialImageTest.cpp View 4 chunks +30 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
robertphillips
4 years, 9 months ago (2016-03-21 19:00:50 UTC) #4
bsalomon
lgtm but wondering if it'd be clearer to rename the existing factory methods makeSpecial* and ...
4 years, 9 months ago (2016-03-21 19:50:08 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1816223002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1816223002/100001
4 years, 9 months ago (2016-03-21 20:17:10 UTC) #7
reed1
https://codereview.chromium.org/1816223002/diff/80001/src/core/SkSpecialImage.cpp File src/core/SkSpecialImage.cpp (right): https://codereview.chromium.org/1816223002/diff/80001/src/core/SkSpecialImage.cpp#newcode44 src/core/SkSpecialImage.cpp:44: virtual SkSurface* onMakeTightSurface(const SkImageInfo& info) const = 0; why ...
4 years, 9 months ago (2016-03-21 20:18:01 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 20:28:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1816223002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1816223002/100001
4 years, 9 months ago (2016-03-21 20:43:19 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://skia.googlesource.com/skia/+/b4bd11e66519f545282f914c67b54bf17cecab84
4 years, 9 months ago (2016-03-21 20:44:23 UTC) #15
robertphillips
4 years, 9 months ago (2016-03-21 20:48:37 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/1816223002/diff/80001/src/core/SkSpecialImage...
File src/core/SkSpecialImage.cpp (right):

https://codereview.chromium.org/1816223002/diff/80001/src/core/SkSpecialImage...
src/core/SkSpecialImage.cpp:44: virtual SkSurface* onMakeTightSurface(const
SkImageInfo& info) const = 0;
On 2016/03/21 20:18:01, reed1 wrote:
> why is this * and not sp?

I answered this off-line. Right now, SkSurface's factories return raw pointers.
Having the raw->sk_sp swap occur in one place (i.e., makeTightSurface) should
make swapping over to smart pointers easier.

Powered by Google App Engine
This is Rietveld 408576698