| Flutter Impeller |

Public Member Functions | List of all members
impeller::testing::GoldenTests Class Reference
Inheritance diagram for impeller::testing::GoldenTests:

## Public Member Functions
| GoldenTests ()
MetalScreenshotter & | Screenshotter ()
void | SetUp () override

## Detailed Description

Definition at line 55 of file golden_tests.cc.

## Constructor & Destructor Documentation

## ◆ GoldenTests()

impeller::testing::GoldenTests::GoldenTests | ( |  | ) |
| inline

Definition at line 57 of file golden_tests.cc.

58 : screenshotter_(new MetalScreenshotter(/*enable_wide_gamut=*/false)) {}

## Member Function Documentation

## ◆ Screenshotter()

MetalScreenshotter& impeller::testing::GoldenTests::Screenshotter | ( |  | ) |
| inline

Definition at line 60 of file golden_tests.cc.

60 { return *screenshotter_; }

Referenced by SetUp().

## ◆ SetUp()

void impeller::testing::GoldenTests::SetUp | ( |  | ) |
| inlineoverride

Definition at line 62 of file golden_tests.cc.

62 {
63 testing::GoldenDigest::Instance()->AddDimension(
64 "gpu_string",
65 Screenshotter().GetPlayground().GetContext()->DescribeGpuModel());
66 }

References impeller::testing::GoldenDigest::AddDimension(), impeller::testing::GoldenDigest::Instance(), and Screenshotter().

The documentation for this class was generated from the following file:

- impeller/golden_tests/golden_tests.cc

impeller::testing::GoldenTests::Screenshotter
MetalScreenshotter & Screenshotter()
Definition: golden_tests.cc:60
impeller::testing::GoldenDigest::Instance
static GoldenDigest * Instance()
Definition: golden_digest.cc:18
impeller::testing::GoldenDigest::AddDimension
void AddDimension(const std::string &name, const std::string &value)
Definition: golden_digest.cc:27