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

Side by Side Diff: gpu/ipc/service/gpu_channel.cc

Issue 2920133002: Don't move raw pointers in gpu (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | 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 "gpu/ipc/service/gpu_channel.h" 5 #include "gpu/ipc/service/gpu_channel.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 preempting_flag_(preempting_flag), 773 preempting_flag_(preempting_flag),
774 preempted_flag_(preempted_flag), 774 preempted_flag_(preempted_flag),
775 client_id_(client_id), 775 client_id_(client_id),
776 client_tracing_id_(client_tracing_id), 776 client_tracing_id_(client_tracing_id),
777 task_runner_(task_runner), 777 task_runner_(task_runner),
778 io_task_runner_(io_task_runner), 778 io_task_runner_(io_task_runner),
779 share_group_(share_group), 779 share_group_(share_group),
780 mailbox_manager_(mailbox_manager), 780 mailbox_manager_(mailbox_manager),
781 image_manager_(new gles2::ImageManager()), 781 image_manager_(new gles2::ImageManager()),
782 watchdog_(watchdog), 782 watchdog_(watchdog),
783 discardable_manager_(std::move(discardable_manager)), 783 discardable_manager_(discardable_manager),
784 is_gpu_host_(is_gpu_host), 784 is_gpu_host_(is_gpu_host),
785 weak_factory_(this) { 785 weak_factory_(this) {
786 DCHECK(gpu_channel_manager_); 786 DCHECK(gpu_channel_manager_);
787 DCHECK(client_id_); 787 DCHECK(client_id_);
788 DCHECK(discardable_manager_); 788 DCHECK(discardable_manager_);
789 789
790 if (!scheduler_) { 790 if (!scheduler_) {
791 message_queue_ = new GpuChannelMessageQueue( 791 message_queue_ = new GpuChannelMessageQueue(
792 this, sync_point_manager->CreateSyncPointOrderData(), task_runner, 792 this, sync_point_manager->CreateSyncPointOrderData(), task_runner,
793 io_task_runner, preempting_flag, preempted_flag); 793 io_task_runner, preempting_flag, preempted_flag);
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 1196
1197 return manager->gpu_memory_buffer_factory() 1197 return manager->gpu_memory_buffer_factory()
1198 ->AsImageFactory() 1198 ->AsImageFactory()
1199 ->CreateImageForGpuMemoryBuffer(handle, size, format, internalformat, 1199 ->CreateImageForGpuMemoryBuffer(handle, size, format, internalformat,
1200 client_id_, surface_handle); 1200 client_id_, surface_handle);
1201 } 1201 }
1202 } 1202 }
1203 } 1203 }
1204 1204
1205 } // namespace gpu 1205 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698