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

Unified Diff: base/gfx/size.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: base/gfx/size.h
diff --git a/base/gfx/size.h b/base/gfx/size.h
index bf0aa26adc165b340a0bd1e2bf2306b714dfafd7..57e080b621f1abceaef85c3c73d438c8c1528e46 100644
--- a/base/gfx/size.h
+++ b/base/gfx/size.h
@@ -30,6 +30,8 @@ class Size {
int width() const { return width_; }
int height() const { return height_; }
+ int GetArea() const { return width_ * height_; }
+
void SetSize(int width, int height) {
set_width(width);
set_height(height);
« no previous file with comments | « no previous file | chrome/browser/renderer_host/backing_store.h » ('j') | chrome/browser/renderer_host/backing_store.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698