Fix projection matrix for raster image drawables (#2242)

This commit is contained in:
Stefan Karschti
2024-04-17 16:11:08 +03:00
committed by GitHub
parent e53143c902
commit 6919081030
10 changed files with 219 additions and 20 deletions

View File

@@ -62,6 +62,13 @@ protected:
/// Determine whether this tweaker should apply to the given drawable
bool checkTweakDrawable(const gfx::Drawable&) const;
/// Multiplies with the projection matrix (either default, near clipped or aligned) for the given drawable
static void multiplyWithProjectionMatrix(/*in-out*/ mat4& matrix,
const PaintParameters& parameters,
const gfx::Drawable& drawable,
bool nearClipped,
bool aligned);
std::string id;
Immutable<style::LayerProperties> evaluatedProperties;