Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Unified Diff: sky/engine/tonic/dart_state.h

Issue 1145103005: Add DartHandleCache and use it to cache strings used when converting Rect and (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: simplify Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/script/dom_dart_state.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/tonic/dart_state.h
diff --git a/sky/engine/tonic/dart_state.h b/sky/engine/tonic/dart_state.h
index 87431cbbd5b05d20dab6f5d58d32c875ae2375dd..9602b7e75a9dcf709d49cc1bbb417631f640c477 100644
--- a/sky/engine/tonic/dart_state.h
+++ b/sky/engine/tonic/dart_state.h
@@ -50,6 +50,7 @@ class DartState : public base::SupportsUserData {
void set_isolate(Dart_Isolate isolate) {
CHECK(!isolate_);
isolate_ = isolate;
+ DidSetIsolate();
}
DartClassLibrary& class_library() { return *class_library_; }
@@ -57,6 +58,8 @@ class DartState : public base::SupportsUserData {
DartExceptionFactory& exception_factory() { return *exception_factory_; }
DartTimerHeap& timer_heap() { return *timer_heap_; }
+ virtual void DidSetIsolate() {}
+
private:
Dart_Isolate isolate_;
OwnPtr<DartClassLibrary> class_library_;
« no previous file with comments | « sky/engine/core/script/dom_dart_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698