From 57418a2ccb53c8c182bf67f3a56146ff37b20911 Mon Sep 17 00:00:00 2001 From: Nicolas Roard Date: Mon, 31 Jan 2011 15:59:24 -0800 Subject: Remove unnecessary scissor call (framework does that for us) Change-Id: Ic6e610df98b055dafb63dd0afddb13a8f9abbe44 --- WebCore/platform/graphics/android/BaseLayerAndroid.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'WebCore/platform/graphics') diff --git a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp index 58091ce..d7ea5e6 100644 --- a/WebCore/platform/graphics/android/BaseLayerAndroid.cpp +++ b/WebCore/platform/graphics/android/BaseLayerAndroid.cpp @@ -265,9 +265,6 @@ bool BaseLayerAndroid::drawGL(IntRect& viewRect, SkRect& visibleRect, XLOG("drawBasePicture drawGL() viewRect: %d, %d, %d, %d", left, top, width, height); - glEnable(GL_SCISSOR_TEST); - - glScissor(left, top, width, height); glClearColor((float)m_color.red() / 255.0, (float)m_color.green() / 255.0, (float)m_color.blue() / 255.0, 1); @@ -336,7 +333,6 @@ bool BaseLayerAndroid::drawGL(IntRect& viewRect, SkRect& visibleRect, } else { TilesManager::instance()->cleanupLayersTextures(0); } - glDisable(GL_SCISSOR_TEST); glBindBuffer(GL_ARRAY_BUFFER, 0); m_previousVisible = visibleRect; -- cgit v1.1