OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/compositor_app/compositor_host.h" | 5 #include "mojo/examples/compositor_app/compositor_host.h" |
6 | 6 |
7 #include "cc/layers/layer.h" | 7 #include "cc/layers/layer.h" |
8 #include "cc/layers/solid_color_layer.h" | 8 #include "cc/layers/solid_color_layer.h" |
9 #include "cc/output/context_provider.h" | 9 #include "cc/output/context_provider.h" |
10 #include "cc/output/output_surface.h" | 10 #include "cc/output/output_surface.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void CompositorHost::Layout() {} | 69 void CompositorHost::Layout() {} |
70 void CompositorHost::ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, | 70 void CompositorHost::ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, |
71 float page_scale) {} | 71 float page_scale) {} |
72 | 72 |
73 scoped_ptr<cc::OutputSurface> CompositorHost::CreateOutputSurface( | 73 scoped_ptr<cc::OutputSurface> CompositorHost::CreateOutputSurface( |
74 bool fallback) { | 74 bool fallback) { |
75 return make_scoped_ptr( | 75 return make_scoped_ptr( |
76 new cc::OutputSurface(new MojoContextProvider(gl_pipe_.Pass()))); | 76 new cc::OutputSurface(new MojoContextProvider(gl_pipe_.Pass()))); |
77 } | 77 } |
78 | 78 |
79 void CompositorHost::DidInitializeOutputSurface(bool success) {} | 79 void CompositorHost::DidInitializeOutputSurface() { |
| 80 } |
80 | 81 |
81 void CompositorHost::WillCommit() {} | 82 void CompositorHost::WillCommit() {} |
82 void CompositorHost::DidCommit() {} | 83 void CompositorHost::DidCommit() {} |
83 void CompositorHost::DidCommitAndDrawFrame() {} | 84 void CompositorHost::DidCommitAndDrawFrame() {} |
84 void CompositorHost::DidCompleteSwapBuffers() {} | 85 void CompositorHost::DidCompleteSwapBuffers() {} |
85 | 86 |
86 } // namespace examples | 87 } // namespace examples |
87 } // namespace mojo | 88 } // namespace mojo |
OLD | NEW |