for expose of keypath.
Change-Id: I907fcdcc76b0f66e294e4df5073de39bb8bba549
delete mStrokeInfo;
}
}
+ if (mName) free(mName);
}
void VDrawable::setType(VDrawable::Type type)
#ifndef VDRAWABLE_H
#define VDRAWABLE_H
#include <future>
+#include <cstring>
#include "vbrush.h"
#include "vpath.h"
#include "vrle.h"
void preprocess(const VRect &clip);
void applyDashOp();
VRle rle();
+ void setName(const char *name)
+ {
+ if (name) mName = strdup(name);
+ }
+ char* name() const { return mName; }
public:
struct StrokeInfo {
DirtyFlag mFlag{DirtyState::All};
FillRule mFillRule{FillRule::Winding};
VDrawable::Type mType{Type::Fill};
+
+ char *mName{nullptr};
};
#endif // VDRAWABLE_H