diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-12-23 16:05:08 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2011-12-29 15:03:50 -0800 |
commit | 7eb17b2e00c46869b21bf5795fd9cdc93fca98e7 (patch) | |
tree | 1e702c081a53af4d0dc0d4602a12a334c44e2fb0 /Source/WebCore/platform/graphics/android/GLWebViewState.cpp | |
parent | 8abedfb0681eb18f62137fffde000a9dbb75c4d2 (diff) | |
download | external_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.cpp | 2 |
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(); } |