summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics
diff options
context:
space:
mode:
authorNicolas Roard <nicolas@android.com>2011-01-31 15:59:24 -0800
committerNicolas Roard <nicolas@android.com>2011-01-31 16:03:31 -0800
commit57418a2ccb53c8c182bf67f3a56146ff37b20911 (patch)
treeb5e8fb988d84e00057404001923dc5a7ea308437 /WebCore/platform/graphics
parent02e2eb47c60483f447fe94a22dbaf8c8124c32d9 (diff)
downloadexternal_webkit-57418a2ccb53c8c182bf67f3a56146ff37b20911.zip
external_webkit-57418a2ccb53c8c182bf67f3a56146ff37b20911.tar.gz
external_webkit-57418a2ccb53c8c182bf67f3a56146ff37b20911.tar.bz2
Remove unnecessary scissor call (framework does that for us)
Change-Id: Ic6e610df98b055dafb63dd0afddb13a8f9abbe44
Diffstat (limited to 'WebCore/platform/graphics')
-rw-r--r--WebCore/platform/graphics/android/BaseLayerAndroid.cpp4
1 files changed, 0 insertions, 4 deletions
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;