summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorNicolas Roard <nicolas@android.com>2010-12-17 19:36:55 -0800
committerNicolas Roard <nicolas@android.com>2010-12-20 11:05:27 -0800
commitad95cbb2c0f10d0b0942d95c505c95fd4b799aae (patch)
tree376bf271ecdec681f6ce2e0e8fece3b469735584 /WebCore
parentc3a805c84165787f1693b3502ce139d6ea405307 (diff)
downloadexternal_webkit-ad95cbb2c0f10d0b0942d95c505c95fd4b799aae.zip
external_webkit-ad95cbb2c0f10d0b0942d95c505c95fd4b799aae.tar.gz
external_webkit-ad95cbb2c0f10d0b0942d95c505c95fd4b799aae.tar.bz2
Fix image drawing
Change-Id: I6dacf397f510948b4ecc3c180d2f61050dec00a2
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/graphics/android/LayerAndroid.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/LayerAndroid.cpp b/WebCore/platform/graphics/android/LayerAndroid.cpp
index b62575f..301022a 100644
--- a/WebCore/platform/graphics/android/LayerAndroid.cpp
+++ b/WebCore/platform/graphics/android/LayerAndroid.cpp
@@ -531,7 +531,8 @@ void LayerAndroid::setContentsImage(SkBitmapRef* img)
bool LayerAndroid::needsTexture()
{
- return !m_isRootLayer && prepareContext() && m_recordingPicture->width() && m_recordingPicture->height();
+ return m_contentsImage || (!m_isRootLayer && prepareContext()
+ && m_recordingPicture->width() && m_recordingPicture->height());
}
void LayerAndroid::reserveGLTextures()