1 // Copyright 2016 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef SERVICES_VIZ_PUBLIC_CPP_COMPOSITING_FILTER_OPERATIONS_MOJOM_TRAITS_H_ 6 #define SERVICES_VIZ_PUBLIC_CPP_COMPOSITING_FILTER_OPERATIONS_MOJOM_TRAITS_H_ 7 8 #include "services/viz/public/mojom/compositing/filter_operations.mojom-shared.h" 9 10 namespace cc { 11 class FilterOperation; 12 class FilterOperations; 13 } // namespace cc 14 15 namespace mojo { 16 17 template <> 18 struct StructTraits<viz::mojom::FilterOperationsDataView, 19 cc::FilterOperations> { 20 static const std::vector<cc::FilterOperation>& operations( 21 const cc::FilterOperations& operations); 22 23 static bool Read(viz::mojom::FilterOperationsDataView data, 24 cc::FilterOperations* out); 25 }; 26 27 } // namespace mojo 28 29 #endif // SERVICES_VIZ_PUBLIC_CPP_COMPOSITING_FILTER_OPERATIONS_MOJOM_TRAITS_H_ 30