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

Issue 1809733002: detach -> release (Closed)

Created:
4 years, 9 months ago by mtklein_C
Modified:
4 years, 9 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

detach -> release The C++ standard library uses the name "release" for the operation we call "detach". Rewriting each "detach(" to "release(" brings us a step closer to using standard library types directly (e.g. std::unique_ptr instead of SkAutoTDelete). This was a fairly blind transformation. There may have been unintentional conversions in here, but it's probably for the best to have everything uniformly say "release". BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1809733002 Committed: https://skia.googlesource.com/skia/+/18300a3aa7cb6eb55d21bb0450dffa58b6fc062c

Patch Set 1 #

Patch Set 2 : (C) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -213 lines) Patch
M bench/nanobench.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M dm/DM.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M dm/DMSrcSink.cpp View 1 chunk +1 line, -1 line 0 comments Download
M example/HelloWorld.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M experimental/iOSSampleApp/SkSampleUIView.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M experimental/tools/coreGraphicsPdf2png.cpp View 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkRefCnt.h View 1 chunk +0 lines, -1 line 0 comments Download
M include/core/SkTypes.h View 3 chunks +4 lines, -4 lines 0 comments Download
M include/private/SkTDArray.h View 1 chunk +1 line, -1 line 0 comments Download
M include/private/SkTemplates.h View 1 6 chunks +3 lines, -7 lines 0 comments Download
M include/views/SkOSWindow_Android.h View 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkOSWindow_Mac.h View 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkOSWindow_SDL.h View 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkOSWindow_Unix.h View 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkOSWindow_Win.h View 1 chunk +1 line, -1 line 0 comments Download
M include/views/SkOSWindow_iOS.h View 1 chunk +1 line, -1 line 0 comments Download
M platform_tools/android/apps/sample_app/src/main/jni/com_skia_SkiaSampleRenderer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M platform_tools/android/apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M samplecode/SampleApp.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M samplecode/SamplePictFile.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/android/SkBitmapRegionDecoder.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M src/codec/SkAndroidCodec.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M src/codec/SkBmpCodec.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/codec/SkCodec.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M src/codec/SkGifCodec.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M src/codec/SkIcoCodec.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/codec/SkJpegCodec.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/codec/SkPngCodec.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M src/codec/SkWbmpCodec.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkWebpCodec.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkAdvancedTypefaceMetrics.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkAdvancedTypefaceMetrics.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkColorTable.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkFontDescriptor.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkImageCacherator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkLightingShader.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkPictureData.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkPictureRecorder.cpp View 2 chunks +3 lines, -3 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 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkResourceCache.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkResourceCache.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M src/core/SkStream.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M src/core/SkTextBlob.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkTypeface.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkBlurMask.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/effects/gradients/SkGradientBitmapCache.h View 1 chunk +1 line, -1 line 0 comments Download
M src/effects/gradients/SkGradientBitmapCache.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M src/fonts/SkFontMgr_fontconfig.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/fonts/SkFontMgr_indirect.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrContextFactory.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrGpu.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrTextureParamsAdjuster.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrYUVProvider.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/batches/GrDrawPathBatch.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/batches/GrStencilAndCoverPathRenderer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLExtensions.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/SkGLContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/angle/SkANGLEGLContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/command_buffer/SkCommandBufferGLContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/mesa/SkMesaGLContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImage.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/lazy/SkDiscardablePixelRef.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/pathops/SkOpCoincidence.h View 1 chunk +1 line, -1 line 0 comments Download
M src/pathops/SkOpCoincidence.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M src/pathops/SkOpSegment.h View 1 chunk +1 line, -1 line 0 comments Download
M src/pathops/SkOpSegment.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/pathops/SkOpSpan.h View 1 chunk +1 line, -1 line 0 comments Download
M src/pathops/SkOpSpan.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M src/pdf/SkPDFDocument.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFFont.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M src/pdf/SkPDFStream.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkFontHost_mac.cpp View 6 chunks +9 lines, -9 lines 0 comments Download
M src/ports/SkFontMgr_android.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M src/ports/SkFontMgr_android_parser.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/ports/SkFontMgr_custom.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M src/ports/SkFontMgr_fontconfig.cpp View 5 chunks +6 lines, -6 lines 0 comments Download
M src/ports/SkImageGeneratorCG.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkRemotableFontMgr_win_dw.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/sfnt/SkOTUtils.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/utils/SkCanvasStateUtils.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M src/utils/SkFrontBufferedStream.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/utils/win/SkDWriteFontFileStream.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/views/ios/SkOSWindow_iOS.mm View 1 2 chunks +8 lines, -1 line 0 comments Download
M src/views/mac/SkOSWindow_Mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M src/views/sdl/SkOSWindow_SDL.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M src/views/unix/SkOSWindow_Unix.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/views/win/SkOSWindow_win.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/xps/SkDocument_XPS.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/xps/SkXPSDevice.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/BadIcoTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/CachedDecodingPixelRefTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/CodexTest.cpp View 8 chunks +8 lines, -8 lines 0 comments Download
M tests/ColorSpaceTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/FontHostStreamTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/FrontBufferedStreamTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/GifTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/SerializationTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tests/UtilsTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/YUVTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tools/Resources.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/VisualBench/VisualBench.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/VisualBench/VisualBenchmarkStream.cpp View 1 chunk +1 line, -1 line 0 comments Download
M tools/debugger/SkDrawCommand.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (9 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/1809733002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809733002/1
4 years, 9 months ago (2016-03-16 18:00:56 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: skia_presubmit-Trybot on client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/7693)
4 years, 9 months ago (2016-03-16 18:03:27 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809733002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809733002/20001
4 years, 9 months ago (2016-03-16 18:08:06 UTC) #8
mtklein_C
4 years, 9 months ago (2016-03-16 20:30:13 UTC) #11
reed1
lgtm
4 years, 9 months ago (2016-03-16 20:50:35 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1809733002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1809733002/20001
4 years, 9 months ago (2016-03-16 20:51:58 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 20:53:40 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/18300a3aa7cb6eb55d21bb0450dffa58b6fc062c

Powered by Google App Engine
This is Rietveld 408576698