aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/core/SkBitmapDevice.h6
-rw-r--r--include/core/SkDevice.h9
-rw-r--r--include/gpu/SkGpuDevice.h3
3 files changed, 0 insertions, 18 deletions
diff --git a/include/core/SkBitmapDevice.h b/include/core/SkBitmapDevice.h
index 26c0574156..48b0386dc2 100644
--- a/include/core/SkBitmapDevice.h
+++ b/include/core/SkBitmapDevice.h
@@ -45,12 +45,6 @@ public:
*/
virtual bool isOpaque() const SK_OVERRIDE { return fBitmap.isOpaque(); }
-#ifdef SK_SUPPORT_LEGACY_DEVICE_CONFIG
- /** Return the bitmap config of the device's pixels
- */
- virtual SkBitmap::Config config() const SK_OVERRIDE { return fBitmap.config(); }
-#endif
-
virtual SkImageInfo imageInfo() const SK_OVERRIDE;
/**
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index e58a491563..25ad499386 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -1,4 +1,3 @@
-
/*
* Copyright 2010 The Android Open Source Project
*
@@ -6,7 +5,6 @@
* found in the LICENSE file.
*/
-
#ifndef SkDevice_DEFINED
#define SkDevice_DEFINED
@@ -76,18 +74,11 @@ public:
bounds->setXYWH(origin.x(), origin.y(), this->width(), this->height());
}
-
/** Returns true if the device's bitmap's config treats every pixel as
implicitly opaque.
*/
virtual bool isOpaque() const = 0;
-#ifdef SK_SUPPORT_LEGACY_DEVICE_CONFIG
- /** Return the bitmap config of the device's pixels
- */
- virtual SkBitmap::Config config() const = 0;
-#endif
-
/** 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.
diff --git a/include/gpu/SkGpuDevice.h b/include/gpu/SkGpuDevice.h
index c9650d6184..b4234e84d2 100644
--- a/include/gpu/SkGpuDevice.h
+++ b/include/gpu/SkGpuDevice.h
@@ -82,9 +82,6 @@ public:
return NULL == fRenderTarget ? false
: kRGB_565_GrPixelConfig == fRenderTarget->config();
}
-#ifdef SK_SUPPORT_LEGACY_DEVICE_CONFIG
- virtual SkBitmap::Config config() const SK_OVERRIDE;
-#endif
virtual void clear(SkColor color) SK_OVERRIDE;
virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE;