| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef EXAMPLES_SURFACES_APP_EMBEDDER_H_ |
| #define EXAMPLES_SURFACES_APP_EMBEDDER_H_ |
| #include "base/memory/scoped_ptr.h" |
| #include "cc/surfaces/surface_id.h" |
| #include "mojo/services/surfaces/public/interfaces/display.mojom.h" |
| // Simple example of a surface embedder that embeds two other surfaces. |
| explicit Embedder(Display* display); |
| void ProduceFrame(cc::SurfaceId child_one, |
| const gfx::Size& child_size, |
| bool frame_pending() const { return frame_pending_; } |
| DISALLOW_COPY_AND_ASSIGN(Embedder); |
| #endif // EXAMPLES_SURFACES_APP_EMBEDDER_H_ |