// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/gfx/skia_util.h" #include "base/check.h" #include "base/numerics/safe_conversions.h" #include "third_party/skia/include/core/SkBitmap.h" namespace gfx { bool BitmapsAreEqual(const SkBitmap& bitmap1, const SkBitmap& bitmap2) { … } // We treat HarfBuzz ints as 16.16 fixed-point. static const int kHbUnit1 = …; int SkiaScalarToHarfBuzzUnits(SkScalar value) { … } SkScalar HarfBuzzUnitsToSkiaScalar(int value) { … } float HarfBuzzUnitsToFloat(int value) { … } } // namespace gfx