summaryrefslogtreecommitdiff
path: root/native/webview
diff options
context:
space:
mode:
authorChris Blume <cblume@google.com>2019-01-11 16:52:12 -0800
committerChris Blume <cblume@google.com>2019-01-14 14:48:46 -0800
commit1a2bdc8c65f9c4bd30033f6c931e4b637bf44d45 (patch)
tree4fa21b302a42dc8224e9df4b9e6ce80599e2433d /native/webview
parent94ae766a983bdaf5f31493f7aa604b4735725830 (diff)
Put HWUI & Webview color space in a struct
The color space parameters are currently separate members. This was making passing color space parameters to functions a bit messy. This CL puts the color space parameters into their own struct which can be cleanly passed to functions. Test: Builds locally Change-Id: I3709b88dbdedb9616d4905ee973c3099f95b3ca7
Diffstat (limited to 'native/webview')
-rw-r--r--native/webview/plat_support/draw_fn.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/native/webview/plat_support/draw_fn.h b/native/webview/plat_support/draw_fn.h
index 6afd8837594c..bb2ee9b5da04 100644
--- a/native/webview/plat_support/draw_fn.h
+++ b/native/webview/plat_support/draw_fn.h
@@ -109,8 +109,15 @@ struct AwDrawFn_DrawVkParams {
// Input: Format of the destination surface.
VkFormat format;
- // Input: Color space transformation from linear RGB to D50-adapted XYZ
- float matrix[9];
+ // Input: Color space parameters.
+ float transfer_function_g;
+ float transfer_function_a;
+ float transfer_function_b;
+ float transfer_function_c;
+ float transfer_function_d;
+ float transfer_function_e;
+ float transfer_function_f;
+ float color_space_toXYZD50[9];
// Input: current clip rect
int clip_left;