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

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: Rebase 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
« no previous file with comments | « content/renderer/pepper/ppb_graphics_3d_impl.cc ('k') | gpu/ipc/client/gpu_channel_host.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 (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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 // Create and connect to a command buffer in the GPU process. 107 // Create and connect to a command buffer in the GPU process.
108 std::unique_ptr<CommandBufferProxyImpl> CreateCommandBuffer( 108 std::unique_ptr<CommandBufferProxyImpl> CreateCommandBuffer(
109 gpu::SurfaceHandle surface_handle, 109 gpu::SurfaceHandle surface_handle,
110 const gfx::Size& size, 110 const gfx::Size& size,
111 CommandBufferProxyImpl* share_group, 111 CommandBufferProxyImpl* share_group,
112 int32_t stream_id, 112 int32_t stream_id,
113 gpu::GpuStreamPriority stream_priority, 113 gpu::GpuStreamPriority stream_priority,
114 const std::vector<int32_t>& attribs, 114 const std::vector<int32_t>& attribs,
115 const GURL& active_url, 115 const GURL& active_url,
116 gfx::GpuPreference gpu_preference); 116 gfx::GpuPreference gpu_preference,
117 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
117 118
118 // Destroy a command buffer created by this channel. 119 // Destroy a command buffer created by this channel.
119 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer); 120 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer);
120 121
121 // Destroy this channel. Must be called on the main thread, before 122 // Destroy this channel. Must be called on the main thread, before
122 // destruction. 123 // destruction.
123 void DestroyChannel(); 124 void DestroyChannel();
124 125
125 // Add a message route for the current message loop. 126 // Add a message route for the current message loop.
126 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener); 127 void AddRoute(int route_id, base::WeakPtr<IPC::Listener> listener);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 mutable base::Lock context_lock_; 289 mutable base::Lock context_lock_;
289 std::unique_ptr<IPC::SyncChannel> channel_; 290 std::unique_ptr<IPC::SyncChannel> channel_;
290 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_; 291 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_;
291 292
292 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 293 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
293 }; 294 };
294 295
295 } // namespace gpu 296 } // namespace gpu
296 297
297 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_ 298 #endif // GPU_IPC_CLIENT_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/ppb_graphics_3d_impl.cc ('k') | gpu/ipc/client/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698