Hook up transforms to SkiaRE
There are 2 types of transforms that we need to consider:
- Display transforms: for outputs with different sizes and translations
- Layer transforms: used for scaling and translating individual layers
Screen rotation has not been addressed by this CL.
Test: visual
Test: atest LayerTypeAndRenderTypeTransactionTest
Bug: 164223050
Change-Id: I9d6a65bdd1ceaff2cdc9c501cd66f3a1cdcb3691
diff --git a/libs/renderengine/skia/SkiaGLRenderEngine.h b/libs/renderengine/skia/SkiaGLRenderEngine.h
index b5c4a1e..7103bbd 100644
--- a/libs/renderengine/skia/SkiaGLRenderEngine.h
+++ b/libs/renderengine/skia/SkiaGLRenderEngine.h
@@ -61,6 +61,7 @@
static EGLSurface createPlaceholderEglPbufferSurface(EGLDisplay display, EGLConfig config,
int hwcFormat, Protection protection);
inline SkRRect getRoundedRect(const LayerSettings* layer);
+ inline SkM44 getSkM44(const mat4& matrix);
base::unique_fd flush();
bool waitFence(base::unique_fd fenceFd);