Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: examples/surfaces_app/child_impl.cc

Issue 1394303004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 3). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_2-x-no_public_1
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « examples/surfaces_app/child_impl.h ('k') | examples/surfaces_app/embedder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/child_impl.h" 5 #include "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 "examples/surfaces_app/surfaces_util.h" 12 #include "examples/surfaces_app/surfaces_util.h"
13 #include "mojo/converters/geometry/geometry_type_converters.h" 13 #include "mojo/converters/geometry/geometry_type_converters.h"
14 #include "mojo/converters/surfaces/surfaces_type_converters.h" 14 #include "mojo/converters/surfaces/surfaces_type_converters.h"
15 #include "mojo/public/cpp/application/application_connection.h" 15 #include "mojo/public/cpp/application/application_connection.h"
16 #include "mojo/services/surfaces/public/interfaces/surface_id.mojom.h" 16 #include "mojo/services/surfaces/interfaces/surface_id.mojom.h"
17 #include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h" 17 #include "mojo/services/surfaces/interfaces/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;
26 using cc::DrawQuad; 26 using cc::DrawQuad;
27 using cc::SolidColorDrawQuad; 27 using cc::SolidColorDrawQuad;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 surface_->CreateSurface(kLocalId); 74 surface_->CreateSurface(kLocalId);
75 surface_->SubmitFrame(kLocalId, mojo::Frame::From(*frame), mojo::Closure()); 75 surface_->SubmitFrame(kLocalId, mojo::Frame::From(*frame), mojo::Closure());
76 auto qualified_id = mojo::SurfaceId::New(); 76 auto qualified_id = mojo::SurfaceId::New();
77 qualified_id->id_namespace = id_namespace_; 77 qualified_id->id_namespace = id_namespace_;
78 qualified_id->local = kLocalId; 78 qualified_id->local = kLocalId;
79 callback.Run(qualified_id.Pass()); 79 callback.Run(qualified_id.Pass());
80 } 80 }
81 81
82 } // namespace examples 82 } // namespace examples
83 } // namespace mojo 83 } // namespace mojo
OLDNEW
« no previous file with comments | « examples/surfaces_app/child_impl.h ('k') | examples/surfaces_app/embedder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698