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

Side by Side Diff: content/gpu/gpu_child_thread.cc

Issue 1830513003: Move AcceleratedSurfaceBuffersSwappedParams to content/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed piman's comment Created 4 years, 9 months 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 | « content/gpu/gpu_child_thread.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/gpu/gpu_child_thread.h" 5 #include "content/gpu/gpu_child_thread.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 Send(new GpuHostMsg_GpuMemoryUmaStats(params)); 322 Send(new GpuHostMsg_GpuMemoryUmaStats(params));
323 } 323 }
324 324
325 void GpuChildThread::RemoveSubscription(int32_t client_id, 325 void GpuChildThread::RemoveSubscription(int32_t client_id,
326 unsigned int target) { 326 unsigned int target) {
327 Send(new GpuHostMsg_RemoveSubscription(client_id, target)); 327 Send(new GpuHostMsg_RemoveSubscription(client_id, target));
328 } 328 }
329 329
330 #if defined(OS_MACOSX) 330 #if defined(OS_MACOSX)
331 void GpuChildThread::SendAcceleratedSurfaceBuffersSwapped( 331 void GpuChildThread::SendAcceleratedSurfaceBuffersSwapped(
332 const AcceleratedSurfaceBuffersSwappedParams& params) { 332 int32_t surface_id,
333 CAContextID ca_context_id,
334 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
335 const gfx::Size& size,
336 float scale_factor,
337 std::vector<ui::LatencyInfo> latency_info) {
338 AcceleratedSurfaceBuffersSwappedParams params;
339 params.surface_id = surface_id;
340 params.ca_context_id = ca_context_id;
341 params.io_surface = io_surface;
342 params.size = size;
343 params.scale_factor = scale_factor;
344 params.latency_info = std::move(latency_info);
333 Send(new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(params)); 345 Send(new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(params));
334 } 346 }
335 #endif 347 #endif
336 348
337 #if defined(OS_WIN) 349 #if defined(OS_WIN)
338 void GpuChildThread::SendAcceleratedSurfaceCreatedChildWindow( 350 void GpuChildThread::SendAcceleratedSurfaceCreatedChildWindow(
339 gpu::SurfaceHandle parent_window, 351 gpu::SurfaceHandle parent_window,
340 gpu::SurfaceHandle child_window) { 352 gpu::SurfaceHandle child_window) {
341 Send(new GpuHostMsg_AcceleratedSurfaceCreatedChildWindow(parent_window, 353 Send(new GpuHostMsg_AcceleratedSurfaceCreatedChildWindow(parent_window,
342 child_window)); 354 child_window));
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 574
563 void GpuChildThread::BindProcessControlRequest( 575 void GpuChildThread::BindProcessControlRequest(
564 mojo::InterfaceRequest<mojom::ProcessControl> request) { 576 mojo::InterfaceRequest<mojom::ProcessControl> request) {
565 DVLOG(1) << "GPU: Binding ProcessControl request"; 577 DVLOG(1) << "GPU: Binding ProcessControl request";
566 DCHECK(process_control_); 578 DCHECK(process_control_);
567 process_control_bindings_.AddBinding(process_control_.get(), 579 process_control_bindings_.AddBinding(process_control_.get(),
568 std::move(request)); 580 std::move(request));
569 } 581 }
570 582
571 } // namespace content 583 } // namespace content
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698