MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / addCreditReference

Method addCreditReference

CesiumUtility/src/CreditSystem.cpp:161–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161bool CreditSystem::addCreditReference(Credit credit) {
162 CreditRecord& record = this->_credits[credit._id];
163
164 // If the Credit is from a previous generation (a deleted credit source),
165 // ignore it.
166 if (credit._generation != record.generation) {
167 return false;
168 }
169
170 ++record.referenceCount;
171
172 return true;
173}
174
175bool CreditSystem::removeCreditReference(Credit credit) {
176 CreditRecord& record = this->_credits[credit._id];

Callers 5

finishFrameMethod · 0.45
addCreditsMethod · 0.45
addCreditsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected