diff options
author | dandov <dandov@google.com> | 2014-08-12 08:34:29 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-12 08:34:29 -0700 |
commit | b3c9d1c33caf325aada244204215eb790c228c12 (patch) | |
tree | 067c0017914891d0aff2b6d6163f2de1c2b20c54 /src/core/SkBBoxRecord.h | |
parent | 9c7695b0b59b97da933cd11014c922344a8d7654 (diff) |
SkCanvas::drawPatch param SkPoint[12]
drawPatch now receives as parameter const SkPoint cubics[12]
Adjusted derived classes and serialization.
Ajusted GM's and benches that take into account combinations of optional
parameters, the scale of the patch and 4 different types of patches.
Planning on adding the extra functionality of SkPatch in another CL.
BUG=skia:
R=egdaniel@google.com, reed@google.com
Author: dandov@google.com
Review URL: https://codereview.chromium.org/463493002
Diffstat (limited to 'src/core/SkBBoxRecord.h')
-rw-r--r-- | src/core/SkBBoxRecord.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkBBoxRecord.h b/src/core/SkBBoxRecord.h index eafd9d465e..1d19b70054 100644 --- a/src/core/SkBBoxRecord.h +++ b/src/core/SkBBoxRecord.h @@ -55,7 +55,6 @@ public: const SkColor colors[], SkXfermode* xfer, const uint16_t indices[], int indexCount, const SkPaint& paint) SK_OVERRIDE; - virtual void drawPatch(const SkPatch& patch, const SkPaint& paint) SK_OVERRIDE; protected: virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRIDE; @@ -67,6 +66,9 @@ protected: SkScalar constY, const SkPaint&) SK_OVERRIDE; virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, const SkMatrix* matrix, const SkPaint&) SK_OVERRIDE; + virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], + const SkPoint texCoords[4], SkXfermode* xmode, + const SkPaint& paint) SK_OVERRIDE; virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVERRIDE; virtual void willSave() SK_OVERRIDE; virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) SK_OVERRIDE; |