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

Unified Diff: ui/compositor/dip_util.cc

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « tools/valgrind/memcheck/suppressions.txt ('k') | ui/gfx/font_list_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/dip_util.cc
diff --git a/ui/compositor/dip_util.cc b/ui/compositor/dip_util.cc
index 4db8bcf29a0af466a24557ad1d04f0d8c460f482..69a33a7960182a8360d52c49480d94c6f4e649bc 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_ON()
#include "ui/compositor/layer_animator.h"
#endif
@@ -76,7 +76,7 @@ gfx::Rect ConvertRectToPixel(const Layer* layer,
gfx::ScaleSize(rect_in_dip.size(), scale)));
}
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
namespace {
void CheckSnapped(float snapped_position) {
@@ -107,7 +107,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_ON()
gfx::Point layer_offset;
gfx::PointF origin;
Layer::ConvertPointToLayer(
« no previous file with comments | « tools/valgrind/memcheck/suppressions.txt ('k') | ui/gfx/font_list_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698