Searched refs:old_unit (Results 1 – 3 of 3) sorted by relevance
/external/chromium_org/printing/ |
D | units.cc | 12 int ConvertUnit(int value, int old_unit, int new_unit) { in ConvertUnit() argument 14 DCHECK_GT(old_unit, 0); in ConvertUnit() 19 return ((value * new_unit) + (old_unit / 2)) / old_unit; in ConvertUnit() 21 return ((value * new_unit) - (old_unit / 2)) / old_unit; in ConvertUnit() 25 double ConvertUnitDouble(double value, double old_unit, double new_unit) { in ConvertUnitDouble() argument 27 DCHECK_GT(old_unit, 0); in ConvertUnitDouble() 28 return value * new_unit / old_unit; in ConvertUnitDouble()
|
D | units.h | 43 PRINTING_EXPORT int ConvertUnit(int value, int old_unit, int new_unit); 46 PRINTING_EXPORT double ConvertUnitDouble(double value, double old_unit,
|
/external/chromium_org/pdf/pdfium/ |
D | pdfium_engine.cc | 104 int ConvertUnit(int value, int old_unit, int new_unit) { in ConvertUnit() argument 109 return ((value * new_unit) + (old_unit / 2)) / old_unit; in ConvertUnit() 111 return ((value * new_unit) - (old_unit / 2)) / old_unit; in ConvertUnit()
|