| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "SkDeferredCanvas.h" | 9 #include "SkDeferredCanvas.h" |
| 10 | 10 |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 this->recordedDrawCommand(); | 892 this->recordedDrawCommand(); |
| 893 } | 893 } |
| 894 | 894 |
| 895 void SkDeferredCanvas::onDrawTextOnPath(const void* text, size_t byteLength, con
st SkPath& path, | 895 void SkDeferredCanvas::onDrawTextOnPath(const void* text, size_t byteLength, con
st SkPath& path, |
| 896 const SkMatrix* matrix, const SkPaint& p
aint) { | 896 const SkMatrix* matrix, const SkPaint& p
aint) { |
| 897 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); | 897 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); |
| 898 this->drawingCanvas()->drawTextOnPath(text, byteLength, path, matrix, paint)
; | 898 this->drawingCanvas()->drawTextOnPath(text, byteLength, path, matrix, paint)
; |
| 899 this->recordedDrawCommand(); | 899 this->recordedDrawCommand(); |
| 900 } | 900 } |
| 901 | 901 |
| 902 void SkDeferredCanvas::onDrawPicture(const SkPicture* picture) { | 902 void SkDeferredCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* m
atrix, |
| 903 this->drawingCanvas()->drawPicture(picture); | 903 const SkPaint* paint) { |
| 904 this->drawingCanvas()->drawPicture(picture, matrix, paint); |
| 904 this->recordedDrawCommand(); | 905 this->recordedDrawCommand(); |
| 905 } | 906 } |
| 906 | 907 |
| 907 void SkDeferredCanvas::drawVertices(VertexMode vmode, int vertexCount, | 908 void SkDeferredCanvas::drawVertices(VertexMode vmode, int vertexCount, |
| 908 const SkPoint vertices[], | 909 const SkPoint vertices[], |
| 909 const SkPoint texs[], | 910 const SkPoint texs[], |
| 910 const SkColor colors[], SkXfermode* xmode, | 911 const SkColor colors[], SkXfermode* xmode, |
| 911 const uint16_t indices[], int indexCount, | 912 const uint16_t indices[], int indexCount, |
| 912 const SkPaint& paint) { | 913 const SkPaint& paint) { |
| 913 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); | 914 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 925 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { | 926 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { |
| 926 this->drawingCanvas()->setDrawFilter(filter); | 927 this->drawingCanvas()->setDrawFilter(filter); |
| 927 this->INHERITED::setDrawFilter(filter); | 928 this->INHERITED::setDrawFilter(filter); |
| 928 this->recordedDrawCommand(); | 929 this->recordedDrawCommand(); |
| 929 return filter; | 930 return filter; |
| 930 } | 931 } |
| 931 | 932 |
| 932 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { | 933 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { |
| 933 return this->drawingCanvas(); | 934 return this->drawingCanvas(); |
| 934 } | 935 } |
| OLD | NEW |