summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/nav/WebView.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-11-21 21:07:35 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-21 21:07:35 -0800
commitbe5a48f03761c980b096111d62e9ca03624e8364 (patch)
tree14aacc0c566f83ccf7160ec3df617e07d1b945fd /Source/WebKit/android/nav/WebView.cpp
parent96309385b22eca3b1ff3eb9d30bea0958ce47875 (diff)
parentbd996ca3728f985d3fee81471268643ca772ed40 (diff)
downloadexternal_webkit-be5a48f03761c980b096111d62e9ca03624e8364.zip
external_webkit-be5a48f03761c980b096111d62e9ca03624e8364.tar.gz
external_webkit-be5a48f03761c980b096111d62e9ca03624e8364.tar.bz2
am bd996ca3: Merge "Use isHighEndGfx to double textures" into ics-mr1
* commit 'bd996ca3728f985d3fee81471268643ca772ed40': Use isHighEndGfx to double textures
Diffstat (limited to 'Source/WebKit/android/nav/WebView.cpp')
-rw-r--r--Source/WebKit/android/nav/WebView.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp
index a02138a..3ce623e 100644
--- a/Source/WebKit/android/nav/WebView.cpp
+++ b/Source/WebKit/android/nav/WebView.cpp
@@ -146,8 +146,10 @@ struct JavaGlue {
}
} m_javaGlue;
-WebView(JNIEnv* env, jobject javaWebView, int viewImpl, WTF::String drawableDir) :
+WebView(JNIEnv* env, jobject javaWebView, int viewImpl, WTF::String drawableDir,
+ bool isHighEndGfx) :
m_ring((WebViewCore*) viewImpl)
+ , m_isHighEndGfx(isHighEndGfx)
{
jclass clazz = env->FindClass("android/webkit/WebView");
// m_javaGlue = new JavaGlue;
@@ -451,6 +453,7 @@ bool drawGL(WebCore::IntRect& viewRect, WebCore::IntRect* invalRect,
if (!m_glWebViewState) {
m_glWebViewState = new GLWebViewState();
+ m_glWebViewState->setHighEndGfx(m_isHighEndGfx);
m_glWebViewState->glExtras()->setCursorRingExtra(&m_ring);
m_glWebViewState->glExtras()->setFindOnPageExtra(&m_findOnPage);
if (m_baseLayer->content()) {
@@ -1539,6 +1542,7 @@ private: // local state for WebView
#endif
RenderSkinButton* m_buttonSkin;
SkRect m_visibleRect;
+ bool m_isHighEndGfx;
}; // end of WebView class
@@ -1659,10 +1663,11 @@ static void nativeClearCursor(JNIEnv *env, jobject obj)
view->clearCursor();
}
-static void nativeCreate(JNIEnv *env, jobject obj, int viewImpl, jstring drawableDir)
+static void nativeCreate(JNIEnv *env, jobject obj, int viewImpl,
+ jstring drawableDir, jboolean isHighEndGfx)
{
WTF::String dir = jstringToWtfString(env, drawableDir);
- WebView* webview = new WebView(env, obj, viewImpl, dir);
+ WebView* webview = new WebView(env, obj, viewImpl, dir, isHighEndGfx);
// NEED THIS OR SOMETHING LIKE IT!
//Release(obj);
}
@@ -2698,7 +2703,7 @@ static JNINativeMethod gJavaWebViewMethods[] = {
(void*) nativeCacheHitNodePointer },
{ "nativeClearCursor", "()V",
(void*) nativeClearCursor },
- { "nativeCreate", "(ILjava/lang/String;)V",
+ { "nativeCreate", "(ILjava/lang/String;Z)V",
(void*) nativeCreate },
{ "nativeCursorFramePointer", "()I",
(void*) nativeCursorFramePointer },