| OLD | NEW |
| 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 "sky/viewer/compositor/surface_holder.h" | 5 #include "services/sky/compositor/surface_holder.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "mojo/converters/geometry/geometry_type_converters.h" | 9 #include "mojo/converters/geometry/geometry_type_converters.h" |
| 10 #include "mojo/public/cpp/application/connect.h" | 10 #include "mojo/public/cpp/application/connect.h" |
| 11 #include "mojo/public/interfaces/application/shell.mojom.h" | 11 #include "mojo/public/interfaces/application/shell.mojom.h" |
| 12 #include "sky/viewer/compositor/surface_allocator.h" | 12 #include "services/sky/compositor/surface_allocator.h" |
| 13 | 13 |
| 14 namespace sky { | 14 namespace sky { |
| 15 | 15 |
| 16 SurfaceHolder::Client::~Client() { | 16 SurfaceHolder::Client::~Client() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 SurfaceHolder::SurfaceHolder(Client* client, mojo::Shell* shell) | 19 SurfaceHolder::SurfaceHolder(Client* client, mojo::Shell* shell) |
| 20 : client_(client), | 20 : client_(client), |
| 21 id_namespace_(0u), | 21 id_namespace_(0u), |
| 22 local_id_(0u), | 22 local_id_(0u), |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 if (local_id_ != 0u) | 70 if (local_id_ != 0u) |
| 71 SetQualifiedId(); | 71 SetQualifiedId(); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void SurfaceHolder::ReturnResources( | 74 void SurfaceHolder::ReturnResources( |
| 75 mojo::Array<mojo::ReturnedResourcePtr> resources) { | 75 mojo::Array<mojo::ReturnedResourcePtr> resources) { |
| 76 client_->ReturnResources(resources.Pass()); | 76 client_->ReturnResources(resources.Pass()); |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace sky | 79 } // namespace sky |
| OLD | NEW |