diff options
author | 2014-08-04 10:02:00 -0700 | |
---|---|---|
committer | 2014-08-04 10:02:00 -0700 | |
commit | ecfff21bde1f0ca3c36533eded325066b5f2d42d (patch) | |
tree | 72fd989d958f337a3b6c779cc3f8f34378645501 /include/core/SkCanvas.h | |
parent | d3d6b818c70fa809837eb0cdf2ff5a5d4c6dff53 (diff) |
SkCanvas interface for drawing a patch.
Added function SkCanvas::drawPatch to the API. This function
receives the patch to draw and the paint.
Added function SkBaseDevice::drawPatch to the API. This function also receives the patch to draw and the paint.
Currently SkGpuDevice and SkBitmapDevice generate the mesh taking into
account the scale factor and call the corresponding device's drawVertices.
BUG=skia:
R=jvanverth@google.com, egdaniel@google.com, bsalomon@google.com
Author: dandov@google.com
Review URL: https://codereview.chromium.org/424663006
Diffstat (limited to 'include/core/SkCanvas.h')
-rw-r--r-- | include/core/SkCanvas.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index d68a9c50ab..5c4db207cc 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -14,6 +14,7 @@ #include "SkClipStack.h" #include "SkPaint.h" #include "SkRefCnt.h" +#include "SkPatch.h" #include "SkPath.h" #include "SkRegion.h" #include "SkXfermode.h" @@ -1006,6 +1007,8 @@ public: const SkColor colors[], SkXfermode* xmode, const uint16_t indices[], int indexCount, const SkPaint& paint); + + virtual void drawPatch(const SkPatch& patch, const SkPaint& paint); /** Send a blob of data to the canvas. For canvases that draw, this call is effectively a no-op, as the data |