Home
last modified time | relevance | path

Searched refs:Swappy (Results 1 – 7 of 7) sorted by relevance

/frameworks/opt/gamesdk/src/swappy/
DSwappy.cpp45 std::mutex Swappy::sInstanceMutex;
46 std::unique_ptr<Swappy> Swappy::sInstance;
49 constexpr std::chrono::nanoseconds Swappy::FrameDuration::MAX_DURATION;
50 constexpr std::chrono::nanoseconds Swappy::FRAME_HYSTERESIS;
52 void Swappy::init(JNIEnv *env, jobject jactivity) { in init()
108 Swappy::init( in init()
115 void Swappy::init(JavaVM *vm, nanoseconds refreshPeriod, nanoseconds appOffset, nanoseconds sfOffse… in init()
121 sInstance = std::make_unique<Swappy>(vm, refreshPeriod, appOffset, sfOffset, ConstructorTag{}); in init()
124 void Swappy::onChoreographer(int64_t frameTimeNanos) { in onChoreographer()
127 Swappy *swappy = getInstance(); in onChoreographer()
[all …]
DSwappy_c.cpp30 Swappy::init(env, jactivity); in Swappy_init()
34 Swappy::destroyInstance(); in Swappy_destroy()
38 Swappy::onChoreographer(frameTimeNanos); in Swappy_onChoreographer()
42 return Swappy::swap(display, surface); in Swappy_swap()
66 return Swappy::getSwapIntervalNS(); in Swappy_getSwapIntervalNS()
70 Swappy::addTracer(t); in Swappy_injectTracer()
74 Swappy::setAutoSwapInterval(enabled); in Swappy_setAutoSwapInterval()
78 Swappy::setAutoPipelineMode(enabled); in Swappy_setAutoPipelineMode()
82 Swappy::enableStats(enabled); in Swappy_enableStats()
86 Swappy::recordFrameStart(display, surface); in Swappy_recordFrameStart()
[all …]
DSwappy.h49 class Swappy {
56 Swappy(JavaVM *vm,
136 static Swappy *getInstance();
197 static std::unique_ptr<Swappy> sInstance;
DCMakeLists.txt31 ${SOURCE_LOCATION}/Swappy.cpp
34 ${SOURCE_LOCATION}/Swappy.cpp
DChoreographerThread.h34 Swappy, enumerator
/frameworks/opt/gamesdk/samples/unitypackaging/app/
Dversion.script3 *Swappy*;
DCMakeLists.txt21 src/main/cpp/swappy/Swappy.cpp