From c0fc094f4b95fc55baace5d1452b6110f68cf167 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Wed, 13 Jan 2010 00:55:37 +0000 Subject: Add the ability for the GPU process to be used to paint the backing store of a tab. This is the first pass and is currently a bit buggy and incomplete. This patch refactors the backing store to make it a virtual interface which is then implemented by the platform-specific backing stores. This cleans up the multi-platform aspects of the old code, and also makes it possible to create different backing stores (such as ones in another process). This renames the BackingStore::PaintRect function to PaintToBackingStore which clears up what it does. I would often get confused and think that it paints the backing store to the screen. This makes a common way to capture backing store information and adds it to the backing store API. This removed a bunch of ugly ifdefs. This adds the ability for a backing store to specify that the TransportDIB should not be freed by RenderWidgetHost when painting is complete. This is necessary since the out-of-process version needs to use it after the RenderWidget paint function has returned. This pushes up the vector of copy_rect from RenderWidgetHost to the actual BackingStores. This prevents us from sending duplicate data over IPC. It also makes the common non-IPC case more efficient, since we end up setting up various surfaces only once when there are multiple update rects. BUG=none TEST=none Review URL: http://codereview.chromium.org/523028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36075 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/renderer_host/render_process_host.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'chrome/browser/renderer_host/render_process_host.h') diff --git a/chrome/browser/renderer_host/render_process_host.h b/chrome/browser/renderer_host/render_process_host.h index 7979d24..9d4855c 100644 --- a/chrome/browser/renderer_host/render_process_host.h +++ b/chrome/browser/renderer_host/render_process_host.h @@ -208,8 +208,10 @@ class RenderProcessHost : public IPC::Channel::Sender, // Returns the process object associated with the child process. In certain // tests or single-process mode, this will actually represent the current // process. - // NOTE: this is not valid after calling Init, as it starts the process - // asynchronously. It's guaranteed to be valid after the first IPC arrives. + // + // NOTE: this is not necessarily valid immediately after calling Init, as + // Init starts the process asynchronously. It's guaranteed to be valid after + // the first IPC arrives. virtual base::ProcessHandle GetHandle() = 0; // Transport DIB functions --------------------------------------------------- -- cgit v1.1