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

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

Issue 634313002: Add mouse input forwarding to gpu service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Security Test Created 6 years, 1 month 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
Index: content/common/gpu/gpu_channel.cc
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index c89914d46dd6216f686bd03c9575082004dc6bf0..cd6de068a2634439fac42ad5cd1d6384dbac5fb2 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -26,6 +26,7 @@
#include "gpu/command_buffer/service/gpu_scheduler.h"
#include "gpu/command_buffer/service/mailbox_manager_impl.h"
#include "gpu/command_buffer/service/sync_point_manager.h"
+#include "gpu/command_buffer/service/valuebuffer_manager.h"
#include "ipc/ipc_channel.h"
#include "ipc/message_filter.h"
#include "ui/gl/gl_context.h"
@@ -449,6 +450,8 @@ void GpuChannel::Init(base::MessageLoopProxy* io_message_loop,
io_message_loop_ = io_message_loop;
channel_->AddFilter(filter_.get());
+ valuebuffer_manager_ = new gpu::gles2::ValuebufferManager();
+
devtools_gpu_agent_.reset(new DevToolsGpuAgent(this));
}
@@ -576,6 +579,7 @@ CreateCommandBufferResult GpuChannel::CreateViewCommandBuffer(
share_group,
window,
mailbox_manager_.get(),
+ valuebuffer_manager_.get(),
gfx::Size(),
disallowed_features_,
init_params.attribs,
@@ -734,6 +738,7 @@ void GpuChannel::OnCreateOffscreenCommandBuffer(
share_group,
gfx::GLSurfaceHandle(),
mailbox_manager_.get(),
+ valuebuffer_manager_.get(),
size,
disallowed_features_,
init_params.attribs,
@@ -819,4 +824,9 @@ uint64 GpuChannel::GetMemoryUsage() {
return size;
}
+void GpuChannel::HandleUpdateValueState(
+ unsigned int target, const gpu::ValueState& state) {
+ valuebuffer_manager_->UpdateValueState(target, state);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698