Allow child layers to inherit color transform from their parent

The current implementation only uses the current layers color transform.
However, with the hierarchy structure, children should also inherit the color
transform set on their parent.

Test: SetColorTransformOnParent, SetColorTransformOnChildAndParent
Bug: 117408368
Change-Id: Ica539cefcde92203dd9ead0a732ee44a16978be0
diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h
index 687fc0a..270c15a 100644
--- a/services/surfaceflinger/Layer.h
+++ b/services/surfaceflinger/Layer.h
@@ -290,7 +290,7 @@
     bool attachChildren();
     bool isLayerDetached() const { return mLayerDetached; }
     virtual bool setColorTransform(const mat4& matrix);
-    virtual const mat4& getColorTransform() const;
+    virtual mat4 getColorTransform() const;
     virtual bool hasColorTransform() const;
 
     // Used only to set BufferStateLayer state