diff options
author | Chris Craik <ccraik@google.com> | 2011-09-23 16:21:40 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2011-09-23 16:23:39 -0700 |
commit | 874e5fbe3113052b0e3b7068d4b8df89bdeb4579 (patch) | |
tree | ee5556f22842c8ab693eb38176186361103958ec /Source/WebCore/platform | |
parent | 7a93ab421d2efc4dbc1061e52cfb381ae59b7219 (diff) | |
download | external_webkit-874e5fbe3113052b0e3b7068d4b8df89bdeb4579.zip external_webkit-874e5fbe3113052b0e3b7068d4b8df89bdeb4579.tar.gz external_webkit-874e5fbe3113052b0e3b7068d4b8df89bdeb4579.tar.bz2 |
Crash if stack is corrupted
bug:5362098
For tracking down very rare, very wrong scale values
Change-Id: I00a5dd8d75c47c4c13c903e587b3983ea23496d7
Diffstat (limited to 'Source/WebCore/platform')
-rw-r--r-- | Source/WebCore/platform/graphics/android/GLWebViewState.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp index 9e0b3a9..cd93f36 100644 --- a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp +++ b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp @@ -569,8 +569,10 @@ bool GLWebViewState::drawGL(IntRect& rect, SkRect& viewport, IntRect* invalRect, // the BaseTiles' texture. TilesManager::instance()->transferQueue()->updateDirtyBaseTiles(); - if (scale < MIN_SCALE_WARNING || scale > MAX_SCALE_WARNING) + if (scale < MIN_SCALE_WARNING || scale > MAX_SCALE_WARNING) { XLOGC("WARNING, scale seems corrupted after update: %e", scale); + CRASH(); + } // gather the textures we can use TilesManager::instance()->gatherLayerTextures(); |