| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
| 9 #include "SkPicture.h" | 9 #include "SkPicture.h" |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 | 56 |
| 57 void onDrawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE { | 57 void onDrawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE { |
| 58 this->handlePaint(paint); | 58 this->handlePaint(paint); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void onDrawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE { | 61 void onDrawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE { |
| 62 this->handlePaint(paint); | 62 this->handlePaint(paint); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void onDrawPoints(PointMode, size_t, const SkPoint[], const SkPaint& paint)
{ | 65 void onDrawPoints(PointMode, size_t, const SkPoint[], const SkPaint& paint)
SK_OVERRIDE { |
| 66 this->handlePaint(paint); | 66 this->handlePaint(paint); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void onDrawVertices(VertexMode, int, const SkPoint[], const SkPoint[], const
SkColor[], | 69 void onDrawVertices(VertexMode, int, const SkPoint[], const SkPoint[], const
SkColor[], |
| 70 SkXfermode*, const uint16_t[], int, const SkPaint& paint
) SK_OVERRIDE { | 70 SkXfermode*, const uint16_t[], int, const SkPaint& paint
) SK_OVERRIDE { |
| 71 this->handlePaint(paint); | 71 this->handlePaint(paint); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void onDrawPath(const SkPath&, const SkPaint& paint) SK_OVERRIDE { | 74 void onDrawPath(const SkPath&, const SkPaint& paint) SK_OVERRIDE { |
| 75 this->handlePaint(paint); | 75 this->handlePaint(paint); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 if (ibounds.isEmpty()) { | 153 if (ibounds.isEmpty()) { |
| 154 return; | 154 return; |
| 155 } | 155 } |
| 156 | 156 |
| 157 SkPrerollCanvas canvas(ibounds.width(), ibounds.height(), props); | 157 SkPrerollCanvas canvas(ibounds.width(), ibounds.height(), props); |
| 158 | 158 |
| 159 canvas.translate(-SkIntToScalar(ibounds.left()), -SkIntToScalar(ibounds.top(
))); | 159 canvas.translate(-SkIntToScalar(ibounds.left()), -SkIntToScalar(ibounds.top(
))); |
| 160 canvas.drawPicture(this, initialMatrix, NULL); | 160 canvas.drawPicture(this, initialMatrix, NULL); |
| 161 } | 161 } |
| 162 | 162 |
| OLD | NEW |