OSDN Git Service

Merge "When in singlesurfacemode, resist switching out - DO NOT MERGE" into ics-mr1
authorChris Craik <ccraik@google.com>
Wed, 4 Jan 2012 21:43:37 +0000 (13:43 -0800)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Wed, 4 Jan 2012 21:43:37 +0000 (13:43 -0800)
Source/WebCore/platform/graphics/android/GLWebViewState.cpp
Source/WebCore/platform/graphics/android/TilesManager.cpp

index 2cc2d85..3bcda9a 100644 (file)
@@ -130,6 +130,7 @@ void GLWebViewState::setBaseLayer(BaseLayerAndroid* layer, const SkRegion& inval
 {
     if (!layer || isPictureAfterFirstLayout) {
         // TODO: move this into TreeManager
+        m_zoomManager.swapPages(); // reset zoom state
         m_tiledPageA->discardTextures();
         m_tiledPageB->discardTextures();
         m_layersRenderingMode = kAllTextures;
index 30bd8d0..62324d7 100644 (file)
@@ -113,7 +113,7 @@ TilesManager::TilesManager()
     m_tilesTextures.reserveCapacity(MAX_TEXTURE_ALLOCATION);
     m_availableTilesTextures.reserveCapacity(MAX_TEXTURE_ALLOCATION);
     m_pixmapsGenerationThread = new TexturesGenerator();
-    m_pixmapsGenerationThread->run("TexturesGenerator", android::PRIORITY_BACKGROUND);
+    m_pixmapsGenerationThread->run("TexturesGenerator");
 }
 
 void TilesManager::allocateTiles()