-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
224 additions
and
16 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
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
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,29 @@ | ||
using System; | ||
|
||
namespace SkiaSharp | ||
{ | ||
public unsafe class GRContextOptions | ||
{ | ||
public bool AvoidStencilBuffers { get; set; } = false; | ||
|
||
public int RuntimeProgramCacheSize { get; set; } = 256; | ||
|
||
public int GlyphCacheTextureMaximumBytes { get; set; } = 2048 * 1024 * 4; | ||
|
||
public bool AllowPathMaskCaching { get; set; } = true; | ||
|
||
public bool DoManualMipmapping { get; set; } = false; | ||
|
||
public int BufferMapThreshold { get; set; } = -1; | ||
|
||
internal GRContextOptionsNative ToNative () => | ||
new GRContextOptionsNative { | ||
fAllowPathMaskCaching = AllowPathMaskCaching ? (byte)1 : (byte)0, | ||
fAvoidStencilBuffers = AvoidStencilBuffers ? (byte)1 : (byte)0, | ||
fBufferMapThreshold = BufferMapThreshold, | ||
fDoManualMipmapping = DoManualMipmapping ? (byte)1 : (byte)0, | ||
fGlyphCacheTextureMaximumBytes = (IntPtr)GlyphCacheTextureMaximumBytes, | ||
fRuntimeProgramCacheSize = RuntimeProgramCacheSize, | ||
}; | ||
} | ||
} |
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
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
Submodule skia
updated
4 files
+3 −0 | include/c/gr_context.h | |
+9 −0 | include/c/sk_types.h | |
+27 −0 | src/c/gr_context.cpp | |
+11 −0 | src/c/sk_types_priv.h |
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
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