1 // Copyright 2015 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.
5 #ifndef MOJO_CONVERTERS_SURFACES_CUSTOM_SURFACE_CONVERTER_H_
6 #define MOJO_CONVERTERS_SURFACES_CUSTOM_SURFACE_CONVERTER_H_
10 class SharedQuadState
;
15 // Classes that inherit from this converter can override the default behavior
16 // for converting a mojo::SurfaceDrawState to something cc understands.
17 class CustomSurfaceConverter
{
19 virtual bool ConvertSurfaceDrawQuad(
21 const CompositorFrameMetadataPtr
& metadata
,
22 cc::SharedQuadState
* sqs
,
23 cc::RenderPass
* render_pass
) = 0;
26 virtual ~CustomSurfaceConverter() {}
31 #endif // MOJO_CONVERTERS_SURFACES_CUSTOM_SURFACE_CONVERTER_H_