summaryrefslogtreecommitdiff
path: root/fpdfsdk/include
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-04 20:40:15 -0700
committerLei Zhang <thestig@chromium.org>2015-10-04 20:40:15 -0700
commit7dfe5929282cb6d78d7b5e32e1d72e9db99d3066 (patch)
tree0cfd7321bafd3bf377435f1c29f69fe254f09965 /fpdfsdk/include
parent794c9b67d3d519342aa7e15052766f7d4a99f551 (diff)
downloadpdfium-7dfe5929282cb6d78d7b5e32e1d72e9db99d3066.tar.xz
Only call DefineJSObjects() once for the global V8 isolate.
BUG=539106 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1386823002 .
Diffstat (limited to 'fpdfsdk/include')
-rw-r--r--fpdfsdk/include/jsapi/fxjs_v8.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fpdfsdk/include/jsapi/fxjs_v8.h b/fpdfsdk/include/jsapi/fxjs_v8.h
index 1705b894cf..8b5c0b2dd0 100644
--- a/fpdfsdk/include/jsapi/fxjs_v8.h
+++ b/fpdfsdk/include/jsapi/fxjs_v8.h
@@ -70,6 +70,9 @@ void FXJS_Release();
// created.
bool FXJS_GetIsolate(v8::Isolate** pResultIsolate);
+// Get the global isolate's ref count.
+size_t FXJS_GlobalIsolateRefCount();
+
// Call before making FXJS_Define* calls. Resources allocated here are cleared
// as part of FXJS_ReleaseRuntime().
void FXJS_PrepareIsolate(v8::Isolate* pIsolate);