Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8804 from tesonep/8655-SurfacePluginDLL-is-crashi…
…ng-with-the-headless-VM-at-restart 8655-SurfacePluginDLL-is-crashing-with-the-headless-VM-at-restart
- Loading branch information
Showing
2 changed files
with
86 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Extension { #name : #AthensCairoSurface } | ||
|
||
{ #category : #'*Deprecated90' } | ||
AthensCairoSurface class >> ioFindSurface: id handle: handlePtr [ | ||
" int ioFindSurface(int surfaceID, sqSurfaceDispatch *fn, int *surfaceHandle); | ||
Find the surface with the given ID, and, optionally, | ||
the given set of surface functions. The registered handle | ||
is returned in surfaceHandle. Return true if successful | ||
(e.g., the surface has been found), false otherwise. | ||
" | ||
|
||
"This is deprecated... We should use the plugin. Mixing FFI calls and Primitive calls breaks the guarantees of the initialization of plugins." | ||
|
||
self ffiCall: #( bool ioFindSurface(int id, 0 , int *handlePtr) ) module: #SurfacePlugin | ||
] | ||
|
||
{ #category : #'*Deprecated90' } | ||
AthensCairoSurface class >> ioRegisterSurface: aCairoSurfaceHandle dispatch: sqSurfaceDispatchPtr surfaceId: idHolder [ | ||
" | ||
int ioRegisterSurface(int surfaceHandle, sqSurfaceDispatch *fn, int *surfaceID); | ||
Register a new surface with the given handle and | ||
the set of surface functions. The new ID is returned | ||
in surfaceID. Returns true if successful, false | ||
otherwise. | ||
" | ||
|
||
"This is deprecated... We should use the plugin. Mixing FFI calls and Primitive calls breaks the guarantees of the initialization of plugins." | ||
|
||
self ffiCall: #(bool ioRegisterSurface(void* aCairoSurfaceHandle, void *sqSurfaceDispatchPtr, void *idHolder)) module: #SurfacePlugin | ||
] | ||
|
||
{ #category : #'*Deprecated90' } | ||
AthensCairoSurface class >> ioUnregisterSurface: aCairoSurfaceId [ | ||
" | ||
ioUnregisterSurface: | ||
Unregister the surface with the given id. | ||
Returns true if successful, false otherwise. | ||
" | ||
"This is deprecated... We should use the plugin. Mixing FFI calls and Primitive calls breaks the guarantees of the initialization of plugins." | ||
|
||
self ffiCall: #( int ioUnregisterSurface(ulong aCairoSurfaceId) ) module: #SurfacePlugin | ||
] |