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

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

Issue 1736643005: Decouple Media Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nit + fixed compile issue 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 5ec0a647425b22e170e0db049733d6a4daf28a9c..401c4f4c5413cc2493466e50148a877545530003 100644
--- a/content/common/gpu/gpu_channel.h
+++ b/content/common/gpu/gpu_channel.h
@@ -57,7 +57,6 @@ namespace content {
class GpuChannelManager;
class GpuChannelMessageFilter;
class GpuChannelMessageQueue;
-class GpuJpegDecodeAccelerator;
class GpuWatchdog;
// Encapsulates an IPC channel between the GPU process and one renderer
@@ -87,6 +86,8 @@ class CONTENT_EXPORT GpuChannel
// 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,6 +101,8 @@ class CONTENT_EXPORT GpuChannel
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_;
}
@@ -147,14 +150,13 @@ class CONTENT_EXPORT GpuChannel
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;
@@ -218,7 +220,6 @@ class CONTENT_EXPORT GpuChannel
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,
@@ -236,6 +237,8 @@ class CONTENT_EXPORT GpuChannel
scoped_ptr<IPC::SyncChannel> channel_;
+ IPC::Listener* unhandled_message_listener_;
+
// Uniquely identifies the channel within this GPU process.
std::string channel_id_;
@@ -270,8 +273,6 @@ class CONTENT_EXPORT GpuChannel
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