diff options
author | iyengar@google.com <iyengar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 05:30:12 +0000 |
---|---|---|
committer | iyengar@google.com <iyengar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 05:30:12 +0000 |
commit | ec7dc1160836695462ee7311d4c02f2c2f61350e (patch) | |
tree | 9fb3d234403ee1b52ca24f603dbedede952a4948 /chrome/common/render_messages_internal.h | |
parent | e5d478012a5ee0765d35fd62e5090d07f5ae7dde (diff) | |
download | chromium_src-ec7dc1160836695462ee7311d4c02f2c2f61350e.zip chromium_src-ec7dc1160836695462ee7311d4c02f2c2f61350e.tar.gz chromium_src-ec7dc1160836695462ee7311d4c02f2c2f61350e.tar.bz2 |
This fixes http://b/issue?id=1257424, which is a need to implement a global backing store cache. The current backing store cache is only used for invisible tabs and every other RenderWidgetHost holds a reference to its backing store.
This CB proposes a change where in we have a global backing store cache, whose size can be controlled based on strategies like available resources etc. At this point the strategy is not implemented and the size is left at 5.
We no longer maintain a reference to the backing store in the RenderWidgetHost. Every host queries the global cache for its backing store. The cache provides methods to create the backing store and populate it with the required dib.
The other change is to use the renderer dib when the size of the bitmap being painted is the same as the backing store size. This is an attempt to improve performance in operations like scrolling.
Bug=1257424
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@422 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages_internal.h')
-rw-r--r-- | chrome/common/render_messages_internal.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index a81499e..738aa16 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -105,7 +105,10 @@ IPC_BEGIN_MESSAGES(View, 1) // Tells the render view that a ViewHostMsg_PaintRect message was processed. // This signals the render view that it can send another PaintRect message. - IPC_MESSAGE_ROUTED0(ViewMsg_PaintRect_ACK) + // The drop bitmap argument indicates whether the renderer should drop its + // reference on the shared section used for the dib. + IPC_MESSAGE_ROUTED1(ViewMsg_PaintRect_ACK, + bool /* drop bitmap */) // Asks the renderer to calculate the number of printed pages according to the // supplied settings. The renderer will reply with @@ -431,6 +434,10 @@ IPC_BEGIN_MESSAGES(View, 1) // Notifies the renderer about ui theme changes IPC_MESSAGE_ROUTED0(ViewMsg_ThemeChanged) + // Notifies the renderer that a paint is to be generated for the rectangle + // passed in. + IPC_MESSAGE_ROUTED1(ViewMsg_Repaint, + gfx::Size /* The view size to be repainted */) IPC_END_MESSAGES(View) |