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

Commit 4afdf666 authored by Romain Guy's avatar Romain Guy
Browse files

Color filters were ignored by the program cache fast path.

Change-Id: I08f2f02d356234a674be778d088e0558fd49c849
parent 1b422d8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -417,7 +417,7 @@ String8 ProgramCache::generateFragmentShader(const ProgramDescription& descripti
    }

    // Optimization for common cases
    if (!blendFramebuffer) {
    if (!blendFramebuffer && description.colorOp == ProgramDescription::kColorNone) {
        bool fast = false;

        const bool noShader = !description.hasGradient && !description.hasBitmap;
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ struct ProgramDescription {
    GLenum bitmapWrapT;

    // Color operations
    int colorOp;
    ColorModifier colorOp;
    SkXfermode::Mode colorMode;

    // Framebuffer blending (requires Extensions.hasFramebufferFetch())