diff options
author | John Reck <jreck@google.com> | 2011-11-21 09:17:33 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-11-21 13:31:21 -0800 |
commit | 55b4bdbd661ac94fd05ab40de08250bf242d5346 (patch) | |
tree | f9ed88ef0db8ad18c541816e3a60ccae411955f7 /Source/WebKit/android/nav/WebView.cpp | |
parent | 59b140f3e2721433929e11087d0fdb626afb1a72 (diff) | |
download | external_webkit-55b4bdbd661ac94fd05ab40de08250bf242d5346.zip external_webkit-55b4bdbd661ac94fd05ab40de08250bf242d5346.tar.gz external_webkit-55b4bdbd661ac94fd05ab40de08250bf242d5346.tar.bz2 |
Use isHighEndGfx to double textures
Bug: 5639612
Change-Id: I308f6fbb8208a0d2e83f2b6d285d4c471137a0e7
Diffstat (limited to 'Source/WebKit/android/nav/WebView.cpp')
-rw-r--r-- | Source/WebKit/android/nav/WebView.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/WebKit/android/nav/WebView.cpp b/Source/WebKit/android/nav/WebView.cpp index c917a6c..13346b3 100644 --- a/Source/WebKit/android/nav/WebView.cpp +++ b/Source/WebKit/android/nav/WebView.cpp @@ -149,8 +149,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; @@ -454,6 +456,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()) { @@ -1542,6 +1545,7 @@ private: // local state for WebView #endif RenderSkinButton* m_buttonSkin; SkRect m_visibleRect; + bool m_isHighEndGfx; }; // end of WebView class @@ -1662,10 +1666,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); } @@ -2708,7 +2713,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 }, |