mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Issue #1053 - Remove mobile-specific graphics "optimizations" (=compromises)
This commit is contained in:
parent
9985a44c41
commit
1feafdc819
21 changed files with 0 additions and 193 deletions
|
|
@ -6275,14 +6275,8 @@ ContainerState::CreateMaskLayer(Layer *aLayer,
|
|||
|
||||
uint32_t maxSize = mManager->GetMaxTextureSize();
|
||||
NS_ASSERTION(maxSize > 0, "Invalid max texture size");
|
||||
#ifdef MOZ_GFX_OPTIMIZE_MOBILE
|
||||
// Make mask image width aligned to 4. See Bug 1245552.
|
||||
gfx::Size surfaceSize(std::min<gfx::Float>(GetAlignedStride<4>(NSToIntCeil(boundingRect.Width()), 1), maxSize),
|
||||
std::min<gfx::Float>(boundingRect.Height(), maxSize));
|
||||
#else
|
||||
gfx::Size surfaceSize(std::min<gfx::Float>(boundingRect.Width(), maxSize),
|
||||
std::min<gfx::Float>(boundingRect.Height(), maxSize));
|
||||
#endif
|
||||
|
||||
// maskTransform is applied to the clip when it is painted into the mask (as a
|
||||
// component of imageTransform), and its inverse used when the mask is used for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue