From 874e5fbe3113052b0e3b7068d4b8df89bdeb4579 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Fri, 23 Sep 2011 16:21:40 -0700 Subject: Crash if stack is corrupted bug:5362098 For tracking down very rare, very wrong scale values Change-Id: I00a5dd8d75c47c4c13c903e587b3983ea23496d7 --- Source/WebCore/platform/graphics/android/GLWebViewState.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source') 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(); -- cgit v1.1