diff options
author | Cary Clark <caryclark@skia.org> | 2018-01-02 11:34:14 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-02 17:00:40 +0000 |
commit | 61ca7c56bd79fe0a6cc32e943874ff5e3e5bf220 (patch) | |
tree | c459d20ef42f5dcb82a0b0113152f54413c4119d /docs/SkPaint_Reference.bmh | |
parent | e2d4e8f276ba8aee57f071e87e85f04a6a07addf (diff) |
update image doc and minor bookmaker fixes
image doc is still a work in progress.
Update online version to latest; updating
include header is still a ways off.
Remove SkPaint::flatten() example since
parameter is not publicly accessible.
Minor changes to fix typedef and std::function
references.
TBR=rmistry@google.com
Docs-Preview: https://skia.org/?cl=87120
Bug: skia:6898
Change-Id: I3553bc5fca97c5997aa61ea034b5ca10cb10df75
Reviewed-on: https://skia-review.googlesource.com/87120
Reviewed-by: Cary Clark <caryclark@skia.org>
Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'docs/SkPaint_Reference.bmh')
-rw-r--r-- | docs/SkPaint_Reference.bmh | 43 |
1 files changed, 3 insertions, 40 deletions
diff --git a/docs/SkPaint_Reference.bmh b/docs/SkPaint_Reference.bmh index aff9a7146d..f0a2d5fb92 100644 --- a/docs/SkPaint_Reference.bmh +++ b/docs/SkPaint_Reference.bmh @@ -567,47 +567,10 @@ can reconstitute the paint at a later time. #Param buffer Write_Buffer receiving the flattened Paint data ## -#Example - class PaintDumper : public SkWriteBuffer { - public: - bool isCrossProcess() const override { return false; }; - void writePad32(const void* buffer, size_t bytes) override {} - void writeByteArray(const void* data, size_t size) override {} - void writeBool(bool value) override {} - void writeScalar(SkScalar value) override {} - void writeScalarArray(const SkScalar* value, uint32_t count) override {} - void writeInt(int32_t value) override {} - void writeIntArray(const int32_t* value, uint32_t count) override {} - void writeUInt(uint32_t value) override {} - void writeString(const char* value) override {} - void writeFlattenable(const SkFlattenable* flattenable) override {} - void writeColorArray(const SkColor* color, uint32_t count) override {} - void writeColor4f(const SkColor4f& color) override {} - void writeColor4fArray(const SkColor4f* color, uint32_t count) override {} - void writePoint(const SkPoint& point) override {} - void writePointArray(const SkPoint* point, uint32_t count) override {} - void writeMatrix(const SkMatrix& matrix) override {} - void writeIRect(const SkIRect& rect) override {} - void writeRect(const SkRect& rect) override {} - void writeRegion(const SkRegion& region) override {} - void writePath(const SkPath& path) override {} - size_t writeStream(SkStream* stream, size_t length) override { return 0; } - void writeImage(const SkImage*) override {} - void writeTypeface(SkTypeface* typeface) override {} - void writePaint(const SkPaint& paint) override {} - - void writeColor(SkColor color) override { - SkDebugf("color = 0x%08x\n", color); - } - } dumper; - - SkPaint paint; - paint.setColor(SK_ColorRED); - paint.flatten(dumper); +# why is flatten() public? +#Bug 6172 ## - #StdOut - color = 0xffff0000 - ## +#NoExample ## ## |