summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform')
-rw-r--r--Source/WebCore/platform/graphics/android/BaseTile.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/android/BaseTile.cpp b/Source/WebCore/platform/graphics/android/BaseTile.cpp
index 93d00bd..2963ca7 100644
--- a/Source/WebCore/platform/graphics/android/BaseTile.cpp
+++ b/Source/WebCore/platform/graphics/android/BaseTile.cpp
@@ -75,11 +75,11 @@ BaseTile::BaseTile(bool isLayerTile)
m_currentDirtyAreaIndex = 0;
// For EglImage Mode, the internal buffer should be 2.
- // And for Async Surface Texture mode, this is 3.
+ // For Surface Texture mode, we only need one.
if (TilesManager::instance()->getSharedTextureMode() == EglImageMode)
m_maxBufferNumber = 2;
else
- m_maxBufferNumber = 3;
+ m_maxBufferNumber = 1;
m_dirtyArea = new SkRegion[m_maxBufferNumber];
m_fullRepaint = new bool[m_maxBufferNumber];
@@ -355,6 +355,9 @@ void BaseTile::paintBitmap()
bool surfaceTextureMode = textureInfo->getSharedTextureMode() == SurfaceTextureMode;
+ if (surfaceTextureMode)
+ fullRepaint = true;
+
while (!fullRepaint && !cliperator.done()) {
SkRect realTileRect;
SkRect dirtyRect;