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

Commit 33119ad2 authored by Chia-I Wu's avatar Chia-I Wu
Browse files

surfaceflinger: remove some unused Layer methods

Remove unused

  void draw(const RenderArea& renderArea);
  void clearWithOpenGL(const RenderArea& renderArea) const;

from class Layer.

Test: builds
Change-Id: I5359c9260c060a09d0b0d94412f386c64065e6ed
parent 8730ba81
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -699,10 +699,6 @@ void Layer::draw(const RenderArea& renderArea, bool useIdentityTransform) {
    onDraw(renderArea, Region(renderArea.getBounds()), useIdentityTransform);
}

void Layer::draw(const RenderArea& renderArea) {
    onDraw(renderArea, Region(renderArea.getBounds()), false);
}

void Layer::clearWithOpenGL(const RenderArea& renderArea, float red, float green, float blue,
                            float alpha) const {
    auto& engine(mFlinger->getRenderEngine());
@@ -711,11 +707,6 @@ void Layer::clearWithOpenGL(const RenderArea& renderArea, float red, float green
    engine.drawMesh(getBE().mMesh);
}

void Layer::clearWithOpenGL(const RenderArea& renderArea) const {
    getBE().compositionInfo.firstClear = true;
    computeGeometry(renderArea, getBE().mMesh, false);
}

void Layer::setCompositionType(int32_t displayId, HWC2::Composition type, bool /*callIntoHwc*/) {
    if (getBE().mHwcLayers.count(displayId) == 0) {
        ALOGE("setCompositionType called without a valid HWC layer");
+0 −3
Original line number Diff line number Diff line
@@ -414,7 +414,6 @@ public:
     */
    void draw(const RenderArea& renderArea, const Region& clip);
    void draw(const RenderArea& renderArea, bool useIdentityTransform);
    void draw(const RenderArea& renderArea);

    /*
     * doTransaction - process the transaction. This is a good place to figure
@@ -512,8 +511,6 @@ public:

    // -----------------------------------------------------------------------

    void clearWithOpenGL(const RenderArea& renderArea) const;

    inline const State& getDrawingState() const { return mDrawingState; }
    inline const State& getCurrentState() const { return mCurrentState; }
    inline State& getCurrentState() { return mCurrentState; }