Loading libs/hwui/Properties.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -54,9 +54,6 @@ constexpr bool resample_gainmap_regions() { constexpr bool early_preload_gl_context() { return false; } constexpr bool calc_workload_orig_deadline() { return false; } } // namespace hwui_flags #endif // __linux__ Loading Loading @@ -297,11 +294,5 @@ bool Properties::earlyPreloadGlContext() { return base::GetBoolProperty(PROPERTY_EARLY_PRELOAD_GL_CONTEXT, hwui_flags::early_preload_gl_context()); } bool Properties::calcWorkloadOrigDeadline() { static bool sCalcWorkloadOrigDeadline = base::GetBoolProperty( "debug.hwui.calc_workload_orig_deadline", hwui_flags::calc_workload_orig_deadline()); return sCalcWorkloadOrigDeadline; } } // namespace uirenderer } // namespace android libs/hwui/Properties.h +0 −1 Original line number Diff line number Diff line Loading @@ -398,7 +398,6 @@ public: static bool initializeGlAlways(); static bool resampleGainmapRegions(); static bool earlyPreloadGlContext(); static bool calcWorkloadOrigDeadline(); private: static StretchEffectBehavior stretchEffectBehavior; Loading libs/hwui/aconfig/hwui_flags.aconfig +0 −11 Original line number Diff line number Diff line Loading @@ -177,17 +177,6 @@ flag { bug: "383612849" } flag { name: "calc_workload_orig_deadline" namespace: "window_surfaces" description: "Use original frame deadline to calculate the workload target deadline for jank tracking" bug: "389939827" is_fixed_read_only: true metadata { purpose: PURPOSE_BUGFIX } } flag { name: "early_preinit_buffer_allocator" namespace: "core_graphics" Loading libs/hwui/renderthread/CanvasContext.cpp +2 −7 Original line number Diff line number Diff line Loading @@ -816,13 +816,8 @@ void CanvasContext::draw(bool solelyTextureViewUpdates) { int64_t frameDeadline = mCurrentFrameInfo->get(FrameInfoIndex::FrameDeadline); int64_t dequeueBufferDuration = mCurrentFrameInfo->get(FrameInfoIndex::DequeueBufferDuration); if (Properties::calcWorkloadOrigDeadline()) { // Uses the unmodified frame deadline in calculating workload target duration mHintSessionWrapper->updateTargetWorkDuration( mCurrentFrameInfo->get(FrameInfoIndex::WorkloadTarget)); } else { mHintSessionWrapper->updateTargetWorkDuration(frameDeadline - intendedVsync); } if (didDraw) { int64_t frameStartTime = mCurrentFrameInfo->get(FrameInfoIndex::FrameStartTime); Loading Loading
libs/hwui/Properties.cpp +0 −9 Original line number Diff line number Diff line Loading @@ -54,9 +54,6 @@ constexpr bool resample_gainmap_regions() { constexpr bool early_preload_gl_context() { return false; } constexpr bool calc_workload_orig_deadline() { return false; } } // namespace hwui_flags #endif // __linux__ Loading Loading @@ -297,11 +294,5 @@ bool Properties::earlyPreloadGlContext() { return base::GetBoolProperty(PROPERTY_EARLY_PRELOAD_GL_CONTEXT, hwui_flags::early_preload_gl_context()); } bool Properties::calcWorkloadOrigDeadline() { static bool sCalcWorkloadOrigDeadline = base::GetBoolProperty( "debug.hwui.calc_workload_orig_deadline", hwui_flags::calc_workload_orig_deadline()); return sCalcWorkloadOrigDeadline; } } // namespace uirenderer } // namespace android
libs/hwui/Properties.h +0 −1 Original line number Diff line number Diff line Loading @@ -398,7 +398,6 @@ public: static bool initializeGlAlways(); static bool resampleGainmapRegions(); static bool earlyPreloadGlContext(); static bool calcWorkloadOrigDeadline(); private: static StretchEffectBehavior stretchEffectBehavior; Loading
libs/hwui/aconfig/hwui_flags.aconfig +0 −11 Original line number Diff line number Diff line Loading @@ -177,17 +177,6 @@ flag { bug: "383612849" } flag { name: "calc_workload_orig_deadline" namespace: "window_surfaces" description: "Use original frame deadline to calculate the workload target deadline for jank tracking" bug: "389939827" is_fixed_read_only: true metadata { purpose: PURPOSE_BUGFIX } } flag { name: "early_preinit_buffer_allocator" namespace: "core_graphics" Loading
libs/hwui/renderthread/CanvasContext.cpp +2 −7 Original line number Diff line number Diff line Loading @@ -816,13 +816,8 @@ void CanvasContext::draw(bool solelyTextureViewUpdates) { int64_t frameDeadline = mCurrentFrameInfo->get(FrameInfoIndex::FrameDeadline); int64_t dequeueBufferDuration = mCurrentFrameInfo->get(FrameInfoIndex::DequeueBufferDuration); if (Properties::calcWorkloadOrigDeadline()) { // Uses the unmodified frame deadline in calculating workload target duration mHintSessionWrapper->updateTargetWorkDuration( mCurrentFrameInfo->get(FrameInfoIndex::WorkloadTarget)); } else { mHintSessionWrapper->updateTargetWorkDuration(frameDeadline - intendedVsync); } if (didDraw) { int64_t frameStartTime = mCurrentFrameInfo->get(FrameInfoIndex::FrameStartTime); Loading