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

Unified Diff: src/core/SkLiteDL.cpp

Issue 2249713002: just add SkLiteDL::empty() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 | « src/core/SkLiteDL.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkLiteDL.cpp
diff --git a/src/core/SkLiteDL.cpp b/src/core/SkLiteDL.cpp
index 73d6d16dbd7cca92ac1e57a258e2c1e1dc15ae2e..d6498897706cd141482821cd84b45821e1ffa118 100644
--- a/src/core/SkLiteDL.cpp
+++ b/src/core/SkLiteDL.cpp
@@ -755,6 +755,10 @@ SkRect SkLiteDL::onGetBounds() {
return fBounds;
}
+bool SkLiteDL::empty() const {
+ return fUsed == 0;
+}
+
#if !defined(SK_LITEDL_USES)
#define SK_LITEDL_USES 16
#endif
« no previous file with comments | « src/core/SkLiteDL.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698