1 // Copyright 2014 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_EXAMPLES_SURFACES_APP_EMBEDDER_H_
6 #define MOJO_EXAMPLES_SURFACES_APP_EMBEDDER_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/surfaces/surface_id.h"
10 #include "mojo/services/public/interfaces/surfaces/surfaces.mojom.h"
11 #include "ui/gfx/size.h"
14 class CompositorFrame;
19 class ApplicationConnection;
23 // Simple example of a surface embedder that embeds two other surfaces.
26 explicit Embedder(Surface* surface);
29 void SetSurfaceId(cc::SurfaceId id) { id_ = id; }
30 void ProduceFrame(cc::SurfaceId child_one,
31 cc::SurfaceId child_two,
32 const gfx::Size& child_size,
33 const gfx::Size& size,
40 DISALLOW_COPY_AND_ASSIGN(Embedder);
43 } // namespace examples
46 #endif // MOJO_EXAMPLES_SURFACES_APP_EMBEDDER_H_