From 4afdf666fdb034834c48445570ed9d6f4133fc71 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Wed, 13 Oct 2010 21:31:28 -0700 Subject: Color filters were ignored by the program cache fast path. Change-Id: I08f2f02d356234a674be778d088e0558fd49c849 --- libs/hwui/ProgramCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/hwui/ProgramCache.cpp') diff --git a/libs/hwui/ProgramCache.cpp b/libs/hwui/ProgramCache.cpp index 1eac2393422e..3cd85c8d3b5f 100644 --- a/libs/hwui/ProgramCache.cpp +++ b/libs/hwui/ProgramCache.cpp @@ -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; -- cgit v1.2.3-59-g8ed1b