Fix benchmark build

Summary: Benchmarks were broken by const diff leaving in some code which should not have changed. This was not caught earlier due to benchmarks only being run on travis.

Reviewed By: IanChilds

Differential Revision: D3751151

fbshipit-source-id: 08207ce7ad584d4681a27ec0727bbfdbc1198d05
This commit is contained in:
Emil Sjolander
2016-08-22 08:17:31 -07:00
committed by Facebook Github Bot 8
parent ca72b2b796
commit e8465aee45

View File

@@ -14,11 +14,11 @@
// Measure functions can be quite slow, for example when measuring text. // Measure functions can be quite slow, for example when measuring text.
// Simulate this by sleeping for 1 millisecond. // Simulate this by sleeping for 1 millisecond.
static CSSSize _measure(const void *context, static CSSSize _measure(void *context,
const float width, float width,
const CSSMeasureMode widthMode, CSSMeasureMode widthMode,
const float height, float height,
const CSSMeasureMode heightMode) { CSSMeasureMode heightMode) {
const struct timespec sleeptime = {0, 1000000}; const struct timespec sleeptime = {0, 1000000};
nanosleep(&sleeptime, NULL); nanosleep(&sleeptime, NULL);
return (CSSSize){ return (CSSSize){