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

Side by Side Diff: content/common/gpu/gpu_channel.h

Issue 1016773002: MJPEG acceleration for video capture using VAAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix coded size, shm handle Created 5 years, 9 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 CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 void HandleMessage(); 179 void HandleMessage();
180 180
181 // Message handlers. 181 // Message handlers.
182 void OnCreateOffscreenCommandBuffer( 182 void OnCreateOffscreenCommandBuffer(
183 const gfx::Size& size, 183 const gfx::Size& size,
184 const GPUCreateCommandBufferConfig& init_params, 184 const GPUCreateCommandBufferConfig& init_params,
185 int32 route_id, 185 int32 route_id,
186 bool* succeeded); 186 bool* succeeded);
187 void OnDestroyCommandBuffer(int32 route_id); 187 void OnDestroyCommandBuffer(int32 route_id);
188 void OnDevToolsStartEventsRecording(int32 route_id, bool* succeeded);
wuchengli 2015/03/23 06:30:14 What's this? Prefer not to include non-related cha
kcwu 2015/04/14 20:02:34 Done.
189 void OnDevToolsStopEventsRecording();
190 void OnCreateJpegDecoder(int32 route_id, bool* succeeded);
188 191
189 // Decrement the count of unhandled IPC messages and defer preemption. 192 // Decrement the count of unhandled IPC messages and defer preemption.
190 void MessageProcessed(); 193 void MessageProcessed();
191 194
192 // The lifetime of objects of this class is managed by a GpuChannelManager. 195 // The lifetime of objects of this class is managed by a GpuChannelManager.
193 // The GpuChannelManager destroy all the GpuChannels that they own when they 196 // The GpuChannelManager destroy all the GpuChannels that they own when they
194 // are destroyed. So a raw pointer is safe. 197 // are destroyed. So a raw pointer is safe.
195 GpuChannelManager* gpu_channel_manager_; 198 GpuChannelManager* gpu_channel_manager_;
196 199
197 scoped_ptr<IPC::SyncChannel> channel_; 200 scoped_ptr<IPC::SyncChannel> channel_;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // that any WeakPtrs to Controller are invalidated before its members 251 // that any WeakPtrs to Controller are invalidated before its members
249 // variable's destructors are executed, rendering them invalid. 252 // variable's destructors are executed, rendering them invalid.
250 base::WeakPtrFactory<GpuChannel> weak_factory_; 253 base::WeakPtrFactory<GpuChannel> weak_factory_;
251 254
252 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 255 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
253 }; 256 };
254 257
255 } // namespace content 258 } // namespace content
256 259
257 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 260 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698