Index: experimental/SkV8Example/SkV8Example.h |
=================================================================== |
--- experimental/SkV8Example/SkV8Example.h (revision 12506) |
+++ experimental/SkV8Example/SkV8Example.h (working copy) |
@@ -10,26 +10,40 @@ |
#ifndef SkV8Example_DEFINED |
#define SkV8Example_DEFINED |
+#include <v8.h> |
+ |
#include "SkWindow.h" |
+ |
+using namespace v8; |
+ |
+ |
class SkCanvas; |
class SkV8ExampleWindow : public SkOSWindow { |
public: |
- SkV8ExampleWindow(void* hwnd); |
+ SkV8ExampleWindow(void* hwnd, |
+ Isolate* isolate, |
+ Handle<Context> context, |
+ Handle<Script> script); |
protected: |
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE; |
+ |
#ifdef SK_BUILD_FOR_WIN |
virtual void onHandleInval(const SkIRect&) SK_OVERRIDE; |
#endif |
private: |
typedef SkOSWindow INHERITED; |
+ Isolate* fIsolate; |
+ Persistent<Context> fContext; |
+ Persistent<Script> fScript; |
+ SkScalar fRotationAngle; |
}; |
#endif |