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

Side by Side Diff: chrome/gpu/gpu_channel.h

Issue 2873089: media: gpu process ipc video decoder implementation (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: remove mft Created 10 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/gpu_video_common.cc ('k') | chrome/gpu/gpu_channel.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_GPU_GPU_CHANNEL_H_ 5 #ifndef CHROME_GPU_GPU_CHANNEL_H_
6 #define CHROME_GPU_GPU_CHANNEL_H_ 6 #define CHROME_GPU_GPU_CHANNEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/id_map.h" 11 #include "base/id_map.h"
12 #include "base/scoped_open_process.h" 12 #include "base/scoped_open_process.h"
13 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "chrome/common/gpu_video_common.h"
15 #include "chrome/common/message_router.h" 16 #include "chrome/common/message_router.h"
16 #include "chrome/gpu/gpu_command_buffer_stub.h" 17 #include "chrome/gpu/gpu_command_buffer_stub.h"
17 #include "gfx/native_widget_types.h" 18 #include "gfx/native_widget_types.h"
18 #include "gfx/size.h" 19 #include "gfx/size.h"
19 #include "ipc/ipc_channel.h" 20 #include "ipc/ipc_channel.h"
20 #include "ipc/ipc_message.h" 21 #include "ipc/ipc_message.h"
21 #include "ipc/ipc_sync_channel.h" 22 #include "ipc/ipc_sync_channel.h"
22 23
23 // Encapsulates an IPC channel between the GPU process and one renderer 24 // Encapsulates an IPC channel between the GPU process and one renderer
24 // process. On the renderer side there's a corresponding GpuChannelHost. 25 // process. On the renderer side there's a corresponding GpuChannelHost.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Message handlers. 66 // Message handlers.
66 void OnCreateViewCommandBuffer(gfx::NativeViewId view, 67 void OnCreateViewCommandBuffer(gfx::NativeViewId view,
67 int32 render_view_id, 68 int32 render_view_id,
68 int32* route_id); 69 int32* route_id);
69 void OnCreateOffscreenCommandBuffer(int32 parent_route_id, 70 void OnCreateOffscreenCommandBuffer(int32 parent_route_id,
70 const gfx::Size& size, 71 const gfx::Size& size,
71 uint32 parent_texture_id, 72 uint32 parent_texture_id,
72 int32* route_id); 73 int32* route_id);
73 void OnDestroyCommandBuffer(int32 route_id); 74 void OnDestroyCommandBuffer(int32 route_id);
74 75
76 void OnGetVideoService(GpuVideoServiceInfoParam* info);
77 void OnCreateVideoDecoder(GpuVideoDecoderInfoParam* info);
78 void OnDestroyVideoDecoder(int32 decoder_id);
79
75 scoped_ptr<IPC::SyncChannel> channel_; 80 scoped_ptr<IPC::SyncChannel> channel_;
76 81
77 // Handle to the renderer process who is on the other side of the channel. 82 // Handle to the renderer process who is on the other side of the channel.
78 base::ScopedOpenProcess renderer_process_; 83 base::ScopedOpenProcess renderer_process_;
79 84
80 // The id of the renderer who is on the other side of the channel. 85 // The id of the renderer who is on the other side of the channel.
81 int renderer_id_; 86 int renderer_id_;
82 87
83 #if defined(OS_POSIX) 88 #if defined(OS_POSIX)
84 // FD for the renderer end of the pipe. It is stored until we send it over 89 // FD for the renderer end of the pipe. It is stored until we send it over
85 // IPC after which it is cleared. It will be closed by the IPC mechanism. 90 // IPC after which it is cleared. It will be closed by the IPC mechanism.
86 int renderer_fd_; 91 int renderer_fd_;
87 #endif 92 #endif
88 93
89 // Used to implement message routing functionality to CommandBuffer objects 94 // Used to implement message routing functionality to CommandBuffer objects
90 MessageRouter router_; 95 MessageRouter router_;
91 96
92 #if defined(ENABLE_GPU) 97 #if defined(ENABLE_GPU)
93 typedef IDMap<GpuCommandBufferStub, IDMapOwnPointer> StubMap; 98 typedef IDMap<GpuCommandBufferStub, IDMapOwnPointer> StubMap;
94 StubMap stubs_; 99 StubMap stubs_;
95 #endif 100 #endif
96 101
97 bool log_messages_; // True if we should log sent and received messages. 102 bool log_messages_; // True if we should log sent and received messages.
98 103
99 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 104 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
100 }; 105 };
101 106
102 #endif // CHROME_GPU_GPU_CHANNEL_H_ 107 #endif // CHROME_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « chrome/common/gpu_video_common.cc ('k') | chrome/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698