| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "components/mus/surfaces/display_impl.h" |
| 6 |
| 7 #include "components/mus/surfaces/compositor_frame_sink_impl.h" |
| 8 |
| 9 namespace mus { |
| 10 |
| 11 DisplayImpl::DisplayImpl( |
| 12 int accelerated_widget, |
| 13 mojo::InterfaceRequest<mojom::Display> display, |
| 14 mojom::DisplayHostPtr host, |
| 15 mojo::InterfaceRequest<mojom::CompositorFrameSink> sink, |
| 16 mojom::CompositorFrameSinkClientPtr client, |
| 17 const scoped_refptr<SurfacesState>& surfaces_state) |
| 18 : binding_(this, std::move(display)) { |
| 19 const uint32_t client_id = 1; |
| 20 sink_.reset(new CompositorFrameSinkImpl(this, client_id, surfaces_state, |
| 21 std::move(sink), std::move(client))); |
| 22 } |
| 23 |
| 24 DisplayImpl::~DisplayImpl() {} |
| 25 |
| 26 void DisplayImpl::CreateClient( |
| 27 uint32_t client_id, |
| 28 mojo::InterfaceRequest<mojom::DisplayClient> client) { |
| 29 NOTIMPLEMENTED(); |
| 30 } |
| 31 |
| 32 void DisplayImpl::CompositorFrameSinkConnectionLost(int sink_id) { |
| 33 NOTIMPLEMENTED(); |
| 34 } |
| 35 |
| 36 cc::SurfaceId DisplayImpl::GenerateSurfaceId() { |
| 37 NOTIMPLEMENTED(); |
| 38 return cc::SurfaceId(); |
| 39 } |
| 40 |
| 41 } // namespace mus |
| OLD | NEW |