#ifndef FLUTTER_SHELL_PLATFORM_OHOS_OHOS_SURFACE_H_
#define FLUTTER_SHELL_PLATFORM_OHOS_OHOS_SURFACE_H_
#include <memory>
#include "flutter/fml/macros.h"
#include "flutter/shell/common/surface.h"
#include "wm/window.h"
#include <ui/rs_surface_node.h>
namespace flutter {
class OhosSurface {
public:
OhosSurface() = default;
virtual ~OhosSurface() = default;
virtual bool IsValid() const = 0;
virtual std::unique_ptr<Surface> CreateGPUSurface() = 0;
virtual bool OnScreenSurfaceResize(const SkISize& size) = 0;
virtual void SetPlatformWindow(const ::OHOS::sptr<::OHOS::Rosen::Window> &window) = 0;
virtual bool ResourceContextMakeCurrent() = 0;
virtual bool ResourceContextClearCurrent() = 0;
virtual void TeardownOnScreenContext() = 0;
};
}
#endif