MCPcopy Create free account
hub / github.com/Snapchat/Valdi / doDispose

Method doDispose

snap_drawing/src/snap_drawing/cpp/Utils/ImageQueue.cpp:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void PooledBitmap::doDispose() {
21 auto queue = _queue.lock();
22 if (queue != nullptr && _sourceBitmap != nullptr) {
23 queue->enqueueCachedBitmap(_sourceBitmap);
24 _sourceBitmap = nullptr;
25 }
26}
27
28void PooledBitmap::dispose() {
29 doDispose();

Callers

nothing calls this directly

Calls 2

enqueueCachedBitmapMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected