summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/GLWebViewState.cpp
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-12-23 16:05:08 -0800
committerTeng-Hui Zhu <ztenghui@google.com>2011-12-29 15:03:50 -0800
commit7eb17b2e00c46869b21bf5795fd9cdc93fca98e7 (patch)
tree1e702c081a53af4d0dc0d4602a12a334c44e2fb0 /Source/WebCore/platform/graphics/android/GLWebViewState.cpp
parent8abedfb0681eb18f62137fffde000a9dbb75c4d2 (diff)
downloadexternal_webkit-7eb17b2e00c46869b21bf5795fd9cdc93fca98e7.zip
external_webkit-7eb17b2e00c46869b21bf5795fd9cdc93fca98e7.tar.gz
external_webkit-7eb17b2e00c46869b21bf5795fd9cdc93fca98e7.tar.bz2
Clean up the internal interface for draw call
Group all the uniform location (handle) together by types. This can help to simplify the interface. There should be no functionality change here. Change-Id: I10d4e5f0157e775109fd8daed5a88eae967b506f
Diffstat (limited to 'Source/WebCore/platform/graphics/android/GLWebViewState.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/GLWebViewState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp
index a6b3d11..89f1d27 100644
--- a/Source/WebCore/platform/graphics/android/GLWebViewState.cpp
+++ b/Source/WebCore/platform/graphics/android/GLWebViewState.cpp
@@ -354,7 +354,7 @@ double GLWebViewState::setupDrawing(IntRect& viewRect, SkRect& visibleRect,
int height = viewRect.height();
ShaderProgram* shader = TilesManager::instance()->shader();
- if (shader->program() == -1) {
+ if (shader->needInit()) {
XLOG("Reinit shader");
shader->init();
}