MCPcopy Create free account
hub / github.com/Tencent/tgfx / Make

Method Make

test/src/utils/DevicePool.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24thread_local std::shared_ptr<tgfx::GLDevice> cachedDevice = nullptr;
25
26std::shared_ptr<tgfx::GLDevice> DevicePool::Make() {
27 auto device = cachedDevice;
28 if (device == nullptr) {
29 device = tgfx::GLDevice::Make();
30 cachedDevice = device;
31 }
32 return device;
33}
34} // namespace tgfx

Callers

nothing calls this directly

Calls 1

MakeFunction · 0.85

Tested by

no test coverage detected