aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsgcontext2d_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-07-08 15:56:48 +1000
committerAaron Kennedy <aaron.kennedy@nokia.com>2011-07-08 15:56:48 +1000
commit26590325b5e9209df4495841b9013d04bbb35515 (patch)
tree2a4e44ca1e1d4389caf999ee8801a312166bf39c /src/declarative/items/qsgcontext2d_p.h
parent5a705d8951a0b23c725d99a5a3fce7902ec41374 (diff)
parent438d50d63c48bbbfd185bd7e1a0d6e6174c1791e (diff)
Merge branch 'v8'
Conflicts: src/declarative/qml/qdeclarativescarceresourcescriptclass.cpp src/declarative/qml/qdeclarativescarceresourcescriptclass_p.h Change-Id: I54e579307cbeafbbad21884218c5e797ba245c8b
Diffstat (limited to 'src/declarative/items/qsgcontext2d_p.h')
-rw-r--r--src/declarative/items/qsgcontext2d_p.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/declarative/items/qsgcontext2d_p.h b/src/declarative/items/qsgcontext2d_p.h
index 30af1f1cd6..924c4bf780 100644
--- a/src/declarative/items/qsgcontext2d_p.h
+++ b/src/declarative/items/qsgcontext2d_p.h
@@ -56,6 +56,7 @@
#include <QtCore/qcoreevent.h>
#include <QtCore/qvariant.h>
#include <QtScript/qscriptvalue.h>
+#include <private/qv8engine_p.h>
#include <QMutex>
#include <QWaitCondition>
#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<v8::Object> 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;