From 1a8134698fa0b94387482fb4b45341faa8fe6a38 Mon Sep 17 00:00:00 2001 From: Nicolas Roard Date: Sun, 16 Jan 2011 18:27:55 -0800 Subject: Implement re-scaling for layers Change-Id: I1f998387831207d00f27945ee4e456f81ff6f6e2 Change-Id: I7efcccfd9a4374061300058d4c48fa82a973829a --- WebCore/platform/graphics/android/TilesManager.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'WebCore/platform/graphics/android/TilesManager.h') diff --git a/WebCore/platform/graphics/android/TilesManager.h b/WebCore/platform/graphics/android/TilesManager.h index e69db4c..576d508 100644 --- a/WebCore/platform/graphics/android/TilesManager.h +++ b/WebCore/platform/graphics/android/TilesManager.h @@ -55,6 +55,11 @@ public: m_pixmapsGenerationThread->removeOperationsForBaseLayer(layer); } + void removeOperationsForTexture(LayerTexture* texture) + { + m_pixmapsGenerationThread->removeOperationsForTexture(texture); + } + void scheduleOperation(QueuedOperation* operation) { m_pixmapsGenerationThread->scheduleOperation(operation); @@ -65,7 +70,7 @@ public: BackedDoubleBufferedTexture* getAvailableTexture(BaseTile* owner); void printLayersTextures(const char* s); - void cleanupLayersTextures(bool forceCleanup = false); + void cleanupLayersTextures(LayerAndroid* layer, bool forceCleanup = false); LayerTexture* getExistingTextureForLayer(LayerAndroid* layer); LayerTexture* createTextureForLayer(LayerAndroid* layer); @@ -99,6 +104,8 @@ private: Vector m_layersTextures; unsigned int m_layersMemoryUsage; + GLint m_maxTextureSize; + unsigned int m_totalMaxTextureSize; bool m_generatorReady; -- cgit v1.1