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:
R=reed@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/226183018
git-svn-id: http://skia.googlecode.com/svn/trunk@14081 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkMatrixClipStateMgr.h b/src/core/SkMatrixClipStateMgr.h
index b227583..270eacd 100644
--- a/src/core/SkMatrixClipStateMgr.h
+++ b/src/core/SkMatrixClipStateMgr.h
@@ -53,7 +53,7 @@
static const int32_t kIdentityWideOpenStateID = 0;
static const int kIdentityMatID = 0;
- class MatrixClipState : public SkNoncopyable {
+ class MatrixClipState : SkNoncopyable {
public:
class MatrixInfo {
public:
@@ -108,7 +108,7 @@
typedef SkNoncopyable INHERITED;
};
- class ClipInfo : public SkNoncopyable {
+ class ClipInfo : SkNoncopyable {
public:
ClipInfo() {}