OSDN Git Service

Fix layer tile allocation to be more consistent, less disco
authorChris Craik <ccraik@google.com>
Mon, 12 Sep 2011 22:49:36 +0000 (15:49 -0700)
committerChris Craik <ccraik@google.com>
Tue, 13 Sep 2011 01:05:37 +0000 (18:05 -0700)
commit808dc42f1e6a574778bc9e8bd41beb7bd9aef06f
tree8b03f06ff3cfe5941db0dc43fcb4834e4e9c7e5c
parent870be3d940e9e567cf40c446b52fe6fc691378fa
Fix layer tile allocation to be more consistent, less disco

bug:5290559

Two major things:

* Avoid swapping front/back textures before the textures have been blitted to
  avoid race condition where blit fails because it doesn't see a back texture

* Don't allow a tile to acquire its front texture to paint into, as the
  acquisition logic doesn't handle this.

Change-Id: I84b59396ca9faaf3ddc7c75b6f66e4736bf4c3cf
Source/WebCore/platform/graphics/android/BaseTile.cpp
Source/WebCore/platform/graphics/android/BaseTile.h
Source/WebCore/platform/graphics/android/BaseTileTexture.cpp
Source/WebCore/platform/graphics/android/TilesManager.cpp