Index: third_party/grpc/src/core/iomgr/iomgr_internal.h |
diff --git a/third_party/WebKit/Source/platform/graphics/ProfilingCanvas.h b/third_party/grpc/src/core/iomgr/iomgr_internal.h |
similarity index 64% |
copy from third_party/WebKit/Source/platform/graphics/ProfilingCanvas.h |
copy to third_party/grpc/src/core/iomgr/iomgr_internal.h |
index 0bb2dbbe60b4811a889284fd13fe55f57a53d43b..ac2c46ebe6230df3242f4a8a3cb04ba7b3cf7dbf 100644 |
--- a/third_party/WebKit/Source/platform/graphics/ProfilingCanvas.h |
+++ b/third_party/grpc/src/core/iomgr/iomgr_internal.h |
@@ -1,5 +1,7 @@ |
/* |
- * Copyright (C) 2013 Google Inc. All rights reserved. |
+ * |
+ * Copyright 2015-2016, Google Inc. |
+ * All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -26,37 +28,35 @@ |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+ * |
*/ |
-#ifndef ProfilingCanvas_h |
-#define ProfilingCanvas_h |
- |
-#include "platform/graphics/InterceptingCanvas.h" |
-#include "wtf/Vector.h" |
+#ifndef GRPC_INTERNAL_CORE_IOMGR_IOMGR_INTERNAL_H |
+#define GRPC_INTERNAL_CORE_IOMGR_IOMGR_INTERNAL_H |
-namespace blink { |
+#include <stdbool.h> |
-class ProfilingCanvas; |
+#include "src/core/iomgr/iomgr.h" |
+#include <grpc/support/sync.h> |
-template<> class CanvasInterceptor<ProfilingCanvas> : protected InterceptingCanvasBase::CanvasInterceptorBase<ProfilingCanvas> { |
-public: |
- CanvasInterceptor(InterceptingCanvasBase*); |
- ~CanvasInterceptor(); |
-private: |
- double m_startTime; |
-}; |
+typedef struct grpc_iomgr_object { |
+ char *name; |
+ struct grpc_iomgr_object *next; |
+ struct grpc_iomgr_object *prev; |
+} grpc_iomgr_object; |
-class ProfilingCanvas : public InterceptingCanvas<ProfilingCanvas> { |
-public: |
- explicit ProfilingCanvas(SkBitmap); |
- void setTimings(Vector<double>*); |
+void grpc_pollset_global_init(void); |
+void grpc_pollset_global_shutdown(void); |
-private: |
- friend class CanvasInterceptor<ProfilingCanvas>; |
+void grpc_iomgr_register_object(grpc_iomgr_object *obj, const char *name); |
+void grpc_iomgr_unregister_object(grpc_iomgr_object *obj); |
- Vector<double>* m_timings; |
-}; |
+void grpc_iomgr_platform_init(void); |
+/** flush any globally queued work from iomgr */ |
+void grpc_iomgr_platform_flush(void); |
+/** tear down all platform specific global iomgr structures */ |
+void grpc_iomgr_platform_shutdown(void); |
-} // namespace blink |
+bool grpc_iomgr_abort_on_leaks(void); |
-#endif // ProfilingCanvas_h |
+#endif /* GRPC_INTERNAL_CORE_IOMGR_IOMGR_INTERNAL_H */ |