From 7998175fda28e4a068a341e3595d26791130ee24 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath <nathbap...@gmail.com> Date: Thu, 17 Oct 2024 05:30:52 +0000 Subject: [PATCH 1/2] headers: Add IDCompositionColorMatrixEffect definition in dcomp.h
Required for https://github.com/mozilla/gecko-dev/blob/682dc9b94432fcb67f1844650ce380851d64ebbe/gfx/webrender_bindings/DCLayerTree.cpp#L2308 Signed-off-by: Biswapriyo Nath <nathbap...@gmail.com> --- mingw-w64-headers/include/dcomp.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/dcomp.h b/mingw-w64-headers/include/dcomp.h index 21010f7..6db10af 100644 --- a/mingw-w64-headers/include/dcomp.h +++ b/mingw-w64-headers/include/dcomp.h @@ -574,6 +574,27 @@ __CRT_UUID_DECL(IDCompositionGaussianBlurEffect,0x45d4d0b7,0x1bd4,0x454e,0x88,0x #endif +#undef INTERFACE +#define INTERFACE IDCompositionColorMatrixEffect +DECLARE_INTERFACE_IID_(IDCompositionColorMatrixEffect, IDCompositionFilterEffect, "C1170A22-3CE2-4966-90D4-55408BFC84C4") +{ + STDMETHOD(SetMatrix)(THIS_ const D2D1_MATRIX_5X4_F &matrix) PURE; +#if defined(_MSC_VER) && defined(__cplusplus) + STDMETHOD(SetMatrixElement)(THIS_ int row, int column, float value) PURE; + STDMETHOD(SetMatrixElement)(THIS_ int row, int column, IDCompositionAnimation *animation) PURE; +#else + STDMETHOD(SetMatrixElement)(THIS_ int row, int column, IDCompositionAnimation *animation) PURE; + STDMETHOD(SetMatrixElement)(THIS_ int row, int column, float value) PURE; +#endif + STDMETHOD(SetAlphaMode)(THIS_ D2D1_COLORMATRIX_ALPHA_MODE mode) PURE; + STDMETHOD(SetClampOutput)(THIS_ BOOL clamp) PURE; +}; + +#ifdef __CRT_UUID_DECL +__CRT_UUID_DECL(IDCompositionColorMatrixEffect,0xc1170a22,0x3ce2,0x4966,0x90,0xd4,0x55,0x40,0x8b,0xfc,0x84,0xc4); +#endif + + /* WARNING: some of the arguments are replaced with void*, only what's used has been kept */ #undef INTERFACE #define INTERFACE IDCompositionDevice3 @@ -581,7 +602,7 @@ DECLARE_INTERFACE_IID_(IDCompositionDevice3, IDCompositionDevice2, "0987CB06-F91 { STDMETHOD(CreateGaussianBlurEffect)(THIS_ IDCompositionGaussianBlurEffect **gaussianBlurEffect) PURE; STDMETHOD(CreateBrightnessEffect)(THIS_ /* TODO IDCompositionBrightnessEffect */ void **brightnessEffect) PURE; - STDMETHOD(CreateColorMatrixEffect)(THIS_ /* TODO IDCompositionColorMatrixEffect */ void **colorMatrixEffect) PURE; + STDMETHOD(CreateColorMatrixEffect)(THIS_ IDCompositionColorMatrixEffect **colorMatrixEffect) PURE; STDMETHOD(CreateShadowEffect)(THIS_ /* TODO IDCompositionShadowEffect */ void **shadowEffect) PURE; STDMETHOD(CreateHueRotationEffect)(THIS_ /* IDCompositionHueRotationEffect */ void **hueRotationEffect) PURE; STDMETHOD(CreateSaturationEffect)(THIS_ IDCompositionSaturationEffect **saturationEffect) PURE; -- 2.47.0
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public