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

Commit fa4f541

Browse files
committed
Wait for GL command completion in the ExternalTextureGLRefreshedTooOften test
1 parent 7a4a267 commit fa4f541

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

shell/platform/embedder/tests/embedder_gl_unittests.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4019,10 +4019,15 @@ TEST_F(EmbedderTest, ExternalTextureGLRefreshedTooOften) {
40194019
auto context = surface.GetGrContext();
40204020

40214021
typedef void (*glGenTexturesProc)(uint32_t n, uint32_t* textures);
4022+
typedef void (*glFinishProc)();
4023+
40224024
glGenTexturesProc glGenTextures;
4025+
glFinishProc glFinish;
40234026

40244027
glGenTextures = reinterpret_cast<glGenTexturesProc>(
40254028
surface.GetProcAddress("glGenTextures"));
4029+
glFinish = reinterpret_cast<glFinishProc>(
4030+
surface.GetProcAddress("glFinish"));
40264031

40274032
uint32_t name;
40284033
glGenTextures(1, &name);
@@ -4067,6 +4072,8 @@ TEST_F(EmbedderTest, ExternalTextureGLRefreshedTooOften) {
40674072
DlImageSampling::kLinear);
40684073

40694074
EXPECT_TRUE(resolve_called);
4075+
4076+
glFinish();
40704077
}
40714078

40724079
TEST_F(EmbedderTest,

0 commit comments

Comments
 (0)