Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Unified Diff: chrome/browser/renderer_host/backing_store.h

Issue 146095: change backing store cache to be memory-based rather than count (Closed)
Patch Set: added better MemorySize() and comments Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/backing_store.h
diff --git a/chrome/browser/renderer_host/backing_store.h b/chrome/browser/renderer_host/backing_store.h
index 977553f5d7cb051e48af31637fe412d267e5fa5e..69fb88759cf73c2c3a8e9cae7b464509c804c9a2 100644
--- a/chrome/browser/renderer_host/backing_store.h
+++ b/chrome/browser/renderer_host/backing_store.h
@@ -49,6 +49,10 @@ class BackingStore {
RenderWidgetHost* render_widget_host() const { return render_widget_host_; }
const gfx::Size& size() { return size_; }
+ // The number of bytes that this backing store consumes. This should rougly
darin (slow to review) 2009/06/24 22:21:24 nit: roughly
+ // be size_.GetArea() * bytes per pixel.
+ size_t MemorySize();
+
#if defined(OS_WIN)
HDC hdc() { return hdc_; }

Powered by Google App Engine
This is Rietveld 408576698