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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 23653049: (not for review) Fix composited-to-non-composited corruption on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months 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/gpu/gpu_child_thread.h ('k') | ui/gl/gl_surface_glx.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index 170b3648b564ec78fe9d69f4d5a434a10f43850e..f44b9ddf0556c52ad5d2bd4c5bc37a076c9faf76 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -18,6 +18,9 @@
#include "ipc/ipc_channel_handle.h"
#include "ipc/ipc_sync_message_filter.h"
#include "ui/gl/gl_implementation.h"
+#if defined(TOOLKIT_GTK)
+#include "ui/gl/gl_surface_glx.h"
+#endif
namespace content {
namespace {
@@ -105,6 +108,8 @@ bool GpuChildThread::OnControlMessageReceived(const IPC::Message& msg) {
IPC_MESSAGE_HANDLER(GpuMsg_Crash, OnCrash)
IPC_MESSAGE_HANDLER(GpuMsg_Hang, OnHang)
IPC_MESSAGE_HANDLER(GpuMsg_DisableWatchdog, OnDisableWatchdog)
+ IPC_MESSAGE_HANDLER(GpuMsg_AcceleratedCompositingStateChange,
+ OnAcceleratedCompositingStateChange)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP_EX()
@@ -236,5 +241,13 @@ void GpuChildThread::OnDisableWatchdog() {
}
}
+#if defined(TOOLKIT_GTK)
+void GpuChildThread::OnAcceleratedCompositingStateChange(
+ int32 surface_id, bool surface_compositing_enabled) {
+ gfx::NativeViewGLSurfaceGLX::AcceleratedCompositingStateChange(
+ surface_id, surface_compositing_enabled);
+}
+#endif
+
} // namespace content
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | ui/gl/gl_surface_glx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698