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

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

Issue 1844053002: Add detached mode plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: And target Created 4 years, 8 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') | content/public/browser/render_widget_host_view.h » ('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 (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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 int32_t surface_id, 332 int32_t surface_id,
333 CAContextID ca_context_id, 333 CAContextID ca_context_id,
334 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, 334 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
335 bool use_detached,
336 CAContextID detached_ca_context_id,
335 const gfx::Size& size, 337 const gfx::Size& size,
336 float scale_factor, 338 float scale_factor,
337 std::vector<ui::LatencyInfo> latency_info) { 339 std::vector<ui::LatencyInfo> latency_info) {
338 AcceleratedSurfaceBuffersSwappedParams params; 340 AcceleratedSurfaceBuffersSwappedParams params;
339 params.surface_id = surface_id; 341 params.surface_id = surface_id;
340 params.ca_context_id = ca_context_id; 342 params.ca_context_id = ca_context_id;
341 params.io_surface = io_surface; 343 params.io_surface = io_surface;
344 params.use_detached = use_detached;
345 params.detached_ca_context_id = detached_ca_context_id;
342 params.size = size; 346 params.size = size;
343 params.scale_factor = scale_factor; 347 params.scale_factor = scale_factor;
344 params.latency_info = std::move(latency_info); 348 params.latency_info = std::move(latency_info);
345 Send(new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(params)); 349 Send(new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(params));
346 } 350 }
347 #endif 351 #endif
348 352
349 #if defined(OS_WIN) 353 #if defined(OS_WIN)
350 void GpuChildThread::SendAcceleratedSurfaceCreatedChildWindow( 354 void GpuChildThread::SendAcceleratedSurfaceCreatedChildWindow(
351 gpu::SurfaceHandle parent_window, 355 gpu::SurfaceHandle parent_window,
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 580
577 void GpuChildThread::BindProcessControlRequest( 581 void GpuChildThread::BindProcessControlRequest(
578 mojo::InterfaceRequest<mojom::ProcessControl> request) { 582 mojo::InterfaceRequest<mojom::ProcessControl> request) {
579 DVLOG(1) << "GPU: Binding ProcessControl request"; 583 DVLOG(1) << "GPU: Binding ProcessControl request";
580 DCHECK(process_control_); 584 DCHECK(process_control_);
581 process_control_bindings_.AddBinding(process_control_.get(), 585 process_control_bindings_.AddBinding(process_control_.get(),
582 std::move(request)); 586 std::move(request));
583 } 587 }
584 588
585 } // namespace content 589 } // namespace content
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | content/public/browser/render_widget_host_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698