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

Unified Diff: content/browser/renderer_host/backing_store_aura.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_aura.cc
===================================================================
--- content/browser/renderer_host/backing_store_aura.cc (revision 147462)
+++ content/browser/renderer_host/backing_store_aura.cc (working copy)
@@ -13,6 +13,8 @@
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/rect.h"
+namespace content {
+
// Assume that somewhere along the line, someone will do width * height * 4
// with signed numbers. If the maximum value is 2**31, then 2**31 / 4 =
// 2**29 and floor(sqrt(2**29)) = 23170.
@@ -20,10 +22,10 @@
// Max height and width for layers
static const int kMaxVideoLayerSize = 23170;
-BackingStoreAura::BackingStoreAura(content::RenderWidgetHost* widget,
+BackingStoreAura::BackingStoreAura(RenderWidgetHost* widget,
const gfx::Size& size)
: BackingStore(widget, size),
- device_scale_factor_(content::GetDIPScaleFactor(widget->GetView())) {
+ device_scale_factor_(GetDIPScaleFactor(widget->GetView())) {
gfx::Size pixel_size = size.Scale(device_scale_factor_);
bitmap_.setConfig(SkBitmap::kARGB_8888_Config,
pixel_size.width(), pixel_size.height());
@@ -74,7 +76,7 @@
}
void BackingStoreAura::PaintToBackingStore(
- content::RenderProcessHost* process,
+ RenderProcessHost* process,
TransportDIB::Id bitmap,
const gfx::Rect& bitmap_rect,
const std::vector<gfx::Rect>& copy_rects,
@@ -155,3 +157,5 @@
output->writePixels(b, rect.x(), rect.y());
return true;
}
+
+} // namespace content
« no previous file with comments | « content/browser/renderer_host/backing_store_aura.h ('k') | content/browser/renderer_host/backing_store_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698