MCPcopy Create free account
hub / github.com/buggins/coolreader / getInstance

Method getInstance

android/jni/cr3java.cpp:408–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406
407static BitmapAccessorInterface * _bitmapAccessorInstance = NULL;
408BitmapAccessorInterface * BitmapAccessorInterface::getInstance()
409{
410 if ( _bitmapAccessorInstance==NULL ) {
411 JNIGraphicsLib * lib = new JNIGraphicsLib();
412 if ( !lib->load("libjnigraphics.so") ) {
413 delete lib;
414 CRLog::error("Cannot load libjnigraphics.so : will use slower replacement instead");
415 _bitmapAccessorInstance = new JNIGraphicsReplacement();
416 } else {
417 _bitmapAccessorInstance = lib;
418 }
419 }
420 return _bitmapAccessorInstance;
421}

Callers 4

InputDialogMethod · 0.80
formatDateMethod · 0.80
generatePublicKeyMethod · 0.80
verifyMethod · 0.80

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected