Color filters were ignored by the program cache fast path.
Change-Id: I08f2f02d356234a674be778d088e0558fd49c849
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -135,7 +135,7 @@ struct ProgramDescription {
|
||||
GLenum bitmapWrapT;
|
||||
|
||||
// Color operations
|
||||
int colorOp;
|
||||
ColorModifier colorOp;
|
||||
SkXfermode::Mode colorMode;
|
||||
|
||||
// Framebuffer blending (requires Extensions.hasFramebufferFetch())
|
||||
|
||||
Reference in New Issue
Block a user