Chromium Code Reviews| 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/ui/ws/server_window_compositor_frame_sink_manager.h" | 5 #include "services/ui/ws/server_window_compositor_frame_sink_manager.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "mojo/public/cpp/bindings/strong_binding.h" | 9 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 10 #include "services/ui/ws/ids.h" | 10 #include "services/ui/ws/ids.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 56 | 56 |
| 57 void ServerWindowCompositorFrameSinkManager::ClaimTemporaryReference( | 57 void ServerWindowCompositorFrameSinkManager::ClaimTemporaryReference( |
| 58 const cc::SurfaceId& surface_id) { | 58 const cc::SurfaceId& surface_id) { |
| 59 if (!compositor_frame_sink_.is_bound()) { | 59 if (!compositor_frame_sink_.is_bound()) { |
| 60 pending_compositor_frame_sink_request_ = | 60 pending_compositor_frame_sink_request_ = |
| 61 mojo::MakeRequest(&compositor_frame_sink_); | 61 mojo::MakeRequest(&compositor_frame_sink_); |
| 62 } | 62 } |
| 63 compositor_frame_sink_->ClaimTemporaryReference(surface_id); | 63 compositor_frame_sink_->ClaimTemporaryReference(surface_id); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void ServerWindowCompositorFrameSinkManager::RequestBeginFrame( | |
| 67 cc::mojom::FrameSinkObserverPtr observer) { | |
|
Fady Samuel
2017/05/12 22:42:55
if (!compositor_frame_sink_.is_bound()) {
pendin
sadrul
2017/05/13 03:01:38
Done.
| |
| 68 compositor_frame_sink_->RequestBeginFrame(std::move(observer)); | |
| 69 } | |
| 70 | |
| 66 } // namespace ws | 71 } // namespace ws |
| 67 } // namespace ui | 72 } // namespace ui |
| OLD | NEW |