Chromium Code Reviews| Index: native_client_sdk/src/libraries/xray/xray.h |
| diff --git a/native_client_sdk/src/libraries/xray/xray.h b/native_client_sdk/src/libraries/xray/xray.h |
| index af3117a230c62fc153253b229486a6527d3e8c06..c394e10fba0ec6f129a519e679effd527c7dd42e 100644 |
| --- a/native_client_sdk/src/libraries/xray/xray.h |
| +++ b/native_client_sdk/src/libraries/xray/xray.h |
| @@ -53,6 +53,16 @@ XRAY_NO_INSTRUMENT void XRayReport(struct XRayTraceCapture* capture, |
| FILE* f, |
| float percent_cutoff, |
| int ticks_cutoff); |
| + |
| +#ifndef XRAY_NOPEPPER |
| +#include "ppapi/c/ppb.h" |
| +XRAY_NO_INSTRUMENT void XRayBrowserTraceReport( |
| + struct XRayTraceCapture* capture); |
| +XRAY_NO_INSTRUMENT void XRayBrowserRegisterInterface( |
| + PPB_GetInterface get_browser_interface); |
| +#endif /* XRAY_NOPEPPER */ |
| + |
| + |
| #if defined(XRAY_ANNOTATE) |
| #define XRayAnnotate(...) __XRayAnnotate(__VA_ARGS__) |
| #define XRayAnnotateFiltered(...) __XRayAnnotateFiltered(__VA_ARGS__) |
| @@ -86,6 +96,15 @@ inline void XRayReport(struct XRayTraceCapture* capture, |
| FILE* f, |
| float percent_cutoff, |
| int ticks_cutoff); |
| + |
| +#ifndef XRAY_NOPEPPER |
| +#include "ppapi/c/ppb.h" |
| +inline void XRayBrowserTraceReport(struct XRayTraceCapture* capture); |
|
nfullagar1
2013/07/17 00:53:19
add an empty {} function body
grosse
2013/07/17 19:37:56
Done.
|
| +inline void XRayBrowserRegisterInterface( |
|
nfullagar1
2013/07/17 00:53:19
XRayRegisterBrowserInterface(
grosse
2013/07/17 19:37:56
Done.
|
| + PPB_GetInterface get_browser_interface); |
|
nfullagar1
2013/07/17 00:53:19
{}
grosse
2013/07/17 19:37:56
Done.
|
| +#endif /* XRAY_NOPEPPER */ |
| + |
| + |
| #endif /* defined(XRAY) */ |
| #ifdef __cplusplus |