Flutter Engine
The Flutter Engine
snapshot_surface_producer.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_ANDROID_SURFACE_SNAPSHOT_SURFACE_PRODUCER_H_
6#define FLUTTER_SHELL_PLATFORM_ANDROID_SURFACE_SNAPSHOT_SURFACE_PRODUCER_H_
7
8#include "flutter/flow/surface.h"
9#include "flutter/shell/common/snapshot_surface_producer.h"
10#include "flutter/shell/platform/android/surface/android_surface.h"
11
12namespace flutter {
13
15 public:
16 explicit AndroidSnapshotSurfaceProducer(AndroidSurface& android_surface);
17
18 // |SnapshotSurfaceProducer|
19 std::unique_ptr<Surface> CreateSnapshotSurface() override;
20
21 private:
22 AndroidSurface& android_surface_;
23};
24
25} // namespace flutter
26#endif // FLUTTER_SHELL_PLATFORM_ANDROID_SURFACE_SNAPSHOT_SURFACE_PRODUCER_H_
AndroidSnapshotSurfaceProducer(AndroidSurface &android_surface)
std::unique_ptr< Surface > CreateSnapshotSurface() override