Home
last modified time | relevance | path

Searched refs:gGlobal (Results 1 – 7 of 7) sorted by relevance

/external/skia/experimental/SkV8Example/
DPath2D.cpp13 Global* Path2D::gGlobal = NULL; member in Path2D
23 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()
DGlobal.cpp15 Global* Global::gGlobal = NULL; member in Global
76 gGlobal->getWindow()->inval(NULL); in Inval()
120 int32_t id = gGlobal->getNextTimerID(); in SetTimeout()
122 gGlobal->fTimeouts[id].Reset(gGlobal->fIsolate, timeoutFn); in SetTimeout()
130 args.GetReturnValue().Set(v8::Integer::New(gGlobal->fIsolate, id)); in SetTimeout()
136 v8::HandleScope handleScope(gGlobal->getIsolate()); in TimeOutProc()
139 v8::Local<v8::Context> context = gGlobal->getContext(); in TimeOutProc()
148 if (gGlobal->fTimeouts.find(gGlobal->fLastTimerID) == gGlobal->fTimeouts.end()) { in TimeOutProc()
155 v8::Local<v8::Function>::New(gGlobal->getIsolate(), gGlobal->fTimeouts[id]); in TimeOutProc()
157 gGlobal->fTimeouts.erase(id); in TimeOutProc()
[all …]
DPath2DBuilder.cpp15 Global* Path2DBuilder::gGlobal = NULL; member in Path2DBuilder
18 v8::HandleScope handleScope(gGlobal->getIsolate()); in ConstructPath()
21 0, v8::External::New(gGlobal->getIsolate(), path)); in ConstructPath()
34 gGlobal = global; in AddToGlobal()
37 v8::HandleScope handleScope(gGlobal->getIsolate()); in AddToGlobal()
39 v8::Handle<v8::Context> context = gGlobal->getContext(); in AddToGlobal()
45 gGlobal->getIsolate(), Path2DBuilder::ConstructPath); in AddToGlobal()
61 gGlobal->getIsolate(), "Path2DBuilder"), constructor->GetFunction()); in AddToGlobal()
DPath2D.h27 gGlobal = global; in AddToGlobal()
45 static Global* gGlobal; variable
DGlobal.h34 gGlobal = this; in Global()
75 static Global* gGlobal; variable
DPath2DBuilder.h50 static Global* gGlobal; variable
/external/skia/tests/
DDataRefTest.cpp113 static void* gGlobal; variable
117 SkASSERT(context == gGlobal); in delete_int_proc()
182 sk_sp<SkData> r2(SkData::MakeWithProc(new int[N], N*sizeof(int), delete_int_proc, gGlobal)); in DEF_TEST()