Home
last modified time | relevance | path

Searched refs:getIsolate (Results 1 – 6 of 6) sorted by relevance

/external/skia/experimental/SkV8Example/
DPath2D.cpp23 v8::HandleScope handleScope(gGlobal->getIsolate()); in Path2D()
32 gPath2DTemplate.Reset(gGlobal->getIsolate(), localTemplate); in Path2D()
35 v8::Local<v8::ObjectTemplate>::New(gGlobal->getIsolate(), gPath2DTemplate); in Path2D()
41 result->SetInternalField(0, v8::External::New(gGlobal->getIsolate(), this)); in Path2D()
42 gGlobal->getIsolate()->AdjustAmountOfExternalAllocatedMemory(sizeof(SkPath)); in Path2D()
46 v8::Persistent<v8::Object> weak(gGlobal->getIsolate(), result); in Path2D()
48 this->handle_.Reset(gGlobal->getIsolate(), weak); in Path2D()
54 gGlobal->getIsolate()->AdjustAmountOfExternalAllocatedMemory(-sizeof(SkPath)); in ~Path2D()
DJsContext.cpp29 v8::EscapableHandleScope handleScope(fGlobal->getIsolate()); in wrap()
41 gContextTemplate.Reset(fGlobal->getIsolate(), localTemplate); in wrap()
44 v8::Local<v8::ObjectTemplate>::New(fGlobal->getIsolate(), gContextTemplate); in wrap()
51 v8::Handle<v8::External> contextPtr = v8::External::New(fGlobal->getIsolate(), this); in wrap()
68 v8::HandleScope handleScope(fGlobal->getIsolate()); in onDraw()
87 v8::Local<v8::Function>::New(fGlobal->getIsolate(), fOnDraw); in onDraw()
111 v8::HandleScope handleScope(fGlobal->getIsolate()); in initialize()
122 fGlobal->getIsolate(), "onDraw"); in initialize()
135 fOnDraw.Reset(fGlobal->getIsolate(), fn_fun); in initialize()
DDrawingMethods.cpp131 drawingMethods->fGlobal->getIsolate(), canvas->imageInfo().width())); in GetWidth()
144 drawingMethods->fGlobal->getIsolate(), canvas->imageInfo().height())); in GetHeight()
149 fGlobal->getIsolate(), name, \
151 v8::FunctionTemplate::New(fGlobal->getIsolate(), fn))
154 v8::HandleScope scope(fGlobal->getIsolate()); in addAttributesAndMethods()
158 fGlobal->getIsolate(), "width", v8::String::kInternalizedString), in addAttributesAndMethods()
161 fGlobal->getIsolate(), "height", v8::String::kInternalizedString), in addAttributesAndMethods()
DPath2DBuilder.cpp18 v8::HandleScope handleScope(gGlobal->getIsolate()); in ConstructPath()
21 0, v8::External::New(gGlobal->getIsolate(), path)); in ConstructPath()
27 global->getIsolate(), name, \
29 v8::FunctionTemplate::New(global->getIsolate(), fn))
37 v8::HandleScope handleScope(gGlobal->getIsolate()); in AddToGlobal()
45 gGlobal->getIsolate(), Path2DBuilder::ConstructPath); in AddToGlobal()
61 gGlobal->getIsolate(), "Path2DBuilder"), constructor->GetFunction()); in AddToGlobal()
DGlobal.cpp136 v8::HandleScope handleScope(gGlobal->getIsolate()); in TimeOutProc()
155 v8::Local<v8::Function>::New(gGlobal->getIsolate(), gGlobal->fTimeouts[id]); in TimeOutProc()
DGlobal.h46 v8::Isolate* getIsolate() { in getIsolate() function