| 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 "examples/surfaces_app/embedder.h" | 5 #include "examples/surfaces_app/embedder.h" |
| 6 | 6 |
| 7 #include "cc/output/compositor_frame.h" | 7 #include "cc/output/compositor_frame.h" |
| 8 #include "cc/output/delegated_frame_data.h" | 8 #include "cc/output/delegated_frame_data.h" |
| 9 #include "cc/quads/render_pass.h" | 9 #include "cc/quads/render_pass.h" |
| 10 #include "cc/quads/solid_color_draw_quad.h" | 10 #include "cc/quads/solid_color_draw_quad.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 rect, | 82 rect, |
| 83 SK_ColorYELLOW, | 83 SK_ColorYELLOW, |
| 84 force_anti_aliasing_off); | 84 force_anti_aliasing_off); |
| 85 | 85 |
| 86 scoped_ptr<DelegatedFrameData> delegated_frame_data(new DelegatedFrameData); | 86 scoped_ptr<DelegatedFrameData> delegated_frame_data(new DelegatedFrameData); |
| 87 delegated_frame_data->render_pass_list.push_back(pass.Pass()); | 87 delegated_frame_data->render_pass_list.push_back(pass.Pass()); |
| 88 | 88 |
| 89 scoped_ptr<CompositorFrame> frame(new CompositorFrame); | 89 scoped_ptr<CompositorFrame> frame(new CompositorFrame); |
| 90 frame->delegated_frame_data = delegated_frame_data.Pass(); | 90 frame->delegated_frame_data = delegated_frame_data.Pass(); |
| 91 | 91 |
| 92 surface_->SubmitFrame(mojo::SurfaceId::From(id_), | 92 surface_->SubmitFrame(mojo::SurfaceId::From(id_), mojo::Frame::From(*frame), |
| 93 mojo::Frame::From(*frame)); | 93 mojo::Closure()); |
| 94 } | 94 } |
| 95 | 95 |
| 96 } // namespace examples | 96 } // namespace examples |
| 97 } // namespace mojo | 97 } // namespace mojo |
| OLD | NEW |