Index: mojo/converters/surfaces/surfaces_type_converters.h |
diff --git a/mojo/converters/surfaces/surfaces_type_converters.h b/mojo/converters/surfaces/surfaces_type_converters.h |
index 0ce9ddbe9cce690e84d1845eed571287298ace51..1699d151ef93594618555bbeeb8b5c078fac6a45 100644 |
--- a/mojo/converters/surfaces/surfaces_type_converters.h |
+++ b/mojo/converters/surfaces/surfaces_type_converters.h |
@@ -19,6 +19,7 @@ |
namespace cc { |
class CompositorFrame; |
+class CompositorFrameMetadata; |
class DrawQuad; |
class RenderPass; |
class RenderPassId; |
@@ -72,6 +73,7 @@ TypeConverter<SharedQuadStatePtr, cc::SharedQuadState> { |
scoped_ptr<cc::RenderPass> ConvertToRenderPass( |
const mojo::PassPtr& input, |
+ const mojo::CompositorFrameMetadataPtr& metadata, |
CustomSurfaceConverter* custom_converter); |
template <> |
@@ -153,6 +155,19 @@ struct MOJO_SURFACES_EXPORT |
const Array<ReturnedResourcePtr>& input); |
}; |
+template <> |
+struct MOJO_SURFACES_EXPORT |
+ TypeConverter<CompositorFrameMetadataPtr, cc::CompositorFrameMetadata> { |
+ static CompositorFrameMetadataPtr Convert( |
+ const cc::CompositorFrameMetadata& input); |
+}; |
+template <> |
+struct MOJO_SURFACES_EXPORT |
+ TypeConverter<cc::CompositorFrameMetadata, CompositorFrameMetadataPtr> { |
+ static cc::CompositorFrameMetadata Convert( |
+ const CompositorFrameMetadataPtr& input); |
+}; |
+ |
scoped_ptr<cc::CompositorFrame> ConvertToCompositorFrame( |
const mojo::CompositorFramePtr& input, |
CustomSurfaceConverter* custom_converter); |