diff options
Diffstat (limited to 'services/surfaceflinger/LayerProtoHelper.cpp')
| -rw-r--r-- | services/surfaceflinger/LayerProtoHelper.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/services/surfaceflinger/LayerProtoHelper.cpp b/services/surfaceflinger/LayerProtoHelper.cpp index c94e439659..b4022704d5 100644 --- a/services/surfaceflinger/LayerProtoHelper.cpp +++ b/services/surfaceflinger/LayerProtoHelper.cpp @@ -155,5 +155,13 @@ void LayerProtoHelper::writeToProto( } } +void LayerProtoHelper::writeToProto(const mat4 matrix, ColorTransformProto* colorTransformProto) { + for (int i = 0; i < mat4::ROW_SIZE; i++) { + for (int j = 0; j < mat4::COL_SIZE; j++) { + colorTransformProto->add_val(matrix[i][j]); + } + } +} + } // namespace surfaceflinger } // namespace android |