Chromium Code Reviews| Index: cc/ipc/quads_struct_traits.h |
| diff --git a/cc/ipc/quads_struct_traits.h b/cc/ipc/quads_struct_traits.h |
| index ed602beb8f1aed81776fde2c93b702e2fca5fa19..f4bcc884793e59eeb31f101d9e0318b91cc1afc8 100644 |
| --- a/cc/ipc/quads_struct_traits.h |
| +++ b/cc/ipc/quads_struct_traits.h |
| @@ -386,6 +386,12 @@ struct StructTraits<cc::mojom::YUVVideoQuadState, cc::DrawQuad> { |
| return quad->resource_multiplier; |
| } |
| + static float bits_per_channel(const cc::DrawQuad& input) { |
|
dcheng
2016/07/28 01:54:26
Isn't this a uint32 / int?
|
| + const cc::YUVVideoDrawQuad* quad = |
| + cc::YUVVideoDrawQuad::MaterialCast(&input); |
| + return quad->bits_per_channel; |
| + } |
| + |
| static bool Read(cc::mojom::YUVVideoQuadStateDataView data, |
| cc::DrawQuad* out); |
| }; |