diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/android/rendering/TileGrid.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/android/rendering/TileGrid.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/TileGrid.cpp b/Source/WebCore/platform/graphics/android/rendering/TileGrid.cpp index f8510bb..3d63f09 100644 --- a/Source/WebCore/platform/graphics/android/rendering/TileGrid.cpp +++ b/Source/WebCore/platform/graphics/android/rendering/TileGrid.cpp @@ -275,6 +275,15 @@ Tile* TileGrid::getTile(int x, int y) return 0; } +unsigned int TileGrid::getImageTextureId() +{ + if (m_tiles.size() == 1) { + if (m_tiles[0]->frontTexture()) + return m_tiles[0]->frontTexture()->m_ownTextureId; + } + return 0; +} + int TileGrid::nbTextures(const IntRect& area, float scale) { IntRect tileBounds = computeTilesArea(area, scale); |