summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/render_widget.cc')
-rw-r--r--content/renderer/render_widget.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 406b531..4313973 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -35,9 +35,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
#include "third_party/skia/include/core/SkShader.h"
#include "ui/base/ui_base_switches.h"
-#include "ui/gfx/point.h"
#include "ui/gfx/rect_conversions.h"
-#include "ui/gfx/size.h"
#include "ui/gfx/size_conversions.h"
#include "ui/gfx/skia_util.h"
#include "ui/gl/gl_switches.h"
@@ -72,7 +70,8 @@ using WebKit::WebTextDirection;
using WebKit::WebTouchEvent;
using WebKit::WebVector;
using WebKit::WebWidget;
-using content::RenderThread;
+
+namespace content {
static const float kStandardDPI = 160;
@@ -265,7 +264,7 @@ bool RenderWidget::Send(IPC::Message* message) {
// Don't send any messages after the browser has told us to close, and filter
// most outgoing messages while swapped out.
if ((is_swapped_out_ &&
- !content::SwappedOutMessages::CanSendWhileSwappedOut(message)) ||
+ !SwappedOutMessages::CanSendWhileSwappedOut(message)) ||
closing_) {
delete message;
return false;
@@ -1868,8 +1867,7 @@ void RenderWidget::GetRenderingStats(WebKit::WebRenderingStats& stats) const {
stats.totalPaintTimeInSeconds += software_stats_.totalPaintTimeInSeconds;
}
-bool RenderWidget::GetGpuRenderingStats(
- content::GpuRenderingStats* stats) const {
+bool RenderWidget::GetGpuRenderingStats(GpuRenderingStats* stats) const {
GpuChannelHost* gpu_channel = RenderThreadImpl::current()->GetGpuChannel();
if (!gpu_channel)
return false;
@@ -1897,3 +1895,5 @@ bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) {
bool RenderWidget::WebWidgetHandlesCompositorScheduling() const {
return false;
}
+
+} // namespace content