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

Unified Diff: content/browser/renderer_host/backing_store_manager.cc

Issue 10804031: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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: content/browser/renderer_host/backing_store_manager.cc
===================================================================
--- content/browser/renderer_host/backing_store_manager.cc (revision 147462)
+++ content/browser/renderer_host/backing_store_manager.cc (working copy)
@@ -12,8 +12,7 @@
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/public/common/content_switches.h"
-using content::RenderWidgetHost;
-
+namespace content {
namespace {
// There are two separate caches, |large_cache| and |small_cache|. large_cache
@@ -23,8 +22,8 @@
// items will tend to be visible more of the time.
typedef base::OwningMRUCache<RenderWidgetHost*, BackingStore*>
BackingStoreCache;
-static BackingStoreCache* large_cache = NULL;
-static BackingStoreCache* small_cache = NULL;
+BackingStoreCache* large_cache = NULL;
+BackingStoreCache* small_cache = NULL;
// Threshold is based on a single large-monitor-width toolstrip.
// (32bpp, 32 pixels high, 1920 pixels wide)
@@ -147,7 +146,7 @@
} else {
cache = small_cache;
}
- BackingStore* backing_store = content::RenderWidgetHostImpl::From(
+ BackingStore* backing_store = RenderWidgetHostImpl::From(
host)->AllocBackingStore(backing_store_size);
if (backing_store)
cache->Put(host, backing_store);
@@ -279,3 +278,5 @@
return mem;
}
+
+} // namespace content
« no previous file with comments | « content/browser/renderer_host/backing_store_manager.h ('k') | content/browser/renderer_host/backing_store_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698