Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions impeller/golden_tests/golden_playground_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ class GoldenPlaygroundTest

ISize GetWindowSize() const;

protected:
void SetWindowSize(ISize size);

private:
#if FML_OS_MACOSX
// This must be placed first so that the autorelease pool is not destroyed
Expand Down
4 changes: 4 additions & 0 deletions impeller/golden_tests/golden_playground_test_mac.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,4 +193,8 @@ ISize GoldenPlaygroundTest::GetWindowSize() const {
return pimpl_->window_size;
}

void GoldenPlaygroundTest::GoldenPlaygroundTest::SetWindowSize(ISize size) {
pimpl_->window_size = size;
}

} // namespace impeller
2 changes: 2 additions & 0 deletions impeller/golden_tests/golden_playground_test_stub.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,6 @@ ISize GoldenPlaygroundTest::GetWindowSize() const {
return ISize();
}

void GoldenPlaygroundTest::SetWindowSize(ISize size) {}

} // namespace impeller
4 changes: 2 additions & 2 deletions impeller/playground/playground.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ class Playground {

virtual bool ShouldKeepRendering() const;

void SetWindowSize(ISize size);

private:
struct GLFWInitializer;

Expand All @@ -105,8 +107,6 @@ class Playground {

void SetCursorPosition(Point pos);

void SetWindowSize(ISize size);

FML_DISALLOW_COPY_AND_ASSIGN(Playground);
};

Expand Down