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

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: IPC passes ValueState 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 369d514d061b6e7bfc268de31f8846e1ed2e08db..f3fb7cc29158c240d56b81d7a2910dbcd6ae1286 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -22,10 +22,12 @@
#include "content/common/gpu/gpu_channel_manager.h"
#include "content/common/gpu/gpu_messages.h"
#include "content/common/gpu/sync_point_manager.h"
+#include "content/common/input/web_input_event_traits.h"
Ken Russell (switch to Gerrit) 2014/11/17 23:19:32 Is this #include strictly needed?
orglofch 2014/11/20 02:16:21 Nope, leftover from previously implementation. Rem
#include "content/public/common/content_switches.h"
#include "gpu/command_buffer/common/mailbox.h"
#include "gpu/command_buffer/service/gpu_scheduler.h"
#include "gpu/command_buffer/service/mailbox_manager_impl.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"
@@ -818,4 +820,15 @@ uint64 GpuChannel::GetMemoryUsage() {
return size;
}
+void GpuChannel::HandleUpdateValueState(
+ unsigned int target, const gpu::ValueState& state) {
+ for (StubMap::Iterator<GpuCommandBufferStub> it(&stubs_);
Ken Russell (switch to Gerrit) 2014/11/17 23:19:32 It would be nicer if this could more directly targ
orglofch 2014/11/20 02:16:21 Are you thinking of something along the lines of d
+ !it.IsAtEnd(); it.Advance()) {
+ gpu::gles2::GLES2Decoder* decoder = it.GetCurrentValue()->decoder();
+ if (decoder) {
+ decoder->GetValuebufferManager()->UpdateValueState(target, state);
+ }
+ }
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698