Home
last modified time | relevance | path

Searched refs:FrameInfoIndex (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/libs/hwui/
DFrameInfo.h32 enum class FrameInfoIndex { enum
79 set(FrameInfoIndex::Vsync) = vsyncTime; in setVsync()
80 set(FrameInfoIndex::IntendedVsync) = intendedVsync; in setVsync()
83 set(FrameInfoIndex::HandleInputStart) = vsyncTime; in setVsync()
84 set(FrameInfoIndex::AnimationStart) = vsyncTime; in setVsync()
85 set(FrameInfoIndex::PerformTraversalsStart) = vsyncTime; in setVsync()
86 set(FrameInfoIndex::DrawStart) = vsyncTime; in setVsync()
91 set(FrameInfoIndex::Flags) |= static_cast<uint64_t>(frameInfoFlag); in addFlag()
96 inline int64_t& set(FrameInfoIndex index) { return mBuffer[static_cast<int>(index)]; } in set()
105 void markSyncStart() { set(FrameInfoIndex::SyncStart) = systemTime(SYSTEM_TIME_MONOTONIC); } in markSyncStart()
[all …]
DJankTracker.cpp43 FrameInfoIndex start;
44 FrameInfoIndex end;
48 Comparison{JankType::kMissedVsync, [](nsecs_t) { return 1; }, FrameInfoIndex::IntendedVsync, in __anond0ea453f0102()
49 FrameInfoIndex::Vsync}, in __anond0ea453f0102()
53 FrameInfoIndex::Vsync, FrameInfoIndex::SyncStart},
57 FrameInfoIndex::SyncStart, FrameInfoIndex::IssueDrawCommandsStart},
61 FrameInfoIndex::IssueDrawCommandsStart, FrameInfoIndex::FrameCompleted},
80 static FrameInfoIndex sFrameStart = FrameInfoIndex::IntendedVsync;
111 int64_t totalDuration = frame.duration(sFrameStart, FrameInfoIndex::FrameCompleted); in finishFrame()
112 if (mDequeueTimeForgiveness && frame[FrameInfoIndex::DequeueBufferDuration] > 500_us) { in finishFrame()
[all …]
DFrameInfoVisualizer.cpp50 FrameInfoIndex start;
51 FrameInfoIndex end;
56 {FrameInfoIndex::IntendedVsync, FrameInfoIndex::HandleInputStart, Color::Teal_700},
57 {FrameInfoIndex::HandleInputStart, FrameInfoIndex::PerformTraversalsStart,
59 {FrameInfoIndex::PerformTraversalsStart, FrameInfoIndex::DrawStart, Color::LightGreen_700},
60 {FrameInfoIndex::DrawStart, FrameInfoIndex::SyncStart, Color::Blue_500},
61 {FrameInfoIndex::SyncStart, FrameInfoIndex::IssueDrawCommandsStart, Color::LightBlue_300},
62 {FrameInfoIndex::IssueDrawCommandsStart, FrameInfoIndex::SwapBuffers, Color::Red_500},
63 {FrameInfoIndex::SwapBuffers, FrameInfoIndex::FrameCompleted, Color::Orange_500},
151 if (mFrameSource[fi][FrameInfoIndex::Flags] & FrameInfoFlags::SkippedFrame) { in initializeRects()
[all …]
DFrameInfoVisualizer.h58 void nextBarSegment(FrameInfoIndex start, FrameInfoIndex end);
62 inline float durationMS(size_t index, FrameInfoIndex start, FrameInfoIndex end) { in durationMS()
DFrameInfo.cpp44 static_cast<int>(FrameInfoIndex::NumIndexes),
47 static_assert(static_cast<int>(FrameInfoIndex::NumIndexes) == 17,
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.cpp270 return info && ((*info)[FrameInfoIndex::Flags] & FrameInfoFlags::SkippedFrame); in wasSkipped()
324 mCurrentFrameInfo->set(FrameInfoIndex::SyncQueued) = syncQueued; in prepareTree()
447 presentTime = mCurrentFrameInfo->get(FrameInfoIndex::Vsync) + in setPresentTime()
520 if (dequeueStart < mCurrentFrameInfo->get(FrameInfoIndex::SyncStart)) { in draw()
534 mCurrentFrameInfo->set(FrameInfoIndex::DequeueBufferDuration) = swap.dequeueDuration; in draw()
535 mCurrentFrameInfo->set(FrameInfoIndex::QueueBufferDuration) = swap.queueDuration; in draw()
540 mCurrentFrameInfo->set(FrameInfoIndex::DequeueBufferDuration) = 0; in draw()
541 mCurrentFrameInfo->set(FrameInfoIndex::QueueBufferDuration) = 0; in draw()
549 float thisFrame = mCurrentFrameInfo->duration(FrameInfoIndex::IssueDrawCommandsStart, in draw()
550 FrameInfoIndex::FrameCompleted) / in draw()
[all …]
DDrawFrameTask.cpp130 int64_t vsync = mFrameInfo[static_cast<int>(FrameInfoIndex::Vsync)]; in syncFrameState()
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_HardwareRendererObserver.h49 static constexpr int kBufferSize = static_cast<int>(uirenderer::FrameInfoIndex::NumIndexes);