summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
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()