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 |