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

Commit cb769ae9 authored by Leon Scroggins's avatar Leon Scroggins Committed by Android (Google) Code Review
Browse files

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

parents 6f85afe7 eed02732
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();