diff options
author | 2016-03-08 10:45:32 -0800 | |
---|---|---|
committer | 2016-03-08 10:45:32 -0800 | |
commit | ab01ccd2786b74ca9ff20fa7852e208ceb45d394 (patch) | |
tree | 679a0d752631d42c974b0af9db7f2d3125646c86 /src/core/SkSpecialImage.cpp | |
parent | b0666ad3a9e99ce1a6e6d9ea69ff9f1ddbe74594 (diff) |
Rename SkSpecialImage::getBitmap to getBitmapDeprecated
Review URL: https://codereview.chromium.org/1780433002
Diffstat (limited to 'src/core/SkSpecialImage.cpp')
-rw-r--r-- | src/core/SkSpecialImage.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/SkSpecialImage.cpp b/src/core/SkSpecialImage.cpp index 0bbe50a688..a81e384eed 100644 --- a/src/core/SkSpecialImage.cpp +++ b/src/core/SkSpecialImage.cpp @@ -27,7 +27,7 @@ public: virtual bool testingOnlyOnGetROPixels(SkBitmap*) const = 0; // Delete this entry point ASAP (see skbug.com/4965) - virtual bool getBitmap(SkBitmap* result) const = 0; + virtual bool getBitmapDeprecated(SkBitmap* result) const = 0; virtual SkSpecialSurface* onNewSurface(const SkImageInfo& info) const { return nullptr; } @@ -82,7 +82,7 @@ bool SkSpecialImage::internal_getBM(SkBitmap* result) { const SkSpecialImage_Base* ib = as_SIB(this); // TODO: need to test offset case! (see skbug.com/4967) - return ib->getBitmap(result); + return ib->getBitmapDeprecated(result); } SkImageFilter::Proxy* SkSpecialImage::internal_getProxy() { @@ -137,7 +137,7 @@ public: GrTexture* onPeekTexture() const override { return as_IB(fImage.get())->peekTexture(); } - bool getBitmap(SkBitmap* result) const override { + bool getBitmapDeprecated(SkBitmap* result) const override { return false; } @@ -229,7 +229,7 @@ public: return false; } - bool getBitmap(SkBitmap* result) const override { + bool getBitmapDeprecated(SkBitmap* result) const override { *result = fBitmap; return true; } @@ -293,7 +293,7 @@ public: GrTexture* onPeekTexture() const override { return fTexture; } - bool getBitmap(SkBitmap* result) const override { + bool getBitmapDeprecated(SkBitmap* result) const override { const SkImageInfo info = GrMakeInfoFromTexture(fTexture, this->width(), this->height(), this->isOpaque()); |