aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image/SkImage_Base.h
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2017-05-26 12:54:32 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-26 22:34:00 +0000
commitf7beee7cdd999df80801f4d4992371d121e8428a (patch)
treef4242bce3583cfe5d5e514dbeb4d8bd086554be4 /src/image/SkImage_Base.h
parent5addedd59dc171592f3200ff0a5244dc056aed9b (diff)
Hide ctors of SkShader, SkImage & SkColorSpace
To prevent external clients from subclassing. Change-Id: I60a3833bf64019aea2f537850ca2a1ae38bb8767 Reviewed-on: https://skia-review.googlesource.com/18038 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/image/SkImage_Base.h')
-rw-r--r--src/image/SkImage_Base.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/image/SkImage_Base.h b/src/image/SkImage_Base.h
index 95ad67af10..f3e27933a3 100644
--- a/src/image/SkImage_Base.h
+++ b/src/image/SkImage_Base.h
@@ -28,7 +28,6 @@ enum {
class SkImage_Base : public SkImage {
public:
- SkImage_Base(int width, int height, uint32_t uniqueID);
virtual ~SkImage_Base();
// User: returns image info for this SkImage.
@@ -93,6 +92,8 @@ public:
virtual sk_sp<SkImage> onMakeColorSpace(sk_sp<SkColorSpace>, SkColorType,
SkTransferFunctionBehavior) const = 0;
+protected:
+ SkImage_Base(int width, int height, uint32_t uniqueID);
private:
// Set true by caches when they cache content that's derived from the current pixels.