Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fff582a1 authored by Leon Scroggins's avatar Leon Scroggins Committed by Automerger Merge Worker
Browse files

Merge "Remove Flattener::reset" into sc-dev am: cb769ae9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/13996653

Change-Id: I55455c8498226f5fa0993ccac0ecd49a8ac61b05
parents 652ec5b3 cb769ae9
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -45,8 +45,6 @@ public:
    // Renders the newest cached sets with the supplied output dataspace
    void renderCachedSets(renderengine::RenderEngine&, ui::Dataspace outputDataspace);

    void reset();

    void dump(std::string& result) const;

private:
+0 −12
Original line number Diff line number Diff line
@@ -60,18 +60,6 @@ void Flattener::renderCachedSets(renderengine::RenderEngine& renderEngine,
    mNewCachedSet->render(renderEngine, outputDataspace);
}

void Flattener::reset() {
    resetActivities(0, std::chrono::steady_clock::now());

    mUnflattenedDisplayCost = 0;
    mFlattenedDisplayCost = 0;
    mInitialLayerCounts.clear();
    mFinalLayerCounts.clear();
    mCachedSetCreationCount = 0;
    mCachedSetCreationCost = 0;
    mInvalidatedCachedSetAges.clear();
}

void Flattener::dump(std::string& result) const {
    const auto now = std::chrono::steady_clock::now();