diff options
Diffstat (limited to 'libs/hwui/tests/unit/TextureCacheTests.cpp')
-rw-r--r-- | libs/hwui/tests/unit/TextureCacheTests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/tests/unit/TextureCacheTests.cpp b/libs/hwui/tests/unit/TextureCacheTests.cpp index 72384bfa87d8..ab740dd8330e 100644 --- a/libs/hwui/tests/unit/TextureCacheTests.cpp +++ b/libs/hwui/tests/unit/TextureCacheTests.cpp @@ -31,7 +31,7 @@ RENDERTHREAD_OPENGL_PIPELINE_TEST(TextureCache, clear) { SkBitmap skBitmap; SkImageInfo info = SkImageInfo::Make(100, 100, kN32_SkColorType, kPremul_SkAlphaType); skBitmap.setInfo(info); - sk_sp<Bitmap> hwBitmap(Bitmap::allocateHardwareBitmap(renderThread, skBitmap)); + sk_sp<Bitmap> hwBitmap(renderThread.allocateHardwareBitmap(skBitmap)); cache.get(hwBitmap.get()); ASSERT_EQ(GpuMemoryTracker::getInstanceCount(GpuObjectType::Texture), initialCount + 1); cache.clear(); |