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

Unified Diff: src/core/SkLiteDL.h

Issue 2254823002: SkLiteDL: inline 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 | « no previous file | src/core/SkLiteDL.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkLiteDL.h
diff --git a/src/core/SkLiteDL.h b/src/core/SkLiteDL.h
index d53c8de1512cc553f5fcb77c6ba20fdb475cf2c9..27b6e925799d69f537e649284cbc9bb955ded30c 100644
--- a/src/core/SkLiteDL.h
+++ b/src/core/SkLiteDL.h
@@ -24,7 +24,7 @@ public:
void optimizeFor(GrContext*);
void makeThreadsafe();
- bool empty() const;
+ bool empty() const { return fUsed == 0; }
void save();
void saveLayer(const SkRect*, const SkPaint*, const SkImageFilter*, SkCanvas::SaveLayerFlags);
« no previous file with comments | « no previous file | src/core/SkLiteDL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698