diff options
| author | 2016-02-11 22:05:14 +0000 | |
|---|---|---|
| committer | 2016-02-11 22:05:14 +0000 | |
| commit | ca11dd75caf4140e12168bd4abcceeeb5f63fe18 (patch) | |
| tree | e4d052b56a5e07c1a3253d82f8992400efa16fe1 /libs/hwui/GradientCache.cpp | |
| parent | d3107e88945b7cd3ee192664b45263f180d91c4a (diff) | |
| parent | 1d4e6a0901e5d26f4319ed173b4aa7b907350d93 (diff) | |
Merge "Fix bpp mismatch" into nyc-dev
Diffstat (limited to 'libs/hwui/GradientCache.cpp')
| -rw-r--r-- | libs/hwui/GradientCache.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/GradientCache.cpp b/libs/hwui/GradientCache.cpp index 11293d61211b..88ae02b5524d 100644 --- a/libs/hwui/GradientCache.cpp +++ b/libs/hwui/GradientCache.cpp @@ -165,6 +165,10 @@ Texture* GradientCache::addLinearGradient(GradientCacheEntry& gradient, generateTexture(colors, positions, info.width, 2, texture); mSize += size; + LOG_ALWAYS_FATAL_IF((int)size != texture->objectSize(), + "size != texture->objectSize(), size %" PRIu32 ", objectSize %" PRIu32 + " width = %" PRIu32 " bytesPerPixel() = %" PRIu32, + size, texture->objectSize(), info.width, bytesPerPixel()); mCache.put(gradient, texture); return texture; |