mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 16:37:31 +09:00
WebRender preference (gfx.webrender.enable, false by default)
This commit is contained in:
parent
312a33d27f
commit
1190eb1c6a
3 changed files with 7 additions and 1 deletions
|
|
@ -14,6 +14,7 @@
|
|||
#include "mozilla/layers/CompositorTypes.h" // for DiagnosticFlags::COLOR
|
||||
#include "mozilla/layers/Effects.h" // for Effect, EffectChain, etc
|
||||
#include "mozilla/mozalloc.h" // for operator delete, etc
|
||||
#include "gfxPrefs.h" // for gfxPrefs::WebRenderEnabled
|
||||
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
|
@ -34,7 +35,7 @@ ColorLayerComposite::RenderLayer(const IntRect& aClipRect)
|
|||
// Masked or 3D layers continue through the established effect path until
|
||||
// equivalent WebRender primitives are available for those cases.
|
||||
CompositorOGL* compositorOGL = mCompositor->AsCompositorOGL();
|
||||
if (compositorOGL &&
|
||||
if (gfxPrefs::WebRenderEnabled() && compositorOGL &&
|
||||
!effectChain.mSecondaryEffects[EffectTypes::MASK] &&
|
||||
GetEffectiveMixBlendMode() == CompositionOp::OP_OVER &&
|
||||
transform.Is2D() && !clipRect.IsEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue