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

Unified Diff: include/core/SkAnnotation.h

Issue 48523008: All SkAnnotations are no-draw. Propose we fold that through. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: deprecate Created 7 years, 2 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 | include/core/SkPaint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkAnnotation.h
diff --git a/include/core/SkAnnotation.h b/include/core/SkAnnotation.h
index 9814f8f76fde45280c7f93949ffca657987ff2f3..4d17b79004a6f522382c19ebe9b715083baa38f1 100644
--- a/include/core/SkAnnotation.h
+++ b/include/core/SkAnnotation.h
@@ -24,18 +24,9 @@ struct SkPoint;
*/
class SkAnnotation : public SkRefCnt {
public:
- enum Flags {
- // If set, the associated drawing primitive should not be drawn
- kNoDraw_Flag = 1 << 0,
- };
-
- SkAnnotation(const char key[], SkData* value, uint32_t flags);
+ SkAnnotation(const char key[], SkData* value);
virtual ~SkAnnotation();
- uint32_t getFlags() const { return fFlags; }
-
- bool isNoDraw() const { return SkToBool(fFlags & kNoDraw_Flag); }
-
/**
* Return the data for the specified key, or NULL.
*/
@@ -47,7 +38,6 @@ public:
private:
SkString fKey;
SkData* fData;
- uint32_t fFlags;
typedef SkRefCnt INHERITED;
};
« no previous file with comments | « no previous file | include/core/SkPaint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698