diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/android/PaintedSurface.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/PaintedSurface.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/WebCore/platform/graphics/android/PaintedSurface.cpp b/Source/WebCore/platform/graphics/android/PaintedSurface.cpp index fd4475b..306eeb5 100644 --- a/Source/WebCore/platform/graphics/android/PaintedSurface.cpp +++ b/Source/WebCore/platform/graphics/android/PaintedSurface.cpp @@ -108,9 +108,6 @@ void PaintedSurface::prepare(GLWebViewState* state) XLOG("layer %d %x prepared at size (%d, %d) @ scale %.2f", m_layer->uniqueId(), m_layer, w, h, scale); - if (!m_tiledTexture) - m_tiledTexture = new TiledTexture(this); - m_tiledTexture->prepare(state, m_pictureUsed != m_layer->pictureUsed()); } @@ -139,6 +136,11 @@ void PaintedSurface::endPaint() m_layerLock.unlock(); } +void PaintedSurface::markAsDirty(const SkRegion& dirtyArea) +{ + m_tiledTexture->markAsDirty(dirtyArea); +} + bool PaintedSurface::paint(BaseTile* tile, SkCanvas* canvas, unsigned int* pictureUsed) { m_layerLock.lock(); |