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

Issue 834633006: add ImageGenerator::NewFromData to porting layer (Closed)

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

add ImageGenerator::NewFromData to porting layer BUG=skia:3275 Committed: https://skia.googlesource.com/skia/+/5965c8ae4ee960275da4bc40189bdba85aab8b5e

Patch Set 1 #

Patch Set 2 : use new factory in tests #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : add helper for SkInstallDiscardablePixelRef(SkData*, ...) #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -81 lines) Patch
M bench/ETCBitmapBench.cpp View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M gm/astcbitmap.cpp View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M gm/colorwheel.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M gm/etc1bitmap.cpp View 1 2 3 3 chunks +3 lines, -7 lines 0 comments Download
M gm/factory.cpp View 1 2 chunks +2 lines, -5 lines 0 comments Download
M gm/image.cpp View 1 2 chunks +1 line, -3 lines 0 comments Download
M gyp/images.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkImage.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M include/core/SkImageGenerator.h View 1 2 3 1 chunk +5 lines, -0 lines 1 comment Download
M samplecode/SampleEncode.cpp View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M samplecode/SamplePicture.cpp View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M src/c/sk_surface.cpp View 1 1 chunk +1 line, -11 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 chunks +9 lines, -0 lines 0 comments Download
M src/image/SkImage_Raster.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/lazy/SkDiscardablePixelRef.cpp View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download
A src/ports/SkImageGenerator_skia.cpp View 1 1 chunk +116 lines, -0 lines 0 comments Download
M src/utils/SkLua.cpp View 1 2 chunks +1 line, -4 lines 0 comments Download
M tests/CachedDecodingPixelRefTest.cpp View 1 2 3 2 chunks +2 lines, -7 lines 0 comments Download
M tests/ImageDecodingTest.cpp View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M tests/KtxTest.cpp View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M tests/PDFJpegEmbedTest.cpp View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M tests/SurfaceTest.cpp View 1 2 chunks +1 line, -3 lines 0 comments Download
M tools/LazyDecodeBitmap.cpp View 1 2 chunks +1 line, -4 lines 0 comments Download
M tools/Resources.cpp View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
reed1
WIP -- intended to allow Chrome/Blink to implement this function so Skia can get access ...
5 years, 11 months ago (2015-01-05 22:32:52 UTC) #2
scroggo
On 2015/01/05 22:32:52, reed1 wrote: > WIP -- intended to allow Chrome/Blink to implement this ...
5 years, 11 months ago (2015-01-05 22:44:54 UTC) #3
reed1
I am trying to preflight this so it can land in chrome (with a diff ...
5 years, 11 months ago (2015-01-06 19:35:10 UTC) #4
scroggo
https://codereview.chromium.org/834633006/diff/40001/src/ports/SkImageGenerator_skia.cpp File src/ports/SkImageGenerator_skia.cpp (right): https://codereview.chromium.org/834633006/diff/40001/src/ports/SkImageGenerator_skia.cpp#newcode58 src/ports/SkImageGenerator_skia.cpp:58: SkAutoTUnref<BareMemoryAllocator> allocator(SkNEW_ARGS(BareMemoryAllocator, You could put the BareMemoryAllocator on the ...
5 years, 11 months ago (2015-01-06 19:50:15 UTC) #5
hal.canary
https://codereview.chromium.org/834633006/diff/40001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/834633006/diff/40001/include/core/SkImageGenerator.h#newcode36 include/core/SkImageGenerator.h:36: SK_API bool SkInstallDiscardablePixelRef(SkImageGenerator*, SkBitmap* destination); Since we have a ...
5 years, 11 months ago (2015-01-06 20:06:40 UTC) #6
hal.canary
https://codereview.chromium.org/834633006/diff/40001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/834633006/diff/40001/include/core/SkImageGenerator.h#newcode36 include/core/SkImageGenerator.h:36: SK_API bool SkInstallDiscardablePixelRef(SkImageGenerator*, SkBitmap* destination); Also, class SkImage { ...
5 years, 11 months ago (2015-01-06 20:14:48 UTC) #7
hal.canary
On 2015/01/06 20:14:48, Hal Canary wrote: > https://codereview.chromium.org/834633006/diff/40001/include/core/SkImageGenerator.h > File include/core/SkImageGenerator.h (right): > > https://codereview.chromium.org/834633006/diff/40001/include/core/SkImageGenerator.h#newcode36 ...
5 years, 11 months ago (2015-01-06 20:16:04 UTC) #8
reed1
https://codereview.chromium.org/834633006/diff/40001/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/834633006/diff/40001/include/core/SkImageGenerator.h#newcode36 include/core/SkImageGenerator.h:36: SK_API bool SkInstallDiscardablePixelRef(SkImageGenerator*, SkBitmap* destination); On 2015/01/06 20:06:40, Hal ...
5 years, 11 months ago (2015-01-07 16:09:23 UTC) #9
scroggo
lgtm (at patch set 3 or 4. I meant to hit the lgtm button last ...
5 years, 11 months ago (2015-01-07 21:47:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/834633006/60001
5 years, 11 months ago (2015-01-08 01:54:44 UTC) #12
commit-bot: I haz the power
5 years, 11 months ago (2015-01-08 02:04:49 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/5965c8ae4ee960275da4bc40189bdba85aab8b5e

Powered by Google App Engine
This is Rietveld 408576698