mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1869353 - Add a pref to disable Android SurfaceControl rendering path. r=geckoview-reviewers,jonalmeida
Differential Revision: https://phabricator.services.mozilla.com/D196069
This commit is contained in:
parent
53a6546034
commit
69bcb46e73
@ -15859,6 +15859,12 @@
|
|||||||
#endif
|
#endif
|
||||||
mirror: always
|
mirror: always
|
||||||
|
|
||||||
|
# Whether to render in to a child SurfaceControl rather than directly into the SurfaceView
|
||||||
|
- name: widget.android.use-surfacecontrol
|
||||||
|
type: bool
|
||||||
|
value: true
|
||||||
|
mirror: once
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
# Prefs starting with "zoom."
|
# Prefs starting with "zoom."
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
@ -1290,8 +1290,10 @@ class LayerViewSupport final
|
|||||||
mY = aY;
|
mY = aY;
|
||||||
mWidth = aWidth;
|
mWidth = aWidth;
|
||||||
mHeight = aHeight;
|
mHeight = aHeight;
|
||||||
mSurfaceControl =
|
if (StaticPrefs::widget_android_use_surfacecontrol_AtStartup()) {
|
||||||
java::sdk::SurfaceControl::GlobalRef::From(aSurfaceControl);
|
mSurfaceControl =
|
||||||
|
java::sdk::SurfaceControl::GlobalRef::From(aSurfaceControl);
|
||||||
|
}
|
||||||
if (mSurfaceControl) {
|
if (mSurfaceControl) {
|
||||||
// When using SurfaceControl, we create a child Surface to render in to
|
// When using SurfaceControl, we create a child Surface to render in to
|
||||||
// rather than rendering directly in to the Surface provided by the
|
// rather than rendering directly in to the Surface provided by the
|
||||||
|
Loading…
Reference in New Issue
Block a user