summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages_internal.h
diff options
context:
space:
mode:
authorvangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 17:10:46 +0000
committervangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-07 17:10:46 +0000
commitedbcde93e4b267c19e38fdc584509a044481f602 (patch)
treeb65d41609d1a2b8ee253a3a880d999ab76ef889f /chrome/common/render_messages_internal.h
parent7f9323de177f6d58732ae49fd707249ffa197b3b (diff)
downloadchromium_src-edbcde93e4b267c19e38fdc584509a044481f602.zip
chromium_src-edbcde93e4b267c19e38fdc584509a044481f602.tar.gz
chromium_src-edbcde93e4b267c19e38fdc584509a044481f602.tar.bz2
Adding a new IPC message to notify the browser process when a render widget is using the gpu process for painting its contents so that the browser will stop rendering from its own backing surface. This will currently only trigger if a page
uses the accelerated compositing path. This patch can only land _after_ https://bugs.webkit.org/show_bug.cgi?id=38220 BUG=42677 TEST=NONE Review URL: http://codereview.chromium.org/1696014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46697 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages_internal.h')
-rw-r--r--chrome/common/render_messages_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index 85ce45f..763715a 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -1115,6 +1115,11 @@ IPC_BEGIN_MESSAGES(ViewHost)
gfx::Rect /* bitmap_rect */)
IPC_MESSAGE_ROUTED0(ViewHostMsg_DestroyVideo)
+ // Sent by the renderer when GPU compositing is enabled or disabled to notify
+ // the browser whether or not is should do paiting.
+ IPC_MESSAGE_ROUTED1(ViewHostMsg_GpuRenderingActivated,
+ bool /* true if the GPU process renders to window */)
+
// Acknowledges receipt of a ViewMsg_HandleInputEvent message.
// Payload is a WebInputEvent::Type which is the type of the event, followed
// by an optional WebInputEvent which is provided only if the event was not