diff options
author | Mike Reed <reed@google.com> | 2017-04-04 15:32:04 -0400 |
---|---|---|
committer | Mike Reed <reed@google.com> | 2017-04-05 14:20:38 +0000 |
commit | 826deefda55ead0036cdb0924bc14f17d2a85420 (patch) | |
tree | 200ec673d02e096b02a3991f8821816533b863ff /libs/hwui/RecordingCanvas.h | |
parent | 06d6b4d9b0cc895c7d28e56019213800d4d522cf (diff) |
switch over to SkVertices object, and stop using deprecated methods.
This allows Skia to remove
SK_SUPPORT_LEGACY_CANVAS_VERTICES
SK_SUPPORT_LEGACY_BITMAP_SETPIXELREF
SK_SUPPORT_LEGACY_PIXELREFFACTORY
Test: Existing CTS cover these changes
Running CtsGraphicsTestCases, there were 6 failures w/ and w/o this CL.
None of the 6 seems related to this CL.
Change-Id: I724082357d9f6cb699770df3c0b9ef555b957697
Diffstat (limited to 'libs/hwui/RecordingCanvas.h')
-rw-r--r-- | libs/hwui/RecordingCanvas.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/hwui/RecordingCanvas.h b/libs/hwui/RecordingCanvas.h index 682f244659e4..ccdb4b0c1d8e 100644 --- a/libs/hwui/RecordingCanvas.h +++ b/libs/hwui/RecordingCanvas.h @@ -168,9 +168,7 @@ public: virtual void drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) override; virtual void drawPath(const SkPath& path, const SkPaint& paint) override; - virtual void drawVertices(SkCanvas::VertexMode vertexMode, int vertexCount, - const float* verts, const float* tex, const int* colors, - const uint16_t* indices, int indexCount, const SkPaint& paint) override + virtual void drawVertices(const SkVertices*, SkBlendMode, const SkPaint& paint) override { /* RecordingCanvas does not support drawVertices(); ignore */ } virtual void drawVectorDrawable(VectorDrawableRoot* tree) override; |