OSDN Git Service

Revert crash on bad scale - do not merge
authorBart Sears <bsears@google.com>
Wed, 9 Nov 2011 01:11:44 +0000 (17:11 -0800)
committerBart Sears <bsears@google.com>
Wed, 9 Nov 2011 01:11:44 +0000 (17:11 -0800)
bug:5367327

Cherry pick of: dc193f393a845e88f55ecf0055386fc4e4204537

Change-Id: Iea6e4a564fc003d8e2ad8e1d6d9d9b64d016e43d

Source/WebCore/platform/graphics/android/GLWebViewState.cpp

index 09e8cc4..3fb2384 100644 (file)
@@ -464,10 +464,8 @@ bool GLWebViewState::drawGL(IntRect& rect, SkRect& viewport, IntRect* invalRect,
     // TODO: upload as many textures as possible within a certain time limit
     bool ret = ImagesManager::instance()->uploadTextures();
 
-    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();