diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/android')
-rw-r--r-- | Source/WebCore/platform/graphics/android/rendering/ImagesManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/ImagesManager.cpp b/Source/WebCore/platform/graphics/android/rendering/ImagesManager.cpp index 316b7fd..82ea3fa 100644 --- a/Source/WebCore/platform/graphics/android/rendering/ImagesManager.cpp +++ b/Source/WebCore/platform/graphics/android/rendering/ImagesManager.cpp @@ -58,8 +58,7 @@ ImageTexture* ImagesManager::setImage(SkBitmapRef* imgRef) SkBitmap* img = 0; unsigned crc = 0; - img = ImageTexture::convertBitmap(bitmap); - crc = ImageTexture::computeCRC(img); + crc = ImageTexture::computeCRC(bitmap); { android::Mutex::Autolock lock(m_imagesLock); @@ -72,6 +71,7 @@ ImageTexture* ImagesManager::setImage(SkBitmapRef* imgRef) // the image is not in the map, we add it + img = ImageTexture::convertBitmap(bitmap); image = new ImageTexture(img, crc); android::Mutex::Autolock lock(m_imagesLock); |