aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar reed <reed@chromium.org>2014-12-08 08:00:29 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-08 08:00:29 -0800
commit08c357c9142c68e1ec9493eb3d5aeacb41ccd7b5 (patch)
tree5375d5edeba1055e375e6b0f822dfbfdf62d3e00 /include
parent7d74cd1312ebf47ef49c277b3f88d76e6666724d (diff)
remove device::clear -- no longer called
Diffstat (limited to 'include')
-rw-r--r--include/core/SkDevice.h2
-rw-r--r--include/device/xps/SkXPSDevice.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index dc5e32bffd..fbb53397ab 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -161,6 +161,7 @@ protected:
virtual void setMatrixClip(const SkMatrix&, const SkRegion&,
const SkClipStack&) {};
+#ifdef SK_SUPPORT_LEGACY_DEVICE_CLEAR
private:
/** Clears the entire device to the specified color (including alpha).
* Ignores the clip.
@@ -168,6 +169,7 @@ private:
*/
virtual void clear(SkColor color);
public:
+#endif
/** These are called inside the per-device-layer loop for each draw call.
When these are called, we have already applied any saveLayer operations,
diff --git a/include/device/xps/SkXPSDevice.h b/include/device/xps/SkXPSDevice.h
index 6dddb99c98..8fa7e51626 100644
--- a/include/device/xps/SkXPSDevice.h
+++ b/include/device/xps/SkXPSDevice.h
@@ -70,8 +70,6 @@ public:
virtual bool endPortfolio();
protected:
- virtual void clear(SkColor color) SK_OVERRIDE;
-
virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE;
virtual void drawPoints(