5 #include "flutter/testing/testing.h"
16 #include <QuartzCore/CAMetalLayer.h>
20 #include "gtest/gtest.h"
33 context_mtl.StoreTaskForGPU([&]() { executed++; }, [&]() { failed++; });
35 context_mtl.FlushTasksAwaitingGPU();
37 EXPECT_EQ(executed, 1);
46 context_mtl.StoreTaskForGPU([&]() { executed++; }, [&]() { failed++; });
51 context_mtl.FlushTasksAwaitingGPU();
53 EXPECT_EQ(executed, 0);
57 SetGPUDisabled(
false);
59 EXPECT_EQ(executed, 1);
static ContextMTL & Cast(Context &base)
TEST_P(AiksTest, DrawAtlasNoColor)
INSTANTIATE_METAL_PLAYGROUND_SUITE(AllocatorMTLTest)