Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(872)

Side by Side Diff: chrome/gpu/gpu_arc_video_service.cc

Issue 2592623002: mojo:: Introduce InterfaceRequest ctor that takes in InterfacePtr* (Closed)
Patch Set: Rebase + response to review Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/task_manager/providers/child_process_task.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 "chrome/gpu/gpu_arc_video_service.h" 5 #include "chrome/gpu/gpu_arc_video_service.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void GpuArcVideoService::DeprecatedConnect( 129 void GpuArcVideoService::DeprecatedConnect(
130 std::unique_ptr<GpuArcVideoService> service, 130 std::unique_ptr<GpuArcVideoService> service,
131 ::arc::mojom::VideoAcceleratorServiceClientRequest client_request) { 131 ::arc::mojom::VideoAcceleratorServiceClientRequest client_request) {
132 DVLOG(2) << "Connect"; 132 DVLOG(2) << "Connect";
133 133
134 service->client_.Bind(::arc::mojom::VideoAcceleratorServiceClientPtrInfo( 134 service->client_.Bind(::arc::mojom::VideoAcceleratorServiceClientPtrInfo(
135 client_request.PassMessagePipe(), 0u)); 135 client_request.PassMessagePipe(), 0u));
136 service->client_.set_connection_error_handler(base::Bind(&OnConnectionError)); 136 service->client_.set_connection_error_handler(base::Bind(&OnConnectionError));
137 137
138 ::arc::mojom::VideoAcceleratorServicePtr service_proxy; 138 ::arc::mojom::VideoAcceleratorServicePtr service_proxy;
139 ::arc::mojom::VideoAcceleratorServiceRequest request = 139 ::arc::mojom::VideoAcceleratorServiceRequest request(&service_proxy);
140 mojo::MakeRequest(&service_proxy);
141 service->client_->DeprecatedInit(std::move(service_proxy)); 140 service->client_->DeprecatedInit(std::move(service_proxy));
142 141
143 auto binding = mojo::MakeStrongBinding(std::move(service), 142 auto binding = mojo::MakeStrongBinding(std::move(service),
144 mojo::MakeRequest(&service_proxy)); 143 mojo::MakeRequest(&service_proxy));
145 binding->set_connection_error_handler(base::Bind(&OnConnectionError)); 144 binding->set_connection_error_handler(base::Bind(&OnConnectionError));
146 } 145 }
147 146
148 void GpuArcVideoService::OnError(ArcVideoAccelerator::Result error) { 147 void GpuArcVideoService::OnError(ArcVideoAccelerator::Result error) {
149 DVLOG(2) << "OnError " << error; 148 DVLOG(2) << "OnError " << error;
150 DCHECK_NE(error, ArcVideoAccelerator::SUCCESS); 149 DCHECK_NE(error, ArcVideoAccelerator::SUCCESS);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 accelerator_->Reset(); 284 accelerator_->Reset();
286 } 285 }
287 286
288 void GpuArcVideoService::Flush() { 287 void GpuArcVideoService::Flush() {
289 DVLOG(2) << "Flush"; 288 DVLOG(2) << "Flush";
290 accelerator_->Flush(); 289 accelerator_->Flush();
291 } 290 }
292 291
293 } // namespace arc 292 } // namespace arc
294 } // namespace chromeos 293 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/providers/child_process_task.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698