diff --git a/engine/src/flutter/shell/platform/embedder/embedder.cc b/engine/src/flutter/shell/platform/embedder/embedder.cc index ddd368a739..bceb94e1ba 100644 --- a/engine/src/flutter/shell/platform/embedder/embedder.cc +++ b/engine/src/flutter/shell/platform/embedder/embedder.cc @@ -132,12 +132,6 @@ static bool IsOpenGLRendererConfigValid(const FlutterRendererConfig* config) { return false; } - if (!SAFE_EXISTS(open_gl_config, populate_existing_damage)) { - FML_LOG(INFO) << "populate_existing_damage was not defined, disabling " - "partial repaint. If you wish to enable partial repaint, " - "please define this callback."; - } - return true; } diff --git a/engine/src/flutter/shell/platform/windows/flutter_windows_unittests.cc b/engine/src/flutter/shell/platform/windows/flutter_windows_unittests.cc index 40cd9e32a3..6d32f24313 100644 --- a/engine/src/flutter/shell/platform/windows/flutter_windows_unittests.cc +++ b/engine/src/flutter/shell/platform/windows/flutter_windows_unittests.cc @@ -38,6 +38,32 @@ TEST_F(WindowsTest, LaunchMain) { ASSERT_NE(controller, nullptr); } +// Verify there is no unexpected output from launching main. +TEST_F(WindowsTest, LaunchMainHasNoOutput) { + // Replace stdout & stderr stream buffers with our own. + std::stringstream cout_buffer; + std::stringstream cerr_buffer; + std::streambuf* old_cout_buffer = std::cout.rdbuf(); + std::streambuf* old_cerr_buffer = std::cerr.rdbuf(); + std::cout.rdbuf(cout_buffer.rdbuf()); + std::cerr.rdbuf(cerr_buffer.rdbuf()); + + auto& context = GetContext(); + WindowsConfigBuilder builder(context); + ViewControllerPtr controller{builder.Run()}; + ASSERT_NE(controller, nullptr); + + // Restore original stdout & stderr stream buffer. + std::cout.rdbuf(old_cout_buffer); + std::cerr.rdbuf(old_cerr_buffer); + + // Verify stdout & stderr have no output. + std::string cout = cout_buffer.str(); + std::string cerr = cerr_buffer.str(); + EXPECT_TRUE(cout.empty()); + EXPECT_TRUE(cerr.empty()); +} + // Verify we can successfully launch a custom entry point. TEST_F(WindowsTest, LaunchCustomEntrypoint) { auto& context = GetContext();