flutter_flutter/shell/platform/android/vsync_waiter_android.h
Chinmay Garde 58e84c8bf0
Re-land "Support multiple shells in a single process. (#4932)" (#4998)
* Re-land "Support multiple shells in a single process. (#4932)"

This reverts commit 723c7d01439da4261bc836075fb55651ce9e7f03.
2018-04-13 13:48:15 -07:00

33 lines
826 B
C++

// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHELL_PLATFORM_ANDROID_VSYNC_WAITER_ANDROID_H_
#define SHELL_PLATFORM_ANDROID_VSYNC_WAITER_ANDROID_H_
#include <jni.h>
#include "flutter/fml/memory/weak_ptr.h"
#include "flutter/shell/common/vsync_waiter.h"
#include "lib/fxl/macros.h"
namespace shell {
class VsyncWaiterAndroid final : public VsyncWaiter {
public:
static bool Register(JNIEnv* env);
VsyncWaiterAndroid(blink::TaskRunners task_runners);
~VsyncWaiterAndroid() override;
private:
// |shell::VsyncWaiter|
void AwaitVSync() override;
FXL_DISALLOW_COPY_AND_ASSIGN(VsyncWaiterAndroid);
};
} // namespace shell
#endif // SHELL_PLATFORM_ANDROID_ASYNC_WAITER_ANDROID_H_