OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "mojo/examples/surfaces_app/child_impl.h" | 5 #include "mojo/examples/surfaces_app/child_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "cc/output/compositor_frame.h" | 8 #include "cc/output/compositor_frame.h" |
9 #include "cc/output/delegated_frame_data.h" | 9 #include "cc/output/delegated_frame_data.h" |
10 #include "cc/quads/render_pass.h" | 10 #include "cc/quads/render_pass.h" |
11 #include "cc/quads/solid_color_draw_quad.h" | 11 #include "cc/quads/solid_color_draw_quad.h" |
| 12 #include "mojo/converters/geometry/geometry_type_converters.h" |
| 13 #include "mojo/converters/surfaces/surfaces_type_converters.h" |
12 #include "mojo/examples/surfaces_app/surfaces_util.h" | 14 #include "mojo/examples/surfaces_app/surfaces_util.h" |
13 #include "mojo/public/cpp/application/application_connection.h" | 15 #include "mojo/public/cpp/application/application_connection.h" |
14 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" | |
15 #include "mojo/services/public/cpp/surfaces/surfaces_type_converters.h" | |
16 #include "mojo/services/public/interfaces/surfaces/surface_id.mojom.h" | 16 #include "mojo/services/public/interfaces/surfaces/surface_id.mojom.h" |
17 #include "mojo/services/public/interfaces/surfaces/surfaces.mojom.h" | 17 #include "mojo/services/public/interfaces/surfaces/surfaces.mojom.h" |
18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
19 #include "ui/gfx/transform.h" | 19 #include "ui/gfx/transform.h" |
20 | 20 |
21 namespace mojo { | 21 namespace mojo { |
22 namespace examples { | 22 namespace examples { |
23 | 23 |
24 using cc::RenderPass; | 24 using cc::RenderPass; |
25 using cc::RenderPassId; | 25 using cc::RenderPassId; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 scoped_ptr<CompositorFrame> frame(new CompositorFrame); | 91 scoped_ptr<CompositorFrame> frame(new CompositorFrame); |
92 frame->delegated_frame_data = delegated_frame_data.Pass(); | 92 frame->delegated_frame_data = delegated_frame_data.Pass(); |
93 | 93 |
94 surface_->SubmitFrame(mojo::SurfaceId::From(id_), | 94 surface_->SubmitFrame(mojo::SurfaceId::From(id_), |
95 mojo::Frame::From(*frame)); | 95 mojo::Frame::From(*frame)); |
96 produce_callback_.Run(SurfaceId::From(id_)); | 96 produce_callback_.Run(SurfaceId::From(id_)); |
97 } | 97 } |
98 | 98 |
99 } // namespace examples | 99 } // namespace examples |
100 } // namespace mojo | 100 } // namespace mojo |
OLD | NEW |