X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fdeclarative%2Fitems%2Fqsgcontext2d_p.h;h=924c4bf780ec8c1ae2ad5981f435312c23d51c52;hb=26590325b5e9209df4495841b9013d04bbb35515;hp=30af1f1cd6f71e7f2b66657d6c8902cc35f63f29;hpb=5a705d8951a0b23c725d99a5a3fce7902ec41374;p=profile%2Fivi%2Fqtdeclarative.git diff --git a/src/declarative/items/qsgcontext2d_p.h b/src/declarative/items/qsgcontext2d_p.h index 30af1f1..924c4bf 100644 --- a/src/declarative/items/qsgcontext2d_p.h +++ b/src/declarative/items/qsgcontext2d_p.h @@ -56,6 +56,7 @@ #include #include #include +#include #include #include #include "qsgimage_p.h" @@ -290,6 +291,10 @@ public slots: void clip(); bool isPointInPath(qreal x, qreal y) const; + //path string parser + //implement the W3C SVG path spec: + //http://www.w3.org/TR/SVG/paths.html + void setPathString(const QString& path); QSGImage *createImage(const QString &url); @@ -309,9 +314,8 @@ signals: void painted(); public: bool isDirty() const; - QScriptValue scriptValue() const; - void setScriptEngine(QScriptEngine *eng); - QScriptEngine *scriptEngine() const; + v8::Handle v8value() const; + void setV8Engine(QV8Engine *eng); void addref(); void release(); @@ -335,11 +339,6 @@ public: Sync() : QEvent(QEvent::User) {} QSGContext2DWorkerAgent *data; }; - inline bool inWorkerThread() const; - QSGContext2D *agent(); - const QString& agentScript() const; - - struct State { QMatrix matrix; QPainterPath clipPath;