Flutter Impeller
playground_test.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_TOOLKIT_INTEROP_PLAYGROUND_TEST_H_
6 #define FLUTTER_IMPELLER_TOOLKIT_INTEROP_PLAYGROUND_TEST_H_
7 
8 #include <functional>
9 
14 
16 
18  public:
20 
21  // |PlaygroundTest|
22  ~PlaygroundTest() override;
23 
24  PlaygroundTest(const PlaygroundTest&) = delete;
25 
27 
28  // |PlaygroundTest|
29  void SetUp() override;
30 
31  // |PlaygroundTest|
32  void TearDown() override;
33 
35 
37 
38  hpp::Context GetHPPContext();
39 
40  hpp::Texture OpenAssetAsHPPTexture(std::string asset_name);
41 
43  std::function<bool(const ScopedObject<Context>& context,
44  const ScopedObject<Surface>& surface)>;
46 
47  std::unique_ptr<hpp::Mapping> OpenAssetAsHPPMapping(
48  std::string asset_name) const;
49 
50  private:
51  ScopedObject<Context> interop_context_;
52 };
53 
54 } // namespace impeller::interop::testing
55 
56 #endif // FLUTTER_IMPELLER_TOOLKIT_INTEROP_PLAYGROUND_TEST_H_
hpp::Texture OpenAssetAsHPPTexture(std::string asset_name)
ScopedObject< Context > CreateContext() const
std::unique_ptr< hpp::Mapping > OpenAssetAsHPPMapping(std::string asset_name) const
PlaygroundTest & operator=(const PlaygroundTest &)=delete
std::function< bool(const ScopedObject< Context > &context, const ScopedObject< Surface > &surface)> InteropPlaygroundCallback
bool OpenPlaygroundHere(InteropPlaygroundCallback callback)
PlaygroundTest(const PlaygroundTest &)=delete