summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/rendering/ShaderProgram.h
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2012-04-19 14:54:31 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2012-04-20 09:33:49 -0700
commit2ac76fe4e18c3325c8b3bb8f9435fdc7b96c0aca (patch)
treee9a2ec93fffb786b8eccf3f4bdba490c769337e6 /Source/WebCore/platform/graphics/android/rendering/ShaderProgram.h
parent7ad2efca85a989d9ab57e311af605a6fed9c9925 (diff)
downloadexternal_webkit-2ac76fe4e18c3325c8b3bb8f9435fdc7b96c0aca.zip
external_webkit-2ac76fe4e18c3325c8b3bb8f9435fdc7b96c0aca.tar.gz
external_webkit-2ac76fe4e18c3325c8b3bb8f9435fdc7b96c0aca.tar.bz2
Better handle the EGL context lost situation.
Unless framework provide a better message, we can't avoid this EGL context issue totally if mis-match happen again. Clean up some obsolete code. Change-Id: Ica03daecd58f9757c8cad41e0f40d5d51b041748
Diffstat (limited to 'Source/WebCore/platform/graphics/android/rendering/ShaderProgram.h')
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/ShaderProgram.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/ShaderProgram.h b/Source/WebCore/platform/graphics/android/rendering/ShaderProgram.h
index cfdccda..d93fd89 100644
--- a/Source/WebCore/platform/graphics/android/rendering/ShaderProgram.h
+++ b/Source/WebCore/platform/graphics/android/rendering/ShaderProgram.h
@@ -153,7 +153,7 @@ public:
m_contrast = contrast;
}
void setGLDrawInfo(const android::uirenderer::DrawGlInfo* info);
-
+ void forceNeedsInit() { m_needsInit = true; }
bool needsInit() { return m_needsInit; }
bool usePointSampling(float tileScale, const TransformationMatrix* layerTransform);