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

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

Issue 7659001: Support multiple HW video decoders per context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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 | « no previous file | content/common/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Look up a GLSurface by ID. In this case the ID is the IPC routing ID. 115 // Look up a GLSurface by ID. In this case the ID is the IPC routing ID.
116 virtual gfx::GLSurface* LookupSurface(int surface_id); 116 virtual gfx::GLSurface* LookupSurface(int surface_id);
117 117
118 // Get the TransportTexture by ID. 118 // Get the TransportTexture by ID.
119 TransportTexture* GetTransportTexture(int32 route_id); 119 TransportTexture* GetTransportTexture(int32 route_id);
120 120
121 // Destroy the TransportTexture by ID. This method is only called by 121 // Destroy the TransportTexture by ID. This method is only called by
122 // TransportTexture to delete and detach itself. 122 // TransportTexture to delete and detach itself.
123 void DestroyTransportTexture(int32 route_id); 123 void DestroyTransportTexture(int32 route_id);
124 124
125 // Generate a route ID guaranteed to be unique for this channel.
126 int GenerateRouteID();
127
128 // Called to add/remove a listener for a particular message routing ID.
129 void AddRoute(int32 route_id, IPC::Channel::Listener* listener);
130 void RemoveRoute(int32 route_id);
131
125 private: 132 private:
126 void OnDestroy(); 133 void OnDestroy();
127 134
128 bool OnControlMessageReceived(const IPC::Message& msg); 135 bool OnControlMessageReceived(const IPC::Message& msg);
129 136
130 void HandleDeferredMessages(); 137 void HandleDeferredMessages();
131 138
132 int GenerateRouteID();
133
134 // Message handlers. 139 // Message handlers.
135 void OnInitialize(base::ProcessHandle renderer_process); 140 void OnInitialize(base::ProcessHandle renderer_process);
136 void OnCreateOffscreenCommandBuffer( 141 void OnCreateOffscreenCommandBuffer(
137 const gfx::Size& size, 142 const gfx::Size& size,
138 const GPUCreateCommandBufferConfig& init_params, 143 const GPUCreateCommandBufferConfig& init_params,
139 IPC::Message* reply_message); 144 IPC::Message* reply_message);
140 void OnDestroyCommandBuffer(int32 route_id, IPC::Message* reply_message); 145 void OnDestroyCommandBuffer(int32 route_id, IPC::Message* reply_message);
141 146
142 void OnCreateOffscreenSurface(const gfx::Size& size, 147 void OnCreateOffscreenSurface(const gfx::Size& size,
143 IPC::Message* reply_message); 148 IPC::Message* reply_message);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 gpu::gles2::DisallowedExtensions disallowed_extensions_; 191 gpu::gles2::DisallowedExtensions disallowed_extensions_;
187 GpuWatchdog* watchdog_; 192 GpuWatchdog* watchdog_;
188 bool software_; 193 bool software_;
189 194
190 ScopedRunnableMethodFactory<GpuChannel> task_factory_; 195 ScopedRunnableMethodFactory<GpuChannel> task_factory_;
191 196
192 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 197 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
193 }; 198 };
194 199
195 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 200 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698