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

Commit cb4af9b1 authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Hwui: Remove unused variables

For build-system CFLAGS clean-up, remove unused variables.

Bug: 18632512
Change-Id: Ic58bedc84234325512193991fc64315e3aad6f9e
parent 4cfa2389
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -474,7 +474,6 @@ void FontRenderer::issueDrawCommand(Vector<CacheTexture*>& cacheTextures) {
    if (!mFunctor) return;

    bool first = true;
    bool forceRebind = false;
    for (uint32_t i = 0; i < cacheTextures.size(); i++) {
        CacheTexture* texture = cacheTextures[i];
        if (texture->canDraw()) {
@@ -487,7 +486,6 @@ void FontRenderer::issueDrawCommand(Vector<CacheTexture*>& cacheTextures) {
            mFunctor->draw(*texture, mLinearFiltering);

            texture->resetMesh();
            forceRebind = false;
        }
    }
}
+0 −3
Original line number Diff line number Diff line
@@ -231,14 +231,11 @@ private:
        renderer->drawColor(0xFFFF00FF, SkXfermode::kSrcOver_Mode);

        SkRegion region;
        float rects[width * height];
        int index = 0;
        for (int xOffset = 0; xOffset < width; xOffset+=2) {
            for (int yOffset = 0; yOffset < height; yOffset+=2) {
                region.op(xOffset, yOffset, xOffset + 1, yOffset + 1, SkRegion::kUnion_Op);
            }
        }
        int count = width * height;

        SkPaint paint;
        paint.setColor(0xff00ffff);