From d30f6301a4ea49037d31781bb238a4230c4c1389 Mon Sep 17 00:00:00 2001 From: Nicolas Roard Date: Thu, 6 Oct 2011 18:50:02 -0700 Subject: Fix inverted mode rendering The GPU texture upload workaround broke it, as we are not using the Shaders when doing the copy. Adding some code to instead use a final shader that can be either normal or inverted, on demand. bug:5424589 Change-Id: If845233e12c65738925fbc81b21f1dc0fd38546e --- Source/WebCore/platform/graphics/android/GLWebViewState.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'Source/WebCore/platform/graphics/android/GLWebViewState.cpp') diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp index 09c647b..c273c5c 100644 --- a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp +++ b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp @@ -515,8 +515,6 @@ double GLWebViewState::setupDrawing(IntRect& viewRect, SkRect& visibleRect, XLOG("Reinit shader"); shader->init(); } - glUseProgram(shader->program()); - glUniform1i(shader->textureSampler(), 0); shader->setViewRect(viewRect); shader->setViewport(visibleRect); shader->setWebViewRect(webViewRect); -- cgit v1.1