diff options
author | Nicolas Roard <nicolas@android.com> | 2011-01-17 13:22:15 -0800 |
---|---|---|
committer | Nicolas Roard <nicolas@android.com> | 2011-01-18 13:02:35 -0800 |
commit | fed0f3819356e8f1bdb6fd97c0265e2bfff1dacb (patch) | |
tree | 7c50290b4e0a7ea2651c17303b71ecf8348c272c /WebCore/platform/graphics/android/TilesManager.h | |
parent | efb8822dda4a5e31ef2e6232640849a1f0736fe7 (diff) | |
download | external_webkit-fed0f3819356e8f1bdb6fd97c0265e2bfff1dacb.zip external_webkit-fed0f3819356e8f1bdb6fd97c0265e2bfff1dacb.tar.gz external_webkit-fed0f3819356e8f1bdb6fd97c0265e2bfff1dacb.tar.bz2 |
Implement partial layer rendering (support for large layers)
Also fix a couple of potential ANRs
bug:3333984
Change-Id: I28c02ef74f4c70507fcd7f5bbc893b0d0eae61c0
Diffstat (limited to 'WebCore/platform/graphics/android/TilesManager.h')
-rw-r--r-- | WebCore/platform/graphics/android/TilesManager.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/WebCore/platform/graphics/android/TilesManager.h b/WebCore/platform/graphics/android/TilesManager.h index 576d508..c09a388 100644 --- a/WebCore/platform/graphics/android/TilesManager.h +++ b/WebCore/platform/graphics/android/TilesManager.h @@ -71,13 +71,15 @@ public: void printLayersTextures(const char* s); void cleanupLayersTextures(LayerAndroid* layer, bool forceCleanup = false); - LayerTexture* getExistingTextureForLayer(LayerAndroid* layer); - LayerTexture* createTextureForLayer(LayerAndroid* layer); + LayerTexture* getExistingTextureForLayer(LayerAndroid* layer, const IntRect& rect, + bool any = false); + LayerTexture* createTextureForLayer(LayerAndroid* layer, const IntRect& rect); void markGeneratorAsReady() { android::Mutex::Autolock lock(m_generatorLock); m_generatorReadyCond.signal(); + m_generatorReady = true; } void printTextures(); @@ -97,7 +99,8 @@ private: void waitForGenerator() { android::Mutex::Autolock lock(m_generatorLock); - m_generatorReadyCond.wait(m_generatorLock); + if (!m_generatorReady) + m_generatorReadyCond.wait(m_generatorLock); } Vector<BackedDoubleBufferedTexture*> m_textures; |