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

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: fix test race Created 6 years 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/gpu_channel.h ('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 ab751fd536b004084d7cc75e4213c2da2ecba611..7bf61344c8fb2029e179fd21b2a92e5a9219f7c6 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -24,6 +24,7 @@
#include "content/common/gpu/gpu_messages.h"
#include "content/public/common/content_switches.h"
#include "gpu/command_buffer/common/mailbox.h"
+#include "gpu/command_buffer/common/value_state.h"
#include "gpu/command_buffer/service/gpu_scheduler.h"
#include "gpu/command_buffer/service/image_factory.h"
#include "gpu/command_buffer/service/mailbox_manager_impl.h"
@@ -451,6 +452,7 @@ void GpuChannel::Init(base::MessageLoopProxy* io_message_loop,
allow_future_sync_points_);
io_message_loop_ = io_message_loop;
channel_->AddFilter(filter_.get());
+ pending_valuebuffer_state_ = new gpu::ValueStateMap();
devtools_gpu_agent_.reset(new DevToolsGpuAgent(this));
}
@@ -579,6 +581,7 @@ CreateCommandBufferResult GpuChannel::CreateViewCommandBuffer(
share_group,
window,
mailbox_manager_.get(),
+ pending_valuebuffer_state_.get(),
gfx::Size(),
disallowed_features_,
init_params.attribs,
@@ -737,6 +740,7 @@ void GpuChannel::OnCreateOffscreenCommandBuffer(
share_group,
gfx::GLSurfaceHandle(),
mailbox_manager_.get(),
+ pending_valuebuffer_state_.get(),
size,
disallowed_features_,
init_params.attribs,
@@ -852,4 +856,9 @@ scoped_refptr<gfx::GLImage> GpuChannel::CreateImageForGpuMemoryBuffer(
}
}
+void GpuChannel::HandleUpdateValueState(
+ unsigned int target, const gpu::ValueState& state) {
+ pending_valuebuffer_state_->UpdateState(target, state);
+}
+
} // namespace content
« no previous file with comments | « content/common/gpu/gpu_channel.h ('k') | content/common/gpu/gpu_channel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698