diff options
author | Russell Brenner <russellbrenner@google.com> | 2011-02-07 13:33:03 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-02-07 13:33:03 -0800 |
commit | b50b0e165c9c308b9a4a1824db6ef52a00acadf5 (patch) | |
tree | 7d5b3148bbc19258607bcbf866d589cc39292807 /WebCore/platform/graphics | |
parent | ad1398b85d7cef3bd7c3dc833921fcdb3c7f06f6 (diff) | |
parent | 4a181ab990b9a9d3e84ef21bea182c21b0c32414 (diff) | |
download | external_webkit-b50b0e165c9c308b9a4a1824db6ef52a00acadf5.zip external_webkit-b50b0e165c9c308b9a4a1824db6ef52a00acadf5.tar.gz external_webkit-b50b0e165c9c308b9a4a1824db6ef52a00acadf5.tar.bz2 |
am 4a181ab9: Merge "Fix 3366514 (again): browser emulator crash" into honeycomb
* commit '4a181ab990b9a9d3e84ef21bea182c21b0c32414':
Fix 3366514 (again): browser emulator crash
Diffstat (limited to 'WebCore/platform/graphics')
-rw-r--r-- | WebCore/platform/graphics/android/BaseLayerAndroid.cpp | 9 | ||||
-rw-r--r-- | WebCore/platform/graphics/android/TilesManager.h | 5 |
2 files changed, 8 insertions, 6 deletions
diff --git a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp index b632664..2f0e999 100644 --- a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp +++ b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp @@ -36,10 +36,6 @@ #include <wtf/CurrentTime.h> #endif // USE(ACCELERATED_COMPOSITING) -// #if TARGET_DEVICE != generic /* Not supported in emulator */ -#define HARDWARE_ACCELERATION -// #endif - #ifdef DEBUG #include <cutils/log.h> @@ -72,8 +68,9 @@ BaseLayerAndroid::BaseLayerAndroid() BaseLayerAndroid::~BaseLayerAndroid() { -#ifdef HARDWARE_ACCELERATION - TilesManager::instance()->removeOperationsForBaseLayer(this); +#if USE(ACCELERATED_COMPOSITING) + if (TilesManager::hardwareAccelerationEnabled()) + TilesManager::instance()->removeOperationsForBaseLayer(this); #endif m_content.clear(); #ifdef DEBUG_COUNT diff --git a/WebCore/platform/graphics/android/TilesManager.h b/WebCore/platform/graphics/android/TilesManager.h index 04147b0..eeb38fe 100644 --- a/WebCore/platform/graphics/android/TilesManager.h +++ b/WebCore/platform/graphics/android/TilesManager.h @@ -46,6 +46,11 @@ public: static TilesManager* instance(); static GLint getMaxTextureSize(); + static bool hardwareAccelerationEnabled() + { + return gInstance != 0; + } + void removeOperationsForPage(TiledPage* page) { m_pixmapsGenerationThread->removeOperationsForPage(page); |