| Flutter Impeller |

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_SCREENSHOTTER_H_
6 #define FLUTTER_IMPELLER_GOLDEN_TESTS_SCREENSHOTTER_H_
7
8 #include "flutter/impeller/golden_tests/screenshot.h"
9 #include "flutter/impeller/playground/playground_impl.h"
10 #include "impeller/display_list/aiks_context.h"
11
12 namespace impeller {
13 namespace testing {
14
15 /// Converts `Picture`s and `DisplayList`s to `MetalScreenshot`s with the
16 /// playground backend.
17 class Screenshotter {
18 public:
19 virtual ~Screenshotter() = default;
20
21 virtual std::unique_ptr<Screenshot> MakeScreenshot(
22 AiksContext& aiks_context,
23 const std::shared_ptr<Texture> texture) = 0;
24
25 virtual PlaygroundImpl& GetPlayground() = 0;
26 };
27
28 } // namespace testing
29 } // namespace impeller
30
31 #endif // FLUTTER_IMPELLER_GOLDEN_TESTS_SCREENSHOTTER_H_
aiks_context.h
impeller::AiksContext
Definition: aiks_context.h:19
impeller::PlaygroundImpl
Definition: playground_impl.h:18
impeller::testing::Screenshotter
Definition: screenshotter.h:17
impeller::testing::Screenshotter::GetPlayground
virtual PlaygroundImpl & GetPlayground()=0
impeller::testing::Screenshotter::~Screenshotter
virtual ~Screenshotter()=default
impeller::testing::Screenshotter::MakeScreenshot
virtual std::unique_ptr< Screenshot > MakeScreenshot(AiksContext &aiks_context, const std::shared_ptr< Texture > texture)=0
impeller
Definition: allocation.cc:12
playground_impl.h
screenshot.h