From: Matthew Leibowitz Date: Thu, 11 May 2017 03:32:47 +0000 (-0500) Subject: Update the structs X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5213807eb35cccef52bbf873be7663ea45ad71a;p=platform%2Fupstream%2FlibSkiaSharp.git Update the structs --- diff --git a/include/c/sk_types.h b/include/c/sk_types.h index 9d8276d..e7041a3 100644 --- a/include/c/sk_types.h +++ b/include/c/sk_types.h @@ -512,11 +512,17 @@ typedef enum { NO_SK_CODEC_ZERO_INITIALIZED, } sk_codec_zero_initialized_t; +typedef enum { + RESPECT_SK_TRANSFER_FUNCTION_BEHAVIOR, + IGNORE_SK_TRANSFER_FUNCTION_BEHAVIOR, +} sk_transfer_function_behavior_t; + typedef struct { sk_codec_zero_initialized_t fZeroInitialized; sk_irect_t* fSubset; size_t fFrameIndex; bool fHasPriorFrame; + sk_transfer_function_behavior_t fPremulBehavior; } sk_codec_options_t; typedef enum { @@ -705,10 +711,9 @@ typedef enum { AA_HAIRLINE_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS = 1 << 3, AA_CONVEX_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS = 1 << 4, AA_LINEARIZING_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS = 1 << 5, - PLS_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS = 1 << 6, - DISTANCE_FIELD_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS = 1 << 7, - TESSELLATING_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS = 1 << 8, - DEFAULT_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS = 1 << 9, + SMALL_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS = 1 << 6, + TESSELLATING_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS = 1 << 7, + DEFAULT_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS = 1 << 8, ALL_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS = DEFAULT_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS | (DEFAULT_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS - 1) } gr_contextoptions_gpupathrenderers_t; @@ -852,7 +857,8 @@ typedef struct { typedef struct { size_t fRequiredFrame; size_t fDuration; - bool fullyRecieved; + bool fFullyReceived; + sk_alphatype_t fAlphaType; } sk_codec_frameinfo_t; typedef struct sk_xmlstreamwriter_t sk_xmlstreamwriter_t; diff --git a/src/c/sk_enums.cpp b/src/c/sk_enums.cpp index 49f7b2f..6f2e92e 100644 --- a/src/c/sk_enums.cpp +++ b/src/c/sk_enums.cpp @@ -384,8 +384,7 @@ static_assert ((int)GrContextOptions::GpuPathRenderers::kMSAA == (i static_assert ((int)GrContextOptions::GpuPathRenderers::kAAHairline == (int)AA_HAIRLINE_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS, ASSERT_MSG(GrContextOptions::GpuPathRenderers, gr_contextoptions_gpupathrenderers_t)); static_assert ((int)GrContextOptions::GpuPathRenderers::kAAConvex == (int)AA_CONVEX_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS, ASSERT_MSG(GrContextOptions::GpuPathRenderers, gr_contextoptions_gpupathrenderers_t)); static_assert ((int)GrContextOptions::GpuPathRenderers::kAALinearizing == (int)AA_LINEARIZING_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS, ASSERT_MSG(GrContextOptions::GpuPathRenderers, gr_contextoptions_gpupathrenderers_t)); -static_assert ((int)GrContextOptions::GpuPathRenderers::kPLS == (int)PLS_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS, ASSERT_MSG(GrContextOptions::GpuPathRenderers, gr_contextoptions_gpupathrenderers_t)); -static_assert ((int)GrContextOptions::GpuPathRenderers::kDistanceField == (int)DISTANCE_FIELD_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS, ASSERT_MSG(GrContextOptions::GpuPathRenderers, gr_contextoptions_gpupathrenderers_t)); +static_assert ((int)GrContextOptions::GpuPathRenderers::kSmall == (int)SMALL_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS, ASSERT_MSG(GrContextOptions::GpuPathRenderers, gr_contextoptions_gpupathrenderers_t)); static_assert ((int)GrContextOptions::GpuPathRenderers::kTessellating == (int)TESSELLATING_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS, ASSERT_MSG(GrContextOptions::GpuPathRenderers, gr_contextoptions_gpupathrenderers_t)); static_assert ((int)GrContextOptions::GpuPathRenderers::kDefault == (int)DEFAULT_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS, ASSERT_MSG(GrContextOptions::GpuPathRenderers, gr_contextoptions_gpupathrenderers_t)); static_assert ((int)GrContextOptions::GpuPathRenderers::kAll == (int)ALL_GR_CONTEXT_OPTIONS_GPU_PATH_RENDERERS, ASSERT_MSG(GrContextOptions::GpuPathRenderers, gr_contextoptions_gpupathrenderers_t));