◆ SkiaGpuObjectTest()
flutter::testing::SkiaGpuObjectTest::SkiaGpuObjectTest |
( |
| ) |
|
|
inline |
Definition at line 52 of file skia_gpu_object_unittests.cc.
54 unref_queue_(fml::MakeRefCounted<SkiaUnrefQueue>(
57 delayed_unref_queue_(fml::MakeRefCounted<SkiaUnrefQueue>(
60
61
62
63 std::promise<bool> queues_created;
64 unref_task_runner_->
PostTask([
this, &queues_created]() {
65 unref_queue_ = fml::MakeRefCounted<SkiaUnrefQueue>(
67 delayed_unref_queue_ = fml::MakeRefCounted<SkiaUnrefQueue>(
69 queues_created.set_value(true);
70 });
71 queues_created.get_future().wait();
72 ::testing::FLAGS_gtest_death_test_style = "threadsafe";
73 }
fml::RefPtr< fml::TaskRunner > unref_task_runner()
fml::RefPtr< fml::TaskRunner > CreateNewThread(const std::string &name="")
Creates a new thread, initializes a message loop on it, and, returns its task runner to the unit-test...
virtual void PostTask(const fml::closure &task) override
static constexpr TimeDelta FromSeconds(int64_t seconds)
◆ delayed_unref_queue()
◆ unref_queue()
◆ unref_task_runner()
The documentation for this class was generated from the following file: