aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkDevice.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-01-19 22:21:16 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-20 04:07:06 +0000
commit1e18aecd0b5bdb6dea0b0bcebf985a8bb221e6a6 (patch)
tree830c0a3d09524893921c7c65f48a7c260dd0572b /src/core/SkDevice.h
parent34c69d63477c8992d3242c02899008810e04af6e (diff)
remove unused device apis
BUG=skia: Change-Id: I7a6b185a0fbe779e3fa4c135437d4d1fb9b94bd8 Reviewed-on: https://skia-review.googlesource.com/7322 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkDevice.h')
-rw-r--r--src/core/SkDevice.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/core/SkDevice.h b/src/core/SkDevice.h
index db5db6444c..f38f7ea00a 100644
--- a/src/core/SkDevice.h
+++ b/src/core/SkDevice.h
@@ -75,16 +75,6 @@ public:
return this->imageInfo().isOpaque();
}
-#ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP
- /** Return the bitmap associated with this device. Call this each time you need
- to access the bitmap, as it notifies the subclass to perform any flushing
- etc. before you examine the pixels.
- @param changePixels set to true if the caller plans to change the pixels
- @return the device's bitmap
- */
- const SkBitmap& accessBitmap(bool changePixels);
-#endif
-
bool writePixels(const SkImageInfo&, const void*, size_t rowBytes, int x, int y);
/**
@@ -242,17 +232,6 @@ protected:
///////////////////////////////////////////////////////////////////////////
-#ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP
- /** Update as needed the pixel value in the bitmap, so that the caller can
- access the pixels directly.
- @return The device contents as a bitmap
- */
- virtual const SkBitmap& onAccessBitmap() {
- SkASSERT(0);
- return fLegacyBitmap;
- }
-#endif
-
virtual GrContext* context() const { return nullptr; }
virtual sk_sp<SkSurface> makeSurface(const SkImageInfo&, const SkSurfaceProps&);