diff options
| author | 2016-11-16 17:43:04 +0000 | |
|---|---|---|
| committer | 2016-11-16 17:43:09 +0000 | |
| commit | 5e3935eca26848a070a612933305d640eece0a7b (patch) | |
| tree | c5fac78b9da97a63f91ca285024b869f4c3b73da /libs/hwui/ProgramCache.cpp | |
| parent | b11f283088d93afe2f7bb3a5e0a945f6e25605e4 (diff) | |
| parent | 554ffeb8b7c836da43a637c59eedfc617895b19d (diff) | |
Merge "Support hardware bitmaps in bitmap shaders"
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
| -rw-r--r-- | libs/hwui/ProgramCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/ProgramCache.cpp b/libs/hwui/ProgramCache.cpp index 1afc97839b44..0c2309faf4ea 100644 --- a/libs/hwui/ProgramCache.cpp +++ b/libs/hwui/ProgramCache.cpp @@ -707,7 +707,7 @@ String8 ProgramCache::generateFragmentShader(const ProgramDescription& descripti if (blendFramebuffer) { generateBlend(shader, "blendFramebuffer", description.framebufferMode); } - if (description.isBitmapNpot) { + if (description.useShaderBasedWrap) { generateTextureWrap(shader, description.bitmapWrapS, description.bitmapWrapT); } if (description.hasGradient) { @@ -736,7 +736,7 @@ String8 ProgramCache::generateFragmentShader(const ProgramDescription& descripti shader.append(gFS_Main_FetchGradient[gradientIndex(description)]); } if (description.hasBitmap) { - if (!description.isBitmapNpot) { + if (!description.useShaderBasedWrap) { shader.append(gFS_Main_FetchBitmap); } else { shader.append(gFS_Main_FetchBitmapNpot); |