skia2/tools/ios_utils.h
Brian Osman e6984a0fb5 Fix bugs with fence sync API on iOS devices
- Actually request extension version of fence sync functions
- Fix incorrect usage of dlopen/dlsym
- Also fixed same bugs in Mac code, although we never hit that
  code path.

Should fix iOS devices, giving more accurate (and less spammy)
results from nanobench.

Bug: skia:
Change-Id: I3456b301ef9b0b6559160d1d21c77bd93139d39a
Reviewed-on: https://skia-review.googlesource.com/57740
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2017-10-10 19:05:13 +00:00

24 lines
453 B
C

/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef ios_util_DEFINED
#define ios_util_DEFINED
#if defined(__cplusplus)
extern "C" {
#endif
// cd into the current app's Documents/ directory.
// (This is the only directory we can easily read and write.)
void cd_Documents(void);
#if defined(__cplusplus)
}
#endif
#endif//ios_util_DEFINED