summaryrefslogtreecommitdiffstats
path: root/chrome/common/gpu_messages_internal.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-28 16:18:57 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-28 16:18:57 +0000
commit8386a521873c4ea37b2682fff32260acdf245138 (patch)
treea0fd60732a77e1ed1e0d3516e5cb82114188fdd5 /chrome/common/gpu_messages_internal.h
parentd8921c432923fd6bdbbc176110258c2e3416eaa7 (diff)
downloadchromium_src-8386a521873c4ea37b2682fff32260acdf245138.zip
chromium_src-8386a521873c4ea37b2682fff32260acdf245138.tar.gz
chromium_src-8386a521873c4ea37b2682fff32260acdf245138.tar.bz2
Add scrolling to the GPU-accelerated backing store. This also fixes some bugs
in the regular painting mode and adds handling for expose events. Accelerated tabs now seem to look and behave properly as far as I can tell. Scrolling works by keeping a secondary texture which the current backing store is painted into. To save copies and excess texture creation, the current texture and the newly generated one are just swapped whan scrolling completes. Scrolling does not actually trigger painting to the screen. This is because scrolling is always followed by a paint to the exposed area, which then triggers copying the GPU backing store to the screen. BUG=none TEST=none Review URL: http://codereview.chromium.org/552207 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37409 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gpu_messages_internal.h')
-rw-r--r--chrome/common/gpu_messages_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/gpu_messages_internal.h b/chrome/common/gpu_messages_internal.h
index 4209a12..76f264f 100644
--- a/chrome/common/gpu_messages_internal.h
+++ b/chrome/common/gpu_messages_internal.h
@@ -40,6 +40,11 @@ IPC_BEGIN_MESSAGES(Gpu)
gfx::Rect, /* clip_rect */
gfx::Size) /* view_size */
+ // Tells the GPU process that the RenderWidgetHost has painted the window.
+ // Depending on the platform, the accelerated content may need to be painted
+ // over the top.
+ IPC_MESSAGE_ROUTED0(GpuMsg_WindowPainted)
+
IPC_END_MESSAGES(Gpu)
//------------------------------------------------------------------------------