skia2/site/user/api/undocumented.md
skia-bookmaker e6c8575583 Update markdown files
Automatic commit by the Housekeeper-Nightly-Bookmaker bot.

TBR=rmistry@google.com
NO_MERGE_BUILDS

Change-Id: I38e7f006aba87f7dd3fdc87ca4d2090b715bc15e
Reviewed-on: https://skia-review.googlesource.com/c/168521
Commit-Queue: <skia-bookmaker@skia-swarming-bots.iam.gserviceaccount.com>
Reviewed-by: <skia-bookmaker@skia-swarming-bots.iam.gserviceaccount.com>
2018-11-06 06:11:56 +00:00

24 KiB

undocumented




Constants

Const Value Description
SkClipOp::kDifference 0
SkClipOp::kIntersect 1




static sk sp<SkColorSpace> MakeSRGBLinear()


bool gammaCloseToSRGB() const


static bool Equals(const SkColorSpace* src, const SkColorSpace* dst)


std::unique_ptr<SkCanvas> SK_API SkCreateColorSpaceXformCanvas(SkCanvas* target,
                                                     sk sp<SkColorSpace> targetCS)




SK_API void SkDebugf(const char format[], ...)



---

Type Member Description
SkDeserialPictureProc fPictureProc
void* fPictureCtx
SkDeserialTypefaceProc fTypefaceProc
void* fTypefaceCtx




SkCanvas* beginPage(SkScalar width, SkScalar height, const SkRect* content = NULL)




void draw(SkCanvas*, const SkMatrix* = NULL)


Constants

Const Value Description
kNone_SkFilterQuality 0
kLow_SkFilterQuality 1
kMedium_SkFilterQuality 2
kHigh_SkFilterQuality 3


Constants

Const Value Description
kUTF8_SkTextEncoding 0
kUTF16_SkTextEncoding 1
kUTF32_SkTextEncoding 2
kGlyphID_SkTextEncoding 3



Constants

Const Value Description
kNo_SkFontHinting 0
kSlight_SkFontHinting 1
kNormal_SkFontHinting 2
kFull_SkFontHinting 3



void flush()



int32_t width() const


int32_t height() const




Constants


Const Value Description
SkPaintDefaults_Flags 0
SkPaintDefaults_Hinting 2
SkPaintDefaults_TextSize 12
SkPaintDefaults_MiterLimit 4


bool SK_API Op(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result)




SkCanvas* beginRecording(const SkRect& bounds, SkBBHFactory* bbhFactory = NULL,
                         uint32_t recordFlags = 0)



int width() const


int height() const


bool isImmutable() const


void setImmutable()


---

Type Member Description
SkScalar fSCos
SkScalar fSSin
SkScalar fTx
SkScalar fTy





static std::unique_ptr<SkCanvas> MakeCanvas(std::unique_ptr<SkRasterHandleAllocator>,
                                            const SkImageInfo&, const Rec* rec = nullptr)




bool isValid() const



---

Type Member Description
SkSerialPictureProc fPictureProc
void* fPictureCtx
SkSerialTypefaceProc fTypefaceProc
void* fTypefaceCtx



Constants

Const Value Description
SkShader::kClamp_TileMode 0
SkShader::kRepeat_TileMode 1
SkShader::kMirror_TileMode 2


static sk sp<SkShader> MakeBitmapShader(const SkBitmap& src, TileMode tmx, TileMode tmy,
                                        const SkMatrix* localMatrix = nullptr)


static sk sp<SkShader> MakeCompose(sk sp<SkShader> dst, sk sp<SkShader> src, SkBlendMode mode,
                                   float lerp = 1)



int32_t width() const


int32_t height() const







Constants

Const Value Description
SkSurfaceProps::kLegacyFontHost_InitType 0

Topic



bool isValid() const




SkFontID uniqueID() const