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

Issue 1817383002: switch surface to sk_sp (Closed)

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

switch surface to sk_sp BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1817383002 CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot Committed: https://skia.googlesource.com/skia/+/e8f3062a36d3682f4019309a32b5b84dc9eddf8c

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : fix no-gpu #

Patch Set 8 : fix cmake #

Patch Set 9 : #

Patch Set 10 : rebase #

Patch Set 11 : fix crashes #

Patch Set 12 : #

Total comments: 1

Patch Set 13 : fix android #

Patch Set 14 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+523 lines, -484 lines) Patch
M bench/DisplacementBench.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M bench/ImageBench.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M bench/MergeBench.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M bench/SKPBench.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M bench/nanobench.h View 1 1 chunk +1 line, -1 line 0 comments Download
M bench/nanobench.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -5 lines 0 comments Download
M cmake/example.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M dm/DMGpuSupport.h View 1 1 chunk +8 lines, -8 lines 0 comments Download
M dm/DMSrcSink.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -7 lines 0 comments Download
M example/HelloWorld.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M gm/bigtileimagefilter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/color4f.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M gm/complexclip_blur_tiled.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M gm/dftext.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M gm/discard.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -3 lines 0 comments Download
M gm/drawatlas.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/drawatlascolor.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/drawbitmaprect.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/drawminibitmaprect.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/fatpathfill.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M gm/filterfastbounds.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/image.cpp View 5 chunks +13 lines, -14 lines 0 comments Download
M gm/image_pict.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M gm/image_shader.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M gm/imagealphathreshold.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/imagefilters.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M gm/imagefiltersclipped.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/imagefilterscropexpand.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M gm/imagefiltersscaled.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/imagefilterstransformed.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/imagescalealigned.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/imagesource2.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/imagetoyuvplanes.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M gm/lcdblendmodes.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/localmatriximagefilter.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/mipmap.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/multipicturedraw.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -7 lines 0 comments Download
M gm/ninepatchstretch.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M gm/perspshaders.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M gm/resizeimagefilter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/srcmode.cpp View 2 chunks +4 lines, -5 lines 0 comments Download
M gm/surface.cpp View 4 chunks +9 lines, -10 lines 0 comments Download
M gm/textblobgeometrychange.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/textblobmixedsizes.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M gm/textblobrandomfont.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/transparency.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/verylargebitmap.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/xfermodes3.cpp View 4 chunks +5 lines, -5 lines 0 comments Download
M gyp/skia_for_android_framework_defines.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkBitmapDevice.h View 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkCanvas.h View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M include/core/SkDevice.h View 12 13 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkSurface.h View 1 2 3 6 chunks +79 lines, -27 lines 0 comments Download
M public.bzl View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M samplecode/SampleApp.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M samplecode/SampleAtlas.cpp View 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleFatBits.cpp View 6 chunks +8 lines, -8 lines 0 comments Download
M samplecode/SampleFilterQuality.cpp View 5 chunks +8 lines, -8 lines 0 comments Download
M samplecode/SampleQuadStroker.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M samplecode/SampleTextureDomain.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/c/sk_surface.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkBitmapDevice.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 9 12 13 2 chunks +9 lines, -3 lines 0 comments Download
M src/core/SkDevice.cpp View 1 2 3 4 5 6 7 8 9 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M src/core/SkPictureImageGenerator.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPictureRecord.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPixmap.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkRecorder.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkRecorder.cpp View 2 chunks +4 lines, -0 lines 0 comments Download
M src/core/SkSpecialImage.cpp View 1 2 3 4 5 6 7 8 9 5 chunks +9 lines, -10 lines 0 comments Download
M src/gpu/GrLayerHoister.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/SkGpuDevice.h View 12 13 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M src/image/SkImage_Base.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/image/SkImage_Generator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImage_Gpu.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/image/SkImage_Raster.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkSurface.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -10 lines 0 comments Download
M src/image/SkSurface_Base.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -3 lines 0 comments Download
M src/image/SkSurface_Gpu.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/image/SkSurface_Gpu.cpp View 6 chunks +27 lines, -24 lines 0 comments Download
M src/image/SkSurface_Raster.cpp View 7 chunks +18 lines, -18 lines 0 comments Download
M src/pdf/SkPDFDevice.h View 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -6 lines 0 comments Download
M src/utils/SkLua.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -6 lines 0 comments Download
M src/utils/SkRGBAToYUV.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/views/SkWindow.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M tests/BlurTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/DrawBitmapRectTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/DrawFilterTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/DrawPathTest.cpp View 1 2 3 4 5 6 7 8 9 10 10 chunks +9 lines, -10 lines 0 comments Download
M tests/GpuDrawPathTest.cpp View 1 1 chunk +2 lines, -3 lines 0 comments Download
M tests/GrTextureMipMapInvalidationTest.cpp View 1 2 chunks +1 line, -2 lines 0 comments Download
M tests/GradientTest.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M tests/ImageFilterTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +5 lines, -6 lines 0 comments Download
M tests/ImageIsOpaqueTest.cpp View 1 2 chunks +6 lines, -7 lines 0 comments Download
M tests/ImageNewShaderTest.cpp View 1 4 chunks +8 lines, -12 lines 0 comments Download
M tests/ImageTest.cpp View 1 5 chunks +6 lines, -7 lines 0 comments Download
M tests/IndexedPngOverflowTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/PathTest.cpp View 1 5 chunks +5 lines, -7 lines 0 comments Download
M tests/ReadPixelsTest.cpp View 1 5 chunks +7 lines, -7 lines 0 comments Download
M tests/RecordDrawTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/RecorderTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M tests/ResourceCacheTest.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M tests/SkResourceCacheTest.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tests/SurfaceTest.cpp View 1 2 3 4 5 6 7 8 9 10 27 chunks +73 lines, -80 lines 0 comments Download
M tests/TextBlobCacheTest.cpp View 1 2 chunks +2 lines, -3 lines 0 comments Download
M tests/TextureStorageAllocator.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tests/WritePixelsTest.cpp View 1 3 chunks +6 lines, -5 lines 0 comments Download
M tools/VisualBench/VisualBench.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/VisualBench/WrappedBenchmark.h View 1 2 3 4 chunks +8 lines, -8 lines 0 comments Download
M tools/android/SkAndroidSDKCanvas.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M tools/android/SkAndroidSDKCanvas.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -3 lines 0 comments Download
M tools/kilobench/kilobench.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M tools/skhello.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/skiaserve/Request.cpp View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 41 (22 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/1817383002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817383002/40001
4 years, 9 months ago (2016-03-22 02:00:40 UTC) #3
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/7239) Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on ...
4 years, 9 months ago (2016-03-22 02:02:17 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/1817383002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817383002/80001
4 years, 9 months ago (2016-03-22 02:54:42 UTC) #7
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/7240)
4 years, 9 months ago (2016-03-22 02:56:32 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/1817383002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817383002/100001
4 years, 9 months ago (2016-03-22 02:59:02 UTC) #11
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/7241)
4 years, 9 months ago (2016-03-22 03:00:32 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817383002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817383002/120001
4 years, 9 months ago (2016-03-22 03:02:45 UTC) #15
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/7231) Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot on ...
4 years, 9 months ago (2016-03-22 03:04:35 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/1817383002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817383002/140001
4 years, 9 months ago (2016-03-22 03:09:45 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot/builds/5555) Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on ...
4 years, 9 months ago (2016-03-22 03:11:20 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817383002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817383002/160001
4 years, 9 months ago (2016-03-22 03:23:05 UTC) #24
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/7244)
4 years, 9 months ago (2016-03-22 03:25:19 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817383002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817383002/220001
4 years, 9 months ago (2016-03-23 21:10:18 UTC) #28
reed1
4 years, 9 months ago (2016-03-23 21:16:56 UTC) #31
f(malita)
include, src lgtm https://codereview.chromium.org/1817383002/diff/220001/src/image/SkSurface_Base.h File src/image/SkSurface_Base.h (right): https://codereview.chromium.org/1817383002/diff/220001/src/image/SkSurface_Base.h#newcode130 src/image/SkSurface_Base.h:130: fCachedImage = SkSafeRef(snap); TODO: fCachedImage -> ...
4 years, 9 months ago (2016-03-23 21:43:10 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817383002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817383002/240001
4 years, 9 months ago (2016-03-23 21:47:27 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm64-Debug-Android-Trybot/builds/5633)
4 years, 9 months ago (2016-03-23 21:55:19 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1817383002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1817383002/260001
4 years, 9 months ago (2016-03-24 01:46:55 UTC) #39
commit-bot: I haz the power
4 years, 9 months ago (2016-03-24 01:59:30 UTC) #41
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://skia.googlesource.com/skia/+/e8f3062a36d3682f4019309a32b5b84dc9eddf8c

Powered by Google App Engine
This is Rietveld 408576698