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

Issue 2333713002: change SkStreams to work with sk_sp<SkData> instead of SkData* (Closed)

Created:
4 years, 3 months ago by reed1
Modified:
4 years, 3 months ago
Reviewers:
msarett
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

change SkStreams to work with sk_sp<SkData> instead of SkData* BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2333713002 Committed: https://skia.googlesource.com/skia/+/42943c8aa9c611c18ad0f1a30a27669f3d82239c

Patch Set 1 #

Total comments: 2

Patch Set 2 : update fontmgr methods #

Patch Set 3 : rename makeCopy to asData or snapshotAsData #

Patch Set 4 : fix fiddle and wic #

Patch Set 5 : add guard for android and blaze #

Patch Set 6 : fix xpsdevice #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -150 lines) Patch
M bench/AndroidCodecBench.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M bench/BitmapRegionDecoderBench.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M bench/CodecBench.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M bench/ColorCodecBench.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M bench/nanobench.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M dm/DM.cpp View 1 chunk +1 line, -1 line 0 comments Download
M dm/DMSrcSink.cpp View 8 chunks +8 lines, -9 lines 0 comments Download
M fuzz/Fuzz.h View 1 chunk +1 line, -1 line 0 comments Download
M fuzz/fuzz.cpp View 8 chunks +17 lines, -17 lines 0 comments Download
M gyp/skia_for_android_framework_defines.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M include/android/SkBitmapRegionDecoder.h View 1 chunk +1 line, -2 lines 0 comments Download
M include/codec/SkAndroidCodec.h View 1 chunk +4 lines, -3 lines 0 comments Download
M include/codec/SkCodec.h View 1 chunk +4 lines, -3 lines 0 comments Download
M include/core/SkStream.h View 1 2 3 4 3 chunks +19 lines, -3 lines 0 comments Download
M public.bzl View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M samplecode/DecodeFile.h View 1 chunk +1 line, -1 line 0 comments Download
M src/android/SkBitmapRegionDecoder.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkAndroidCodec.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkCodec.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkCodecImageGenerator.h View 2 chunks +5 lines, -6 lines 0 comments Download
M src/codec/SkCodecImageGenerator.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/core/SkStream.cpp View 1 2 5 chunks +13 lines, -10 lines 0 comments Download
M src/images/SkImageEncoder.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/pathops/SkPathOpsOp.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontHost_win.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontMgr_android.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontMgr_custom.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontMgr_fontconfig.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontMgr_win_dw.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkImageGeneratorWIC.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/xps/SkXPSDevice.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/AnnotationTest.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tests/CachedDecodingPixelRefTest.cpp View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M tests/CodecPriv.h View 1 chunk +1 line, -3 lines 0 comments Download
M tests/CodecTest.cpp View 1 2 7 chunks +9 lines, -10 lines 0 comments Download
M tests/PDFDocumentTest.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M tests/PDFGlyphsToUnicodeTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/PDFJpegEmbedTest.cpp View 2 chunks +2 lines, -4 lines 0 comments Download
M tests/PDFMetadataAttributeTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/PDFPrimitivesTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/PathTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/PictureTest.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tests/StreamTest.cpp View 1 2 3 chunks +6 lines, -8 lines 0 comments Download
M tests/TypefaceTest.cpp View 2 chunks +4 lines, -5 lines 0 comments Download
M tools/debugger/SkDrawCommand.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M tools/fiddle/fiddle_main.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M tools/get_images_from_skps.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tools/skdiff_main.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M tools/skdiff_utils.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/skdiff_utils.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tools/skiaserve/Request.cpp View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M tools/skiaserve/urlhandlers/BreakHandler.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M tools/viewer/ImageSlide.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tools/visualize_color_gamut.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 29 (19 generated)
reed1
4 years, 3 months ago (2016-09-12 13:17:29 UTC) #5
msarett
Questions about your use of copying streams... https://codereview.chromium.org/2333713002/diff/1/include/core/SkStream.h File include/core/SkStream.h (right): https://codereview.chromium.org/2333713002/diff/1/include/core/SkStream.h#newcode317 include/core/SkStream.h:317: sk_sp<SkData> makeCopy() ...
4 years, 3 months ago (2016-09-12 13:32:07 UTC) #8
msarett
On 2016/09/12 13:32:07, msarett wrote: > Questions about your use of copying streams... > > ...
4 years, 3 months ago (2016-09-12 13:37:30 UTC) #9
reed1
https://codereview.chromium.org/2333713002/diff/1/include/core/SkStream.h File include/core/SkStream.h (right): https://codereview.chromium.org/2333713002/diff/1/include/core/SkStream.h#newcode317 include/core/SkStream.h:317: sk_sp<SkData> makeCopy() const { return fData; } On 2016/09/12 ...
4 years, 3 months ago (2016-09-12 13:59:51 UTC) #10
msarett
lgtm
4 years, 3 months ago (2016-09-12 14:29:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2333713002/100001
4 years, 3 months ago (2016-09-12 16:16:38 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2333713002/100001
4 years, 3 months ago (2016-09-12 16:37:37 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/266916)
4 years, 3 months ago (2016-09-12 17:09:47 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2333713002/100001
4 years, 3 months ago (2016-09-12 17:29:59 UTC) #27
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 19:01:47 UTC) #29
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/42943c8aa9c611c18ad0f1a30a27669f3d82239c

Powered by Google App Engine
This is Rietveld 408576698