summaryrefslogtreecommitdiffstats
path: root/cc/layers/heads_up_display_layer_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/layers/heads_up_display_layer_impl.cc')
-rw-r--r--cc/layers/heads_up_display_layer_impl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/cc/layers/heads_up_display_layer_impl.cc b/cc/layers/heads_up_display_layer_impl.cc
index ecf1dc6..85bb2f1 100644
--- a/cc/layers/heads_up_display_layer_impl.cc
+++ b/cc/layers/heads_up_display_layer_impl.cc
@@ -360,7 +360,7 @@ SkRect HeadsUpDisplayLayerImpl::DrawFPSDisplay(
int width = kGraphWidth + kHistogramWidth + 4 * kPadding;
int height = kFontHeight + kGraphHeight + 4 * kPadding + 2;
- int left = ceil(bounds().width()) - width - right;
+ int left = bounds().width() - width - right;
SkRect area = SkRect::MakeXYWH(left, top, width, height);
SkPaint paint = CreatePaint();
@@ -492,7 +492,7 @@ SkRect HeadsUpDisplayLayerImpl::DrawMemoryDisplay(SkCanvas* canvas,
const int kFontHeight = 13;
const int height = 3 * kFontHeight + 4 * kPadding;
- const int left = ceil(bounds().width()) - width - right;
+ const int left = bounds().width() - width - right;
const SkRect area = SkRect::MakeXYWH(left, top, width, height);
const double megabyte = 1024.0 * 1024.0;
@@ -547,7 +547,7 @@ SkRect HeadsUpDisplayLayerImpl::DrawPaintTimeDisplay(
const int width = kGraphWidth + 2 * kPadding;
const int height =
kFontHeight + kGraphHeight + 4 * kPadding + 2 + kFontHeight + kPadding;
- const int left = ceil(bounds().width()) - width - right;
+ const int left = bounds().width() - width - right;
const SkRect area = SkRect::MakeXYWH(left, top, width, height);