TilesManager::instance()->setExpandedTileBounds(enabled);
}
+static int nativeGetBackgroundColor(JNIEnv* env, jobject obj)
+{
+ WebView* view = GET_NATIVE_VIEW(env, obj);
+ BaseLayerAndroid* baseLayer = view->getBaseLayer();
+ if (baseLayer) {
+ WebCore::Color color = baseLayer->getBackgroundColor();
+ if (color.isValid())
+ return SkColorSetARGB(color.alpha(), color.red(),
+ color.green(), color.blue());
+ }
+ return SK_ColorWHITE;
+}
+
/*
* JNI registration
*/
(void*) nativeScrollLayer },
{ "nativeSetExpandedTileBounds", "(Z)V",
(void*) nativeSetExpandedTileBounds },
+ { "nativeGetBackgroundColor", "()I",
+ (void*) nativeGetBackgroundColor },
};
int registerWebView(JNIEnv* env)