| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "services/gfx/compositor/renderer_impl.h" | 5 #include "services/gfx/compositor/renderer_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 | 9 |
| 10 namespace compositor { | 10 namespace compositor { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 } | 26 } |
| 27 | 27 |
| 28 void RendererImpl::SetRootScene( | 28 void RendererImpl::SetRootScene( |
| 29 mojo::gfx::composition::SceneTokenPtr scene_token, | 29 mojo::gfx::composition::SceneTokenPtr scene_token, |
| 30 uint32 scene_version, | 30 uint32 scene_version, |
| 31 mojo::RectPtr viewport) { | 31 mojo::RectPtr viewport) { |
| 32 engine_->SetRootScene(state_, scene_token.Pass(), scene_version, | 32 engine_->SetRootScene(state_, scene_token.Pass(), scene_version, |
| 33 viewport.Pass()); | 33 viewport.Pass()); |
| 34 } | 34 } |
| 35 | 35 |
| 36 void RendererImpl::ResetRootScene() { |
| 37 engine_->ResetRootScene(state_); |
| 38 } |
| 39 |
| 36 void RendererImpl::HitTest(mojo::PointPtr point, | 40 void RendererImpl::HitTest(mojo::PointPtr point, |
| 37 const HitTestCallback& callback) { | 41 const HitTestCallback& callback) { |
| 38 engine_->HitTest(state_, point.Pass(), callback); | 42 engine_->HitTest(state_, point.Pass(), callback); |
| 39 } | 43 } |
| 40 | 44 |
| 41 } // namespace compositor | 45 } // namespace compositor |
| OLD | NEW |