Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Unified Diff: include/core/SkDevice.h

Issue 373853002: remove SK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkDevice.h
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index 80bf24283d67eb0bc5e05739d19fba012c388478..2e06aab74f103763f3e4354c7818db3177073441 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -67,27 +67,17 @@ public:
bounds->setXYWH(origin.x(), origin.y(), this->width(), this->height());
}
-#ifdef SK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE
- virtual int width() const {
- return this->imageInfo().width();
- }
- virtual int height() const {
- return this->imageInfo().height();
- }
- virtual bool isOpaque() const {
- return this->imageInfo().isOpaque();
- }
-#else
int width() const {
return this->imageInfo().width();
}
+
int height() const {
return this->imageInfo().height();
}
+
bool isOpaque() const {
return this->imageInfo().isOpaque();
}
-#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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698