Chromium Code Reviews| Index: src/pipe/SkGPipeRead.cpp |
| diff --git a/src/pipe/SkGPipeRead.cpp b/src/pipe/SkGPipeRead.cpp |
| index 9047e8293fe50d61f46c158d1d2263b07503998c..ed588daa0bac5a53caf073320431b8363c640497 100644 |
| --- a/src/pipe/SkGPipeRead.cpp |
| +++ b/src/pipe/SkGPipeRead.cpp |
| @@ -404,6 +404,15 @@ static void drawDRRect_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, |
| } |
| } |
| +static void drawPatch_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, |
|
robertphillips
2014/08/05 12:44:45
line this up with others ?
dandov
2014/08/05 14:27:11
Done.
|
| + SkGPipeState* state) { |
| + SkPatch patch; |
| + reader->readPatch(&patch); |
| + if (state->shouldDraw()) { |
| + canvas->drawPatch(patch, state->paint()); |
| + } |
| +} |
| + |
| static void drawPath_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, |
| SkGPipeState* state) { |
| SkPath path; |
| @@ -775,6 +784,7 @@ static const ReadProc gReadTable[] = { |
| drawDRRect_rp, |
| drawOval_rp, |
| drawPaint_rp, |
| + drawPatch_rp, |
| drawPath_rp, |
| drawPicture_rp, |
| drawPoints_rp, |