Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[Impeller] Add an autorelease pool to the GoldenTests fixture #43323

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions impeller/golden_tests/golden_tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <sstream>

#include "flutter/fml/platform/darwin/scoped_nsautorelease_pool.h"
#include "impeller/aiks/canvas.h"
#include "impeller/entity/contents/conical_gradient_contents.h"
#include "impeller/geometry/path_builder.h"
Expand Down Expand Up @@ -59,6 +60,10 @@ class GoldenTests : public ::testing::Test {
}

private:
// This must be placed before any other members that may use the
// autorelease pool.
fml::ScopedNSAutoreleasePool autorelease_pool_;

std::unique_ptr<MetalScreenshoter> screenshoter_;
};

Expand Down