mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 767980 - Disable TextureView support in LayerView for now (r=snorp)
This commit is contained in:
parent
09fdfe3684
commit
929920a351
@ -64,6 +64,12 @@ public class LayerView extends FrameLayout {
|
|||||||
public static final int PAINT_AFTER_FIRST = 1;
|
public static final int PAINT_AFTER_FIRST = 1;
|
||||||
|
|
||||||
boolean shouldUseTextureView() {
|
boolean shouldUseTextureView() {
|
||||||
|
// Disable TextureView support for now as it causes panning/zooming
|
||||||
|
// performance regressions (see bug 792259). Uncomment the code below
|
||||||
|
// once this bug is fixed.
|
||||||
|
return false;
|
||||||
|
|
||||||
|
/*
|
||||||
// we can only use TextureView on ICS or higher
|
// 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+");
|
Log.i(LOGTAG, "Not using TextureView: not on ICS+");
|
||||||
@ -77,7 +83,7 @@ public class LayerView extends FrameLayout {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.i(LOGTAG, "Not using TextureView: caught exception checking for hw accel: " + e.toString());
|
Log.i(LOGTAG, "Not using TextureView: caught exception checking for hw accel: " + e.toString());
|
||||||
return false;
|
return false;
|
||||||
}
|
} */
|
||||||
}
|
}
|
||||||
|
|
||||||
public LayerView(Context context, AttributeSet attrs) {
|
public LayerView(Context context, AttributeSet attrs) {
|
||||||
|
Loading…
Reference in New Issue
Block a user