Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
metal_golden_screenshotter.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_IMPELLER_GOLDEN_TESTS_METAL_GOLDEN_SCREENSHOTTER_H_
6#define FLUTTER_IMPELLER_GOLDEN_TESTS_METAL_GOLDEN_SCREENSHOTTER_H_
7
10
11namespace impeller {
12namespace testing {
13
14/// Converts `Picture`s and `DisplayList`s to `MetalScreenshot`s with the
15/// playground backend.
17 public:
18 explicit MetalGoldenScreenshotter(const PlaygroundSwitches& switches);
19
21
22 std::unique_ptr<Screenshot> MakeScreenshot(
23 const AiksContext& aiks_context,
24 const std::shared_ptr<Texture>& texture) override;
25
26 PlaygroundImpl& GetPlayground() override;
27
28 private:
29 std::unique_ptr<PlaygroundImpl> playground_;
30};
31
32} // namespace testing
33} // namespace impeller
34
35#endif // FLUTTER_IMPELLER_GOLDEN_TESTS_METAL_GOLDEN_SCREENSHOTTER_H_
std::unique_ptr< Screenshot > MakeScreenshot(const AiksContext &aiks_context, const std::shared_ptr< Texture > &texture) override
FlTexture * texture