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

Side by Side Diff: examples/sky_compositor_app/sky_compositor_app.cc

Issue 1213683004: Move //sky/compositor to //sky/viewer/compositor (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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/sky_compositor_app/BUILD.gn ('k') | sky/compositor/BUILD.gn » ('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 "base/macros.h" 5 #include "base/macros.h"
6 #include "mojo/application/application_runner_chromium.h" 6 #include "mojo/application/application_runner_chromium.h"
7 #include "mojo/public/c/system/main.h" 7 #include "mojo/public/c/system/main.h"
8 #include "mojo/public/cpp/application/application_connection.h" 8 #include "mojo/public/cpp/application/application_connection.h"
9 #include "mojo/public/cpp/application/application_delegate.h" 9 #include "mojo/public/cpp/application/application_delegate.h"
10 #include "mojo/public/cpp/application/application_impl.h" 10 #include "mojo/public/cpp/application/application_impl.h"
11 #include "mojo/services/view_manager/public/cpp/view.h" 11 #include "mojo/services/view_manager/public/cpp/view.h"
12 #include "mojo/services/view_manager/public/cpp/view_manager.h" 12 #include "mojo/services/view_manager/public/cpp/view_manager.h"
13 #include "mojo/services/view_manager/public/cpp/view_manager_client_factory.h" 13 #include "mojo/services/view_manager/public/cpp/view_manager_client_factory.h"
14 #include "mojo/services/view_manager/public/cpp/view_manager_delegate.h" 14 #include "mojo/services/view_manager/public/cpp/view_manager_delegate.h"
15 #include "sky/compositor/layer.h" 15 #include "sky/viewer/compositor/layer.h"
16 #include "sky/compositor/layer_host.h" 16 #include "sky/viewer/compositor/layer_host.h"
17 #include "sky/compositor/rasterizer_ganesh.h" 17 #include "sky/viewer/compositor/rasterizer_ganesh.h"
18 #include "third_party/skia/include/core/SkCanvas.h" 18 #include "third_party/skia/include/core/SkCanvas.h"
19 19
20 namespace examples { 20 namespace examples {
21 namespace { 21 namespace {
22 22
23 gfx::Size ToSize(const mojo::Rect& rect) { 23 gfx::Size ToSize(const mojo::Rect& rect) {
24 return gfx::Size(rect.width, rect.height); 24 return gfx::Size(rect.width, rect.height);
25 } 25 }
26 26
27 int RadiusAt(base::TimeDelta delta) { 27 int RadiusAt(base::TimeDelta delta) {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 DISALLOW_COPY_AND_ASSIGN(SkyCompositorApp); 107 DISALLOW_COPY_AND_ASSIGN(SkyCompositorApp);
108 }; 108 };
109 109
110 } // namespace examples 110 } // namespace examples
111 111
112 MojoResult MojoMain(MojoHandle handle) { 112 MojoResult MojoMain(MojoHandle handle) {
113 mojo::ApplicationRunnerChromium runner(new examples::SkyCompositorApp); 113 mojo::ApplicationRunnerChromium runner(new examples::SkyCompositorApp);
114 return runner.Run(handle); 114 return runner.Run(handle);
115 } 115 }
OLDNEW
« no previous file with comments | « examples/sky_compositor_app/BUILD.gn ('k') | sky/compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698