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

Side by Side Diff: gpu/ipc/client/gpu_channel_host.h

Issue 1963263002: Fix Mac resize, delete more Mac code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 4 years, 7 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
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 #ifndef GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ 5 #ifndef GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_
6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ 6 #define GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // Create and connect to a command buffer in the GPU process. 111 // Create and connect to a command buffer in the GPU process.
112 std::unique_ptr<CommandBufferProxyImpl> CreateCommandBuffer( 112 std::unique_ptr<CommandBufferProxyImpl> CreateCommandBuffer(
113 gpu::SurfaceHandle surface_handle, 113 gpu::SurfaceHandle surface_handle,
114 const gfx::Size& size, 114 const gfx::Size& size,
115 CommandBufferProxyImpl* share_group, 115 CommandBufferProxyImpl* share_group,
116 int32_t stream_id, 116 int32_t stream_id,
117 gpu::GpuStreamPriority stream_priority, 117 gpu::GpuStreamPriority stream_priority,
118 const std::vector<int32_t>& attribs, 118 const std::vector<int32_t>& attribs,
119 const GURL& active_url, 119 const GURL& active_url,
120 gfx::GpuPreference gpu_preference); 120 gfx::GpuPreference gpu_preference,
121 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
121 122
122 // Destroy a command buffer created by this channel. 123 // Destroy a command buffer created by this channel.
123 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer); 124 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer);
124 125
125 // Destroy this channel. Must be called on the main thread, before 126 // Destroy this channel. Must be called on the main thread, before
126 // destruction. 127 // destruction.
127 void DestroyChannel(); 128 void DestroyChannel();
128 129
129 // Add a message route for the current message loop. 130 // Add a message route for the current message loop.
130 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener); 131 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 mutable base::Lock context_lock_; 293 mutable base::Lock context_lock_;
293 std::unique_ptr<IPC::SyncChannel> channel_; 294 std::unique_ptr<IPC::SyncChannel> channel_;
294 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_; 295 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_;
295 296
296 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 297 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
297 }; 298 };
298 299
299 } // namespace gpu 300 } // namespace gpu
300 301
301 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ 302 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698