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

Commit acbe0b20 authored by Chia-I Wu's avatar Chia-I Wu Committed by Android (Google) Code Review
Browse files

Merge "surfaceflinger: remove some unused Layer methods"

parents 52ea8133 33119ad2
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -672,10 +672,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());
@@ -684,11 +680,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
@@ -407,7 +407,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
@@ -505,8 +504,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; }