summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/backing_store.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-03 21:41:56 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-03 21:41:56 +0000
commit043a58e1fc35e5eaa71d5b024b16b0593d2b7ce0 (patch)
tree42816198ad46dbb39866cf9a71e782fd6fb9175c /chrome/browser/renderer_host/backing_store.h
parent73debf7689db1c8f2d42d559c66af20713117cf8 (diff)
downloadchromium_src-043a58e1fc35e5eaa71d5b024b16b0593d2b7ce0.zip
chromium_src-043a58e1fc35e5eaa71d5b024b16b0593d2b7ce0.tar.gz
chromium_src-043a58e1fc35e5eaa71d5b024b16b0593d2b7ce0.tar.bz2
Split the BackingStoreManager out of backing_store.* and into its own class.
Review URL: http://codereview.chromium.org/118179 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17539 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/backing_store.h')
-rw-r--r--chrome/browser/renderer_host/backing_store.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/chrome/browser/renderer_host/backing_store.h b/chrome/browser/renderer_host/backing_store.h
index aa0a633..5d817d0 100644
--- a/chrome/browser/renderer_host/backing_store.h
+++ b/chrome/browser/renderer_host/backing_store.h
@@ -122,56 +122,4 @@ class BackingStore {
DISALLOW_COPY_AND_ASSIGN(BackingStore);
};
-// BackingStoreManager ---------------------------------------------------------
-
-// This class manages backing stores in the browsr. Every RenderWidgetHost is
-// associated with a backing store which it requests from this class. The
-// hosts don't maintain any references to the backing stores. These backing
-// stores are maintained in a cache which can be trimmed as needed.
-class BackingStoreManager {
- public:
- // Returns a backing store which matches the desired dimensions.
- //
- // backing_store_rect
- // The desired backing store dimensions.
- // Returns a pointer to the backing store on success, NULL on failure.
- static BackingStore* GetBackingStore(RenderWidgetHost* host,
- const gfx::Size& desired_size);
-
- // Returns a backing store which is fully ready for consumption, i.e. the
- // bitmap from the renderer has been copied into the backing store dc, or the
- // bitmap in the backing store dc references the renderer bitmap.
- //
- // backing_store_size
- // The desired backing store dimensions.
- // process_handle
- // The renderer process handle.
- // bitmap_section
- // The bitmap section from the renderer.
- // bitmap_rect
- // The rect to be painted into the backing store
- // needs_full_paint
- // Set if we need to send out a request to paint the view
- // to the renderer.
- static BackingStore* PrepareBackingStore(RenderWidgetHost* host,
- const gfx::Size& backing_store_size,
- base::ProcessHandle process_handle,
- TransportDIB* bitmap,
- const gfx::Rect& bitmap_rect,
- bool* needs_full_paint);
-
- // Returns a matching backing store for the host.
- // Returns NULL if we fail to find one.
- static BackingStore* Lookup(RenderWidgetHost* host);
-
- // Removes the backing store for the host.
- static void RemoveBackingStore(RenderWidgetHost* host);
-
- private:
- // Not intended for instantiation.
- BackingStoreManager() {}
-
- DISALLOW_COPY_AND_ASSIGN(BackingStoreManager);
-};
-
#endif // CHROME_BROWSER_RENDERER_HOST_BACKING_STORE_H_