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

Side by Side Diff: content/common/gpu/client/gpu_channel_host.h

Issue 1703163002: Remove dependency on GURL from content/common/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary include from gpu_command_buffer_stub Created 4 years, 10 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/browser/gpu/gpu_process_host.cc ('k') | content/common/gpu/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 CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 6 #define CONTENT_COMMON_GPU_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 16 matching lines...) Expand all
27 #include "ipc/ipc_sync_channel.h" 27 #include "ipc/ipc_sync_channel.h"
28 #include "ipc/message_filter.h" 28 #include "ipc/message_filter.h"
29 #include "ipc/message_router.h" 29 #include "ipc/message_router.h"
30 #include "media/video/jpeg_decode_accelerator.h" 30 #include "media/video/jpeg_decode_accelerator.h"
31 #include "ui/events/latency_info.h" 31 #include "ui/events/latency_info.h"
32 #include "ui/gfx/geometry/size.h" 32 #include "ui/gfx/geometry/size.h"
33 #include "ui/gfx/gpu_memory_buffer.h" 33 #include "ui/gfx/gpu_memory_buffer.h"
34 #include "ui/gfx/native_widget_types.h" 34 #include "ui/gfx/native_widget_types.h"
35 #include "ui/gl/gpu_preference.h" 35 #include "ui/gl/gpu_preference.h"
36 36
37 class GURL;
38 class TransportTextureService; 37 class TransportTextureService;
39 struct GPUCreateCommandBufferConfig; 38 struct GPUCreateCommandBufferConfig;
40 39
41 namespace base { 40 namespace base {
42 class MessageLoop; 41 class MessageLoop;
43 class WaitableEvent; 42 class WaitableEvent;
44 } 43 }
45 44
46 namespace IPC { 45 namespace IPC {
47 class SyncMessageFilter; 46 class SyncMessageFilter;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 117
119 void FlushPendingStream(int32_t stream_id); 118 void FlushPendingStream(int32_t stream_id);
120 119
121 // Create and connect to a command buffer in the GPU process. 120 // Create and connect to a command buffer in the GPU process.
122 scoped_ptr<CommandBufferProxyImpl> CreateViewCommandBuffer( 121 scoped_ptr<CommandBufferProxyImpl> CreateViewCommandBuffer(
123 int32_t surface_id, 122 int32_t surface_id,
124 CommandBufferProxyImpl* share_group, 123 CommandBufferProxyImpl* share_group,
125 int32_t stream_id, 124 int32_t stream_id,
126 GpuStreamPriority stream_priority, 125 GpuStreamPriority stream_priority,
127 const std::vector<int32_t>& attribs, 126 const std::vector<int32_t>& attribs,
128 const GURL& active_url, 127 const std::string& active_url,
129 gfx::GpuPreference gpu_preference); 128 gfx::GpuPreference gpu_preference);
130 129
131 // Create and connect to a command buffer in the GPU process. 130 // Create and connect to a command buffer in the GPU process.
132 scoped_ptr<CommandBufferProxyImpl> CreateOffscreenCommandBuffer( 131 scoped_ptr<CommandBufferProxyImpl> CreateOffscreenCommandBuffer(
133 const gfx::Size& size, 132 const gfx::Size& size,
134 CommandBufferProxyImpl* share_group, 133 CommandBufferProxyImpl* share_group,
135 int32_t stream_id, 134 int32_t stream_id,
136 GpuStreamPriority stream_priority, 135 GpuStreamPriority stream_priority,
137 const std::vector<int32_t>& attribs, 136 const std::vector<int32_t>& attribs,
138 const GURL& active_url, 137 const std::string& active_url,
139 gfx::GpuPreference gpu_preference); 138 gfx::GpuPreference gpu_preference);
140 139
141 // Creates a JPEG decoder in the GPU process. 140 // Creates a JPEG decoder in the GPU process.
142 scoped_ptr<media::JpegDecodeAccelerator> CreateJpegDecoder( 141 scoped_ptr<media::JpegDecodeAccelerator> CreateJpegDecoder(
143 media::JpegDecodeAccelerator::Client* client); 142 media::JpegDecodeAccelerator::Client* client);
144 143
145 // Destroy a command buffer created by this channel. 144 // Destroy a command buffer created by this channel.
146 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer); 145 void DestroyCommandBuffer(CommandBufferProxyImpl* command_buffer);
147 146
148 // Destroy this channel. Must be called on the main thread, before 147 // Destroy this channel. Must be called on the main thread, before
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 mutable base::Lock context_lock_; 304 mutable base::Lock context_lock_;
306 scoped_ptr<IPC::SyncChannel> channel_; 305 scoped_ptr<IPC::SyncChannel> channel_;
307 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_; 306 base::hash_map<int32_t, StreamFlushInfo> stream_flush_info_;
308 307
309 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 308 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
310 }; 309 };
311 310
312 } // namespace content 311 } // namespace content
313 312
314 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 313 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/common/gpu/client/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698