diff options
author | Cary Clark <cary@android.com> | 2011-01-05 10:58:18 -0500 |
---|---|---|
committer | Cary Clark <cary@android.com> | 2011-01-05 10:58:18 -0500 |
commit | ca689a9f2e3486d7968848a5fe73554a3fd6c68e (patch) | |
tree | 6950d6cb0b3f2b3da538e9c2509a9d773756023c /WebCore | |
parent | 515943cc7c9a60faa661739271d5fa14fcba9df8 (diff) | |
download | external_webkit-ca689a9f2e3486d7968848a5fe73554a3fd6c68e.zip external_webkit-ca689a9f2e3486d7968848a5fe73554a3fd6c68e.tar.gz external_webkit-ca689a9f2e3486d7968848a5fe73554a3fd6c68e.tar.bz2 |
refine empty picture test to look for color rects
bug:3296986
Change-Id: I171435f6285f671abc9f2e38ad00ebcabb783cb3
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/platform/graphics/android/BaseLayerAndroid.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp index fe8150c..1a08b3c 100644 --- a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp +++ b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp @@ -114,8 +114,7 @@ void BaseLayerAndroid::drawCanvas(SkCanvas* canvas) #if USE(ACCELERATED_COMPOSITING) android::Mutex::Autolock lock(m_drawLock); #endif - // TODO: After the isEmpty check fixed, we can remove the GL dependency here. - if (m_glWebViewState || !m_content.isEmpty()) + if (!m_content.isEmpty()) m_content.draw(canvas); // TODO : replace with !m_extra.isEmpty() once such a call exists if (m_extra.width() > 0) @@ -125,8 +124,7 @@ void BaseLayerAndroid::drawCanvas(SkCanvas* canvas) #if USE(ACCELERATED_COMPOSITING) bool BaseLayerAndroid::drawBasePictureInGL(SkRect& viewport, float scale) { - // TODO: After the isEmpty check fixed, we can remove the GL dependency here. - if (!m_glWebViewState && m_content.isEmpty()) + if (m_content.isEmpty()) return false; if (!m_glWebViewState) return false; |