Exemplo n.º 1
0
        public static void invalidate(cef_browser_host_t *self, CefPaintElementType type)
        {
            invalidate_delegate d;
            var p = self->_invalidate;

            if (p == _p1a)
            {
                d = _d1a;
            }
            else
            {
                d = (invalidate_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(invalidate_delegate));
                if (_p1a == IntPtr.Zero)
                {
                    _d1a = d; _p1a = p;
                }
            }
            d(self, type);
        }
Exemplo n.º 2
0
 public static void invalidate(cef_browser_host_t* self, CefPaintElementType type)
 {
     invalidate_delegate d;
     var p = self->_invalidate;
     if (p == _p1b) { d = _d1b; }
     else
     {
         d = (invalidate_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(invalidate_delegate));
         if (_p1b == IntPtr.Zero) { _d1b = d; _p1b = p; }
     }
     d(self, type);
 }