| Index: ui/compositor/dip_util.cc
|
| diff --git a/ui/compositor/dip_util.cc b/ui/compositor/dip_util.cc
|
| index ad85159c30ec42db56a98b963f3630ac3080c0c5..60fee06ba5d9898a525f9ada38b0d68db22146a2 100644
|
| --- a/ui/compositor/dip_util.cc
|
| +++ b/ui/compositor/dip_util.cc
|
| @@ -18,7 +18,7 @@
|
| #include "ui/gfx/size.h"
|
| #include "ui/gfx/size_conversions.h"
|
|
|
| -#if DCHECK_IS_ON
|
| +#if !DCHECK_IS_OFF
|
| #include "ui/compositor/layer_animator.h"
|
| #endif
|
|
|
| @@ -63,7 +63,7 @@ gfx::Rect ConvertRectToPixel(const Layer* layer,
|
| return gfx::ConvertRectToPixel(GetDeviceScaleFactor(layer), rect_in_dip);
|
| }
|
|
|
| -#if DCHECK_IS_ON
|
| +#if !DCHECK_IS_OFF
|
| namespace {
|
|
|
| void CheckSnapped(float snapped_position) {
|
| @@ -94,7 +94,7 @@ void SnapLayerToPhysicalPixelBoundary(ui::Layer* snapped_layer,
|
| gfx::Vector2dF fudge = view_offset_snapped - view_offset;
|
| fudge.Scale(1.0 / scale_factor);
|
| layer_to_snap->SetSubpixelPositionOffset(fudge);
|
| -#if DCHECK_IS_ON
|
| +#if !DCHECK_IS_OFF
|
| gfx::Point layer_offset;
|
| gfx::PointF origin;
|
| Layer::ConvertPointToLayer(
|
|
|