summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2014-12-19 16:25:23 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2014-12-19 17:52:59 +0900
commit3860bff1013f9608b934c4cdb9ddb8d2dbbc3e52 (patch)
tree9748262dfd061c055a435ed85957c76d77cf74f5 /android
parent96a498b44c0a0ca48ac9938d9414191850d47d18 (diff)
android: never use TextureView for now (for performance reasons)
Get align with latest Fennec code which also has this disabled. Change-Id: Ie4c27935bacd29218207e47593f073bdce0cf7e3
Diffstat (limited to 'android')
-rw-r--r--android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/LayerView.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/LayerView.java b/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/LayerView.java
index db5c11062a32..b59bba888300 100644
--- a/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/LayerView.java
+++ b/android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/LayerView.java
@@ -40,7 +40,7 @@ import java.nio.IntBuffer;
* Note that LayerView is accessed by Robocop via reflection.
*/
public class LayerView extends FrameLayout {
- private static String LOGTAG = "GeckoLayerView";
+ private static String LOGTAG = LayerView.class.getName();
private GeckoLayerClient mLayerClient;
private TouchEventHandler mTouchEventHandler;
@@ -65,7 +65,7 @@ public class LayerView extends FrameLayout {
boolean shouldUseTextureView() {
// we can only use TextureView on ICS or higher
- if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
+ /*if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
Log.i(LOGTAG, "Not using TextureView: not on ICS+");
return false;
}
@@ -77,7 +77,8 @@ public class LayerView extends FrameLayout {
} catch (Exception e) {
Log.i(LOGTAG, "Not using TextureView: caught exception checking for hw accel: " + e.toString());
return false;
- }
+ }*/
+ return false;
}
public LayerView(Context context, AttributeSet attrs) {