remove experimental from some APIs (that are no longer experiments)
Change-Id: I614dc116307cbeefb26768e2fff423bb50603eaf Reviewed-on: https://skia-review.googlesource.com/c/skia/+/209168 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com> Auto-Submit: Mike Reed <reed@google.com>
This commit is contained in:
parent
d8d859a97e
commit
5000791eeb
@ -1922,9 +1922,7 @@ public:
|
||||
void drawSimpleText(const void* text, size_t byteLength, SkTextEncoding encoding,
|
||||
SkScalar x, SkScalar y, const SkFont& font, const SkPaint& paint);
|
||||
|
||||
/** Experimental.
|
||||
|
||||
Draws null terminated string, with origin at (x, y), using clip, SkMatrix,
|
||||
/** Draws null terminated string, with origin at (x, y), using clip, SkMatrix,
|
||||
SkFont font, and SkPaint paint.
|
||||
|
||||
This function uses the default character-to-glyph mapping from the
|
||||
@ -1953,9 +1951,7 @@ public:
|
||||
this->drawSimpleText(str, strlen(str), kUTF8_SkTextEncoding, x, y, font, paint);
|
||||
}
|
||||
|
||||
/** Experimental.
|
||||
|
||||
Draws SkString, with origin at (x, y), using clip, SkMatrix, SkFont font,
|
||||
/** Draws SkString, with origin at (x, y), using clip, SkMatrix, SkFont font,
|
||||
and SkPaint paint.
|
||||
|
||||
This function uses the default character-to-glyph mapping from the
|
||||
|
@ -479,8 +479,7 @@ public:
|
||||
*/
|
||||
SkScalar getSpacing() const { return this->getMetrics(nullptr); }
|
||||
|
||||
/** Experimental.
|
||||
* Dumps fields of the font to SkDebugf. May change its output over time, so clients should
|
||||
/** Dumps fields of the font to SkDebugf. May change its output over time, so clients should
|
||||
* not rely on this for anything specific. Used to aid in debugging.
|
||||
*/
|
||||
void dump() const;
|
||||
|
@ -104,8 +104,7 @@ public:
|
||||
return MakeFromText(string, strlen(string), font, encoding);
|
||||
}
|
||||
|
||||
/** Experimental.
|
||||
Returns a textblob built from a single run of text with x-positions and a single y value.
|
||||
/** Returns a textblob built from a single run of text with x-positions and a single y value.
|
||||
This is equivalent to using SkTextBlobBuilder and calling allocRunPosH().
|
||||
Returns nullptr if byteLength is zero.
|
||||
|
||||
@ -121,8 +120,7 @@ public:
|
||||
const SkScalar xpos[], SkScalar constY, const SkFont& font,
|
||||
SkTextEncoding encoding = kUTF8_SkTextEncoding);
|
||||
|
||||
/** Experimental.
|
||||
Returns a textblob built from a single run of text with positions.
|
||||
/** Returns a textblob built from a single run of text with positions.
|
||||
This is equivalent to using SkTextBlobBuilder and calling allocRunPos().
|
||||
Returns nullptr if byteLength is zero.
|
||||
|
||||
@ -137,7 +135,6 @@ public:
|
||||
const SkPoint pos[], const SkFont& font,
|
||||
SkTextEncoding encoding = kUTF8_SkTextEncoding);
|
||||
|
||||
// Experimental
|
||||
static sk_sp<SkTextBlob> MakeFromRSXform(const void* text, size_t byteLength,
|
||||
const SkRSXform xform[], const SkFont& font,
|
||||
SkTextEncoding encoding = kUTF8_SkTextEncoding);
|
||||
@ -274,9 +271,8 @@ public:
|
||||
char* utf8text; //!< reserved for future use
|
||||
uint32_t* clusters; //!< reserved for future use
|
||||
|
||||
// experimental
|
||||
// Helpers, since the "pos" field can be different types (always some number of floats).
|
||||
SkPoint* points() const { return reinterpret_cast<SkPoint*>(pos); }
|
||||
// experimental
|
||||
SkRSXform* xforms() const { return reinterpret_cast<SkRSXform*>(pos); }
|
||||
};
|
||||
|
||||
@ -351,7 +347,7 @@ public:
|
||||
const RunBuffer& allocRunPos(const SkFont& font, int count,
|
||||
const SkRect* bounds = nullptr);
|
||||
|
||||
// Experimental, RunBuffer.pos points to SkRSXform array
|
||||
// RunBuffer.pos points to SkRSXform array
|
||||
const RunBuffer& allocRunRSXform(const SkFont& font, int count);
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user