blob: 7fdbf63063a37464d0b577b80127c7f1e50feafe [file] [log] [blame]
// Copyright 2013 The Flutter 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 FLUTTER_SHELL_PLATFORM_ANDROID_SURFACE_SNAPSHOT_SURFACE_PRODUCER_H_
#define FLUTTER_SHELL_PLATFORM_ANDROID_SURFACE_SNAPSHOT_SURFACE_PRODUCER_H_
#include "flutter/flow/surface.h"
#include "flutter/shell/common/snapshot_surface_producer.h"
#include "flutter/shell/platform/android/surface/android_surface.h"
namespace flutter {
class AndroidSnapshotSurfaceProducer : public SnapshotSurfaceProducer {
public:
explicit AndroidSnapshotSurfaceProducer(AndroidSurface& android_surface);
// |SnapshotSurfaceProducer|
std::unique_ptr<Surface> CreateSnapshotSurface() override;
private:
AndroidSurface& android_surface_;
};
} // namespace flutter
#endif // FLUTTER_SHELL_PLATFORM_ANDROID_SURFACE_SNAPSHOT_SURFACE_PRODUCER_H_