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

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

Issue 1730023004: Revert of Decouple browser-specific GPU IPC messages from GPU service IPCs (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/establish_channel_params.cc ('k') | content/common/gpu/gpu_channel_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel.cc
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index b6731deb1d2e885d0c21441fbed8af5ad6df6328..885f6d98cae389a2f625ae212c9a7ec0f8b2bd21 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -31,7 +31,6 @@
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "content/common/gpu/gpu_channel_manager.h"
-#include "content/common/gpu/gpu_channel_manager_delegate.h"
#include "content/common/gpu/gpu_memory_buffer_factory.h"
#include "content/common/gpu/gpu_messages.h"
#include "content/common/gpu/media/gpu_jpeg_decode_accelerator.h"
@@ -701,11 +700,13 @@
}
void GpuChannel::OnAddSubscription(unsigned int target) {
- gpu_channel_manager()->delegate()->AddSubscription(client_id_, target);
+ gpu_channel_manager()->Send(
+ new GpuHostMsg_AddSubscription(client_id_, target));
}
void GpuChannel::OnRemoveSubscription(unsigned int target) {
- gpu_channel_manager()->delegate()->RemoveSubscription(client_id_, target);
+ gpu_channel_manager()->Send(
+ new GpuHostMsg_RemoveSubscription(client_id_, target));
}
void GpuChannel::OnStreamRescheduled(int32_t stream_id, bool scheduled) {
@@ -999,7 +1000,8 @@
void GpuChannel::CacheShader(const std::string& key,
const std::string& shader) {
- gpu_channel_manager_->delegate()->StoreShaderToDisk(client_id_, key, shader);
+ gpu_channel_manager_->Send(
+ new GpuHostMsg_CacheShader(client_id_, key, shader));
}
void GpuChannel::AddFilter(IPC::MessageFilter* filter) {
« no previous file with comments | « content/common/gpu/establish_channel_params.cc ('k') | content/common/gpu/gpu_channel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698