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

Issue 226183018: SkNonCopyable should be used with private inheritance. (Closed)

Created:
6 years, 8 months ago by mtklein_C
Modified:
6 years, 8 months ago
Reviewers:
mtklein, reed1
CC:
skia-review_googlegroups.com, robertphillips
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

SkNonCopyable should be used with private inheritance. This is mostly s/public SkNoncopyable/SkNoncopyable/g. Two classes (SkDrawLooper::Context and SkPicture::OperationList) don't actually work with SkNoncopyable because they introduce a virtual destructor. I added SkNoncopyableVirtual to make them work as intended. Sort of questionable whether they really need to be noncopyable in the first place, but I guess it doesn't hurt to keep the behavior the same. BUG=skia: Committed: http://code.google.com/p/skia/source/detail?r=14081

Patch Set 1 #

Patch Set 2 : fix up broken uses #

Patch Set 3 : name resolution #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -42 lines) Patch
M experimental/PdfViewer/inc/SkPdfContext.h View 1 chunk +1 line, -1 line 0 comments Download
M experimental/PdfViewer/inc/SkPdfRenderer.h View 1 chunk +1 line, -1 line 0 comments Download
M experimental/SkiaExamples/SkExample.h View 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkBitmap.h View 2 chunks +2 lines, -2 lines 0 comments Download
M include/core/SkDrawLooper.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkImageDecoder.h View 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkPicture.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M include/core/SkRefCnt.h View 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkTInternalLList.h View 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkTypes.h View 2 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrBackendEffectFactory.h View 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrClipData.h View 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrContextFactory.h View 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrCoordTransform.h View 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrEffectUnitTest.h View 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrTextureAccess.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkMatrixClipStateMgr.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/core/SkSmallAllocator.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkTLList.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrAllocPool.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrAllocator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrBufferAllocPool.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrClipMaskCache.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrClipMaskManager.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrOrderedSet.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrPlotMgr.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrRedBlackTree.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrSWMaskHelper.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrTemplates.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/effects/GrTextureStripAtlas.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLBufferImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLShaderBuilder.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/gl/debug/GrFakeRefObj.h View 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFFont.h View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mtklein
6 years, 8 months ago (2014-04-07 17:30:53 UTC) #1
reed1
On 2014/04/07 17:30:53, mtklein wrote: SkRefCntBase adds a virtual destructor. Is that the same construct ...
6 years, 8 months ago (2014-04-07 17:35:03 UTC) #2
mtklein
On 2014/04/07 17:35:03, reed1 wrote: > On 2014/04/07 17:30:53, mtklein wrote: > > SkRefCntBase adds ...
6 years, 8 months ago (2014-04-07 18:00:22 UTC) #3
mtklein
On 2014/04/07 18:00:22, mtklein wrote: > On 2014/04/07 17:35:03, reed1 wrote: > > On 2014/04/07 ...
6 years, 8 months ago (2014-04-07 18:16:28 UTC) #4
reed1
On 2014/04/07 18:16:28, mtklein wrote: > On 2014/04/07 18:00:22, mtklein wrote: > > On 2014/04/07 ...
6 years, 8 months ago (2014-04-07 18:19:39 UTC) #5
reed1
lgtm
6 years, 8 months ago (2014-04-07 18:19:51 UTC) #6
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 8 months ago (2014-04-07 18:20:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/226183018/40001
6 years, 8 months ago (2014-04-07 18:20:42 UTC) #8
commit-bot: I haz the power
6 years, 8 months ago (2014-04-07 19:35:12 UTC) #9
Message was sent while issue was closed.
Change committed as 14081

Powered by Google App Engine
This is Rietveld 408576698