summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-10-14 13:06:55 -0700
committerJohn Reck <jreck@google.com>2011-10-14 13:38:53 -0700
commit3775023f825fe036aa63878bf80bc1f7400b26f4 (patch)
tree6ad799eab09253091409468c7b5c13f68bbaa9ba
parent4520f40c217eca38e19654c0d5e7c987ab07bb9a (diff)
downloadexternal_webkit-3775023f825fe036aa63878bf80bc1f7400b26f4.zip
external_webkit-3775023f825fe036aa63878bf80bc1f7400b26f4.tar.gz
external_webkit-3775023f825fe036aa63878bf80bc1f7400b26f4.tar.bz2
Fix clipping
Bug: 5282993 Change-Id: Ia47c420d867d3aaed8a8ea6f91285cb3b634d970
-rw-r--r--Source/WebCore/platform/graphics/android/GLExtras.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLExtras.cpp b/Source/WebCore/platform/graphics/android/GLExtras.cpp
index 540ca16..c6cb7f3 100644
--- a/Source/WebCore/platform/graphics/android/GLExtras.cpp
+++ b/Source/WebCore/platform/graphics/android/GLExtras.cpp
@@ -202,15 +202,8 @@ void GLExtras::drawFindOnPage(SkRect& viewport)
void GLExtras::drawGL(IntRect& webViewRect, SkRect& viewport, int titleBarHeight)
{
if (m_drawExtra) {
- // Update the clip. We want to use the screen clip
- FloatRect glclip;
- glclip.setX(webViewRect.x());
- glclip.setY(webViewRect.y() + titleBarHeight);
- glclip.setWidth(webViewRect.width());
- glclip.setHeight(webViewRect.height());
- XLOG("Setting clip [%fx%f, %f, %f]", glclip.x(), glclip.y(),
- glclip.width(), glclip.height());
- TilesManager::instance()->shader()->clip(glclip);
+ // TODO: Support clipping
+ glDisable(GL_SCISSOR_TEST);
if (m_drawExtra == m_ring)
drawCursorRings();
else if (m_drawExtra == m_findOnPage)
@@ -218,5 +211,6 @@ void GLExtras::drawGL(IntRect& webViewRect, SkRect& viewport, int titleBarHeight
else
XLOGC("m_drawExtra %p is unknown! (cursor: %p, find: %p",
m_drawExtra, m_ring, m_findOnPage);
+ glEnable(GL_SCISSOR_TEST);
}
}