forked from microsoft/WinObjC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of CGContextFlush. microsoft#2046
The implementation is based on D2D:EndDraw vs D2D:Flush. This is mainly due to the fact that D2D goes through D3D, the flush would flush the D2D batch command and will not flush D3D batch for WicBitmapRenderTargert. Also there is an issue of a potential shadow copy used by D2D, and flush does not copy over the shadow copy into the original buffer. EndDraw supports both of the issues addressed above.
- Loading branch information
1 parent
2646eb8
commit 810e930
Showing
2 changed files
with
35 additions
and
20 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