From 61ca7c56bd79fe0a6cc32e943874ff5e3e5bf220 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Tue, 2 Jan 2018 11:34:14 -0500 Subject: 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 Commit-Queue: Cary Clark --- docs/SkPaint_Reference.bmh | 43 +++---------------------------------------- 1 file changed, 3 insertions(+), 40 deletions(-) (limited to 'docs/SkPaint_Reference.bmh') 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 ## ## -- cgit v1.2.3