Flutter Impeller
vulkan_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_VULKAN_SCREENSHOTTER_H_
6 #define FLUTTER_IMPELLER_GOLDEN_TESTS_VULKAN_SCREENSHOTTER_H_
7 
12 
13 namespace impeller {
14 namespace testing {
15 
16 /// Converts `Picture`s and `DisplayList`s to `MetalScreenshot`s with the
17 /// playground backend.
19  public:
20  explicit VulkanScreenshotter(
21  const std::unique_ptr<PlaygroundImpl>& playground);
22 
23  std::unique_ptr<Screenshot> MakeScreenshot(
24  AiksContext& aiks_context,
25  const Picture& picture,
26  const ISize& size = {300, 300},
27  bool scale_content = true) override;
28 
29  PlaygroundImpl& GetPlayground() override { return *playground_; }
30 
31  private:
32  const std::unique_ptr<PlaygroundImpl>& playground_;
33 };
34 
35 } // namespace testing
36 } // namespace impeller
37 
38 #endif // FLUTTER_IMPELLER_GOLDEN_TESTS_VULKAN_SCREENSHOTTER_H_
impeller::AiksContext
Definition: aiks_context.h:19
impeller::testing::Screenshotter
Definition: screenshotter.h:17
impeller::testing::VulkanScreenshotter::MakeScreenshot
std::unique_ptr< Screenshot > MakeScreenshot(AiksContext &aiks_context, const Picture &picture, const ISize &size={300, 300}, bool scale_content=true) override
Definition: vulkan_screenshotter.mm:109
picture.h
impeller::PlaygroundImpl
Definition: playground_impl.h:17
screenshotter.h
impeller::testing::VulkanScreenshotter
Definition: vulkan_screenshotter.h:18
impeller::testing::VulkanScreenshotter::GetPlayground
PlaygroundImpl & GetPlayground() override
Definition: vulkan_screenshotter.h:29
impeller::Picture
Definition: picture.h:17
impeller::TSize
Definition: size.h:19
impeller::testing::VulkanScreenshotter::VulkanScreenshotter
VulkanScreenshotter(const std::unique_ptr< PlaygroundImpl > &playground)
Definition: vulkan_screenshotter.mm:103
metal_screenshot.h
playground_impl.h
impeller
Definition: aiks_blend_unittests.cc:18