| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sky/engine/config.h" | |
| 6 #include "sky/engine/tonic/dart_gc_controller.h" | 5 #include "sky/engine/tonic/dart_gc_controller.h" |
| 7 | 6 |
| 8 #include "base/trace_event/trace_event.h" | 7 #include "base/trace_event/trace_event.h" |
| 9 #include "dart/runtime/include/dart_api.h" | 8 #include "dart/runtime/include/dart_api.h" |
| 10 #include "sky/engine/tonic/dart_gc_context.h" | 9 #include "sky/engine/tonic/dart_gc_context.h" |
| 11 #include "sky/engine/tonic/dart_gc_visitor.h" | 10 #include "sky/engine/tonic/dart_gc_visitor.h" |
| 12 #include "sky/engine/tonic/dart_wrappable.h" | 11 #include "sky/engine/tonic/dart_wrappable.h" |
| 13 | 12 |
| 14 namespace blink { | 13 namespace blink { |
| 15 namespace { | 14 namespace { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 44 | 43 |
| 45 void DartGCEpilogue() { | 44 void DartGCEpilogue() { |
| 46 delete g_gc_context; | 45 delete g_gc_context; |
| 47 g_gc_context = nullptr; | 46 g_gc_context = nullptr; |
| 48 Dart_ExitScope(); | 47 Dart_ExitScope(); |
| 49 | 48 |
| 50 TRACE_EVENT_ASYNC_END0("sky", "DartGC", 0); | 49 TRACE_EVENT_ASYNC_END0("sky", "DartGC", 0); |
| 51 } | 50 } |
| 52 | 51 |
| 53 } // namespace blink | 52 } // namespace blink |
| OLD | NEW |