| Index: sky/engine/bindings-dart/core/dart/DartGCController.h
|
| diff --git a/sky/engine/platform/exported/Platform.cpp b/sky/engine/bindings-dart/core/dart/DartGCController.h
|
| similarity index 83%
|
| copy from sky/engine/platform/exported/Platform.cpp
|
| copy to sky/engine/bindings-dart/core/dart/DartGCController.h
|
| index 61872fbe9498df012e4da6f4c859fd8ac76a8b4d..3d13db757e31994b1747ecbecfc3b6f80fb28c93 100644
|
| --- a/sky/engine/platform/exported/Platform.cpp
|
| +++ b/sky/engine/bindings-dart/core/dart/DartGCController.h
|
| @@ -28,26 +28,20 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#include "sky/engine/config.h"
|
| -#include "sky/engine/public/platform/Platform.h"
|
| +#ifndef DartGCController_h
|
| +#define DartGCController_h
|
|
|
| -namespace blink {
|
| -
|
| -static Platform* s_platform = 0;
|
| +#include <dart_api.h>
|
|
|
| -void Platform::initialize(Platform* platform)
|
| -{
|
| - s_platform = platform;
|
| -}
|
| +namespace blink {
|
|
|
| -void Platform::shutdown()
|
| -{
|
| - s_platform = 0;
|
| -}
|
| +class DartGCController {
|
| +public:
|
| + static void prologueCallback();
|
| + static void epilogueCallback();
|
| + static void prologueWeakHandleCallback(void*, Dart_WeakPersistentHandle, intptr_t, intptr_t*);
|
| +};
|
|
|
| -Platform* Platform::current()
|
| -{
|
| - return s_platform;
|
| }
|
|
|
| -} // namespace blink
|
| +#endif // DartGCController_h
|
|
|