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

Issue 1282363002: Use SkImageCacherator in SkImages (Closed)

Created:
5 years, 4 months ago by reed1
Modified:
5 years, 3 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

Use SkImageCacherator in SkImages Possible follow-up changes to consider 1. Roll SkImage_Raster and _Gpu into _Generator, where the generator (or cacherator) is backed by a pre-existing texture or raster. 2. Evolve SkImageUsageType into a verb requiring stretching, and have the caller (common code) digest the caps() and usage, so that subclasses are just told what to do (stretch or not) 3. Common code/utility to convert an unstretched texture into a stretch one (and cache it) if the generator can only make an unstretched one. BUG=skia: Committed: https://skia.googlesource.com/skia/+/85d9178832f4a64c9d80ffb14cb9dab4fe0fa54a

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : rebase #

Patch Set 8 : now with mutex safeness #

Total comments: 2

Patch Set 9 : remove cruft #

Patch Set 10 : rebase #

Patch Set 11 : #

Patch Set 12 : add GrYUVProvider #

Patch Set 13 : rebase after GrYUVProvider landed separately #

Patch Set 14 : #

Patch Set 15 : add guard for Chrome #

Patch Set 16 : fix no-gpu build #

Patch Set 17 : #

Patch Set 18 : #

Total comments: 10

Patch Set 19 : fix rob comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -107 lines) Patch
M gyp/core.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkBitmap.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -0 lines 0 comments Download
M include/core/SkImage.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M include/gpu/SkGr.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -0 lines 0 comments Download
M src/core/SkImageCacherator.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +74 lines, -11 lines 0 comments Download
M src/gpu/SkGpuDevice.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +13 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +108 lines, -36 lines 0 comments Download
M src/gpu/SkGr.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +32 lines, -43 lines 0 comments Download
M src/gpu/SkGrPriv.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImage_Base.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -1 line 0 comments Download
A src/image/SkImage_Generator.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +95 lines, -0 lines 0 comments Download
M src/image/SkImage_Gpu.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/image/SkImage_Gpu.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M src/image/SkImage_Raster.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +13 lines, -12 lines 0 comments Download

Messages

Total messages: 53 (24 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363002/40001
5 years, 4 months ago (2015-08-13 22:15:21 UTC) #2
reed1
5 years, 4 months ago (2015-08-13 22:15:42 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363002/60001
5 years, 4 months ago (2015-08-18 19:11:41 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/2690)
5 years, 4 months ago (2015-08-18 19:14:13 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363002/100001
5 years, 4 months ago (2015-08-19 21:22:50 UTC) #11
reed1
almost ready for review -- will write a gm to test the shader-from-image (which is ...
5 years, 4 months ago (2015-08-19 21:25:07 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363002/120001
5 years, 4 months ago (2015-08-20 20:59:12 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/2765)
5 years, 4 months ago (2015-08-20 21:08:11 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363002/140001
5 years, 4 months ago (2015-08-21 19:38:38 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-21 19:45:35 UTC) #21
reed1
ptal
5 years, 4 months ago (2015-08-21 21:02:32 UTC) #23
bsalomon
lgtm https://codereview.chromium.org/1282363002/diff/140001/src/image/SkImage_Generator.cpp File src/image/SkImage_Generator.cpp (right): https://codereview.chromium.org/1282363002/diff/140001/src/image/SkImage_Generator.cpp#newcode13 src/image/SkImage_Generator.cpp:13: //#include "SkImageGeneratorPriv.h" what this?
5 years, 4 months ago (2015-08-24 13:42:08 UTC) #24
reed1
https://codereview.chromium.org/1282363002/diff/140001/src/image/SkImage_Generator.cpp File src/image/SkImage_Generator.cpp (right): https://codereview.chromium.org/1282363002/diff/140001/src/image/SkImage_Generator.cpp#newcode13 src/image/SkImage_Generator.cpp:13: //#include "SkImageGeneratorPriv.h" On 2015/08/24 13:42:08, bsalomon wrote: > what ...
5 years, 4 months ago (2015-08-24 14:05:04 UTC) #25
reed1
Will investigate some diffs (probably related to YUV conversion between CPU and GPU) before I ...
5 years, 4 months ago (2015-08-24 14:15:57 UTC) #26
reed1
Down to 15 differences, and now believe these are due to SW -vs- HW yuv-conversion. ...
5 years, 3 months ago (2015-09-09 14:00:17 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363002/280001
5 years, 3 months ago (2015-09-09 14:34:13 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/3070) Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, ...
5 years, 3 months ago (2015-09-09 14:35:10 UTC) #32
bsalomon
My only concern is the large image (but not larger than max texture size) case ...
5 years, 3 months ago (2015-09-09 14:38:06 UTC) #33
reed1
On 2015/09/09 14:38:06, bsalomon wrote: > My only concern is the large image (but not ...
5 years, 3 months ago (2015-09-09 14:41:52 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363002/300001
5 years, 3 months ago (2015-09-09 14:42:06 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363002/340001
5 years, 3 months ago (2015-09-10 16:08:27 UTC) #40
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-10 16:13:51 UTC) #42
bsalomon
lgtm
5 years, 3 months ago (2015-09-10 16:19:38 UTC) #43
robertphillips
lgtm + nits https://codereview.chromium.org/1282363002/diff/340001/src/image/SkImage_Generator.cpp File src/image/SkImage_Generator.cpp (right): https://codereview.chromium.org/1282363002/diff/340001/src/image/SkImage_Generator.cpp#newcode9 src/image/SkImage_Generator.cpp:9: #include "SkBitmap.h" Do we need SkCanvas.h ...
5 years, 3 months ago (2015-09-10 17:33:30 UTC) #44
reed1
https://codereview.chromium.org/1282363002/diff/340001/src/image/SkImage_Generator.cpp File src/image/SkImage_Generator.cpp (right): https://codereview.chromium.org/1282363002/diff/340001/src/image/SkImage_Generator.cpp#newcode9 src/image/SkImage_Generator.cpp:9: #include "SkBitmap.h" On 2015/09/10 17:33:30, robertphillips wrote: > Do ...
5 years, 3 months ago (2015-09-10 21:21:32 UTC) #45
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363002/360001
5 years, 3 months ago (2015-09-10 21:21:59 UTC) #47
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-10 21:30:48 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1282363002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1282363002/360001
5 years, 3 months ago (2015-09-10 21:32:49 UTC) #52
commit-bot: I haz the power
5 years, 3 months ago (2015-09-10 21:33:42 UTC) #53
Message was sent while issue was closed.
Committed patchset #19 (id:360001) as
https://skia.googlesource.com/skia/+/85d9178832f4a64c9d80ffb14cb9dab4fe0fa54a

Powered by Google App Engine
This is Rietveld 408576698