summaryrefslogtreecommitdiffstats
path: root/chrome/gpu/gpu_view_x.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/gpu/gpu_view_x.cc')
-rw-r--r--chrome/gpu/gpu_view_x.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/gpu/gpu_view_x.cc b/chrome/gpu/gpu_view_x.cc
index c8e4613..d52154a 100644
--- a/chrome/gpu/gpu_view_x.cc
+++ b/chrome/gpu/gpu_view_x.cc
@@ -39,6 +39,7 @@ GLXContext GpuViewX::BindContext() {
void GpuViewX::OnMessageReceived(const IPC::Message& msg) {
IPC_BEGIN_MESSAGE_MAP(GpuViewX, msg)
IPC_MESSAGE_HANDLER(GpuMsg_NewBackingStore, OnNewBackingStore)
+ IPC_MESSAGE_HANDLER(GpuMsg_WindowPainted, OnWindowPainted)
IPC_END_MESSAGE_MAP_EX()
}
@@ -94,3 +95,7 @@ void GpuViewX::OnNewBackingStore(int32 routing_id, const gfx::Size& size) {
backing_store_.reset(
new GpuBackingStoreGLX(this, gpu_thread_, routing_id, size));
}
+
+void GpuViewX::OnWindowPainted() {
+ Repaint();
+}