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

Issue 665913002: Move code to dump GrSurface as a png to helper files (Closed)

Created:
6 years, 2 months ago by Kimmo Kinnunen
Modified:
4 years, 11 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@separate-image-encoder-01-skimage
Project:
skia
Visibility:
Public.

Description

Move code to dump GrSurface as a png to helper files Create a new set of helper functions in SkImagesSupport.h. These functions use the image decoders and encoders from images library. In cases where images library is not part of the Skia library, these functions can be stubbed out. For example, Chromium would compile src/ports/SkImagesSupport_noimages.cpp, since it does not compile in the image decoders or encoders. BUG=skia:2992

Patch Set 1 #

Total comments: 3

Patch Set 2 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -42 lines) Patch
M gyp/core.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M gyp/images.gyp View 1 2 chunks +4 lines, -0 lines 0 comments Download
M include/gpu/GrSurface.h View 1 chunk +0 lines, -1 line 0 comments Download
A src/core/SkImagesSupport.h View 1 1 chunk +22 lines, -0 lines 0 comments Download
M src/gpu/GrAADistanceFieldPathRenderer.cpp View 2 chunks +6 lines, -4 lines 0 comments Download
M src/gpu/GrLayerCache.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrSurface.cpp View 2 chunks +0 lines, -28 lines 0 comments Download
M src/gpu/GrSurfacePriv.h View 1 2 chunks +1 line, -6 lines 0 comments Download
M src/gpu/GrTextStrike.cpp View 2 chunks +3 lines, -1 line 0 comments Download
A src/ports/SkImagesSupport_default.cpp View 1 chunk +44 lines, -0 lines 0 comments Download
A src/ports/SkImagesSupport_noimages.cpp View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
Kimmo Kinnunen
6 years, 2 months ago (2014-10-20 12:46:13 UTC) #2
jvanverth1
Only one comment, but I think you'll need Brian to approve it, as it changes ...
6 years, 2 months ago (2014-10-20 14:32:21 UTC) #4
scroggo
not lgtm https://codereview.chromium.org/665913002/diff/1/src/gpu/GrAADistanceFieldPathRenderer.cpp File src/gpu/GrAADistanceFieldPathRenderer.cpp (right): https://codereview.chromium.org/665913002/diff/1/src/gpu/GrAADistanceFieldPathRenderer.cpp#newcode31 src/gpu/GrAADistanceFieldPathRenderer.cpp:31: #ifdef SK_DEVELOPER This is a good change ...
6 years, 2 months ago (2014-10-20 15:27:39 UTC) #6
Kimmo Kinnunen
On 2014/10/20 15:27:39, scroggo wrote: > not lgtm .... > We do not fully qualify ...
6 years, 2 months ago (2014-10-20 16:27:39 UTC) #7
scroggo
On 2014/10/20 16:27:39, Kimmo Kinnunen wrote: > On 2014/10/20 15:27:39, scroggo wrote: > > not ...
6 years, 2 months ago (2014-10-20 17:47:43 UTC) #8
Kimmo Kinnunen
On 2014/10/20 17:47:43, scroggo wrote: > On 2014/10/20 16:27:39, Kimmo Kinnunen wrote: > > On ...
6 years, 2 months ago (2014-10-20 18:30:20 UTC) #9
Kimmo Kinnunen
On 2014/10/20 17:47:43, scroggo wrote: > If SkImageDecoder_empty is built, nothing will be written. Or ...
6 years, 2 months ago (2014-10-20 18:50:09 UTC) #10
scroggo
On 2014/10/20 18:50:09, Kimmo Kinnunen wrote: > On 2014/10/20 17:47:43, scroggo wrote: > > If ...
6 years, 2 months ago (2014-10-20 19:11:28 UTC) #11
Kimmo Kinnunen
6 years, 2 months ago (2014-10-21 08:14:46 UTC) #12
On 2014/10/20 19:11:28, scroggo wrote:
> In general, I support more testing. I think I understand the architectural
> decisions
> a little better now that I have looked through all of your CLs. That said, I
> think
> it will be worthwhile to have a discussion about it. I'll set something up for
> tomorrow.

Ok.

> In the meantime, is there a document you can point me to that has more
> explanation that the bug?

I didn't think this would be such a contested feature to warrant such. I tried
to write something here, not sure if it's of any help:
https://docs.google.com/document/d/1pUbdJ6OSNK--y2rSjPRkUMYCCx7jg6CjcLB_AjZyv...

Powered by Google App Engine
This is Rietveld 408576698