Chromium Code Reviews| Index: cc/ipc/transferable_resource_struct_traits.h |
| diff --git a/cc/ipc/transferable_resource_struct_traits.h b/cc/ipc/transferable_resource_struct_traits.h |
| index 52aa93dac103611e9b619429963b7a514ffd1611..91df607a250365f83178d5d7dd79b14532d8fe43 100644 |
| --- a/cc/ipc/transferable_resource_struct_traits.h |
| +++ b/cc/ipc/transferable_resource_struct_traits.h |
| @@ -48,6 +48,25 @@ struct StructTraits<cc::mojom::TransferableResourceDataView, |
| return resource.is_overlay_candidate; |
| } |
| + static bool is_backed_by_surface_texture( |
| + const cc::TransferableResource& resource) { |
| +#if defined(OS_ANDROID) |
| + // TransferableResource has this in an #ifdef, but mojo doesn't leta us. |
|
dcheng
2016/12/07 03:34:50
Mind marking this with TODO(https://crbug.com/6719
liberato (no reviews please)
2016/12/07 17:38:29
done, + leta.
|
| + return resource.is_backed_by_surface_texture; |
| +#else |
| + return false; |
| +#endif |
| + } |
| + |
| + static bool wants_promotion_hint(const cc::TransferableResource& resource) { |
| +#if defined(OS_ANDROID) |
| + // TransferableResource has this in an #ifdef, but mojo doesn't leta us. |
| + return resource.wants_promotion_hint; |
| +#else |
| + return false; |
| +#endif |
| + } |
| + |
| static bool Read(cc::mojom::TransferableResourceDataView data, |
| cc::TransferableResource* out); |
| }; |