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

Unified Diff: content/common/gpu/gpu_channel.h

Issue 1767673002: Revert of Decouple Media Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/client/gpu_video_encode_accelerator_host.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel.h
diff --git a/content/common/gpu/gpu_channel.h b/content/common/gpu/gpu_channel.h
index 401c4f4c5413cc2493466e50148a877545530003..5ec0a647425b22e170e0db049733d6a4daf28a9c 100644
--- a/content/common/gpu/gpu_channel.h
+++ b/content/common/gpu/gpu_channel.h
@@ -57,6 +57,7 @@
class GpuChannelManager;
class GpuChannelMessageFilter;
class GpuChannelMessageQueue;
+class GpuJpegDecodeAccelerator;
class GpuWatchdog;
// Encapsulates an IPC channel between the GPU process and one renderer
@@ -86,8 +87,6 @@
// the returned handle and is responsible for closing it.
virtual IPC::ChannelHandle Init(base::WaitableEvent* shutdown_event);
- void SetUnhandledMessageListener(IPC::Listener* listener);
-
// Get the GpuChannelManager that owns this channel.
GpuChannelManager* gpu_channel_manager() const {
return gpu_channel_manager_;
@@ -100,8 +99,6 @@
int client_id() const { return client_id_; }
uint64_t client_tracing_id() const { return client_tracing_id_; }
-
- base::WeakPtr<GpuChannel> AsWeakPtr();
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner() const {
return io_task_runner_;
@@ -150,12 +147,13 @@
void HandleUpdateValueState(unsigned int target,
const gpu::ValueState& state);
- GpuChannelMessageFilter* filter() const { return filter_.get(); }
-
// Visible for testing.
const gpu::ValueStateMap* pending_valuebuffer_state() const {
return pending_valuebuffer_state_.get();
}
+
+ // Visible for testing.
+ GpuChannelMessageFilter* filter() const { return filter_.get(); }
// Returns the global order number for the last processed IPC message.
uint32_t GetProcessedOrderNum() const;
@@ -220,6 +218,7 @@
int32_t route_id,
bool* succeeded);
void OnDestroyCommandBuffer(int32_t route_id);
+ void OnCreateJpegDecoder(int32_t route_id, IPC::Message* reply_msg);
bool CreateCommandBuffer(const gfx::GLSurfaceHandle& window,
const gfx::Size& size,
@@ -237,8 +236,6 @@
scoped_ptr<IPC::SyncChannel> channel_;
- IPC::Listener* unhandled_message_listener_;
-
// Uniquely identifies the channel within this GPU process.
std::string channel_id_;
@@ -272,6 +269,8 @@
scoped_refptr<gpu::gles2::SubscriptionRefSet> subscription_ref_set_;
scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state_;
+
+ scoped_ptr<GpuJpegDecodeAccelerator> jpeg_decoder_;
gpu::gles2::DisallowedFeatures disallowed_features_;
GpuWatchdog* const watchdog_;
« no previous file with comments | « content/common/gpu/client/gpu_video_encode_accelerator_host.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698