| 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 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 this->recordedDrawCommand(); | 929 this->recordedDrawCommand(); |
| 930 } | 930 } |
| 931 | 931 |
| 932 void SkDeferredCanvas::onDrawTextOnPath(const void* text, size_t byteLength, con
st SkPath& path, | 932 void SkDeferredCanvas::onDrawTextOnPath(const void* text, size_t byteLength, con
st SkPath& path, |
| 933 const SkMatrix* matrix, const SkPaint& p
aint) { | 933 const SkMatrix* matrix, const SkPaint& p
aint) { |
| 934 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); | 934 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); |
| 935 this->drawingCanvas()->drawTextOnPath(text, byteLength, path, matrix, paint)
; | 935 this->drawingCanvas()->drawTextOnPath(text, byteLength, path, matrix, paint)
; |
| 936 this->recordedDrawCommand(); | 936 this->recordedDrawCommand(); |
| 937 } | 937 } |
| 938 | 938 |
| 939 void SkDeferredCanvas::drawPicture(SkPicture& picture) { | 939 void SkDeferredCanvas::onDrawPicture(const SkPicture* picture) { |
| 940 this->drawingCanvas()->drawPicture(picture); | 940 this->drawingCanvas()->drawPicture(picture); |
| 941 this->recordedDrawCommand(); | 941 this->recordedDrawCommand(); |
| 942 } | 942 } |
| 943 | 943 |
| 944 void SkDeferredCanvas::drawVertices(VertexMode vmode, int vertexCount, | 944 void SkDeferredCanvas::drawVertices(VertexMode vmode, int vertexCount, |
| 945 const SkPoint vertices[], | 945 const SkPoint vertices[], |
| 946 const SkPoint texs[], | 946 const SkPoint texs[], |
| 947 const SkColor colors[], SkXfermode* xmode, | 947 const SkColor colors[], SkXfermode* xmode, |
| 948 const uint16_t indices[], int indexCount, | 948 const uint16_t indices[], int indexCount, |
| 949 const SkPaint& paint) { | 949 const SkPaint& paint) { |
| 950 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); | 950 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); |
| 951 this->drawingCanvas()->drawVertices(vmode, vertexCount, vertices, texs, colo
rs, xmode, | 951 this->drawingCanvas()->drawVertices(vmode, vertexCount, vertices, texs, colo
rs, xmode, |
| 952 indices, indexCount, paint); | 952 indices, indexCount, paint); |
| 953 this->recordedDrawCommand(); | 953 this->recordedDrawCommand(); |
| 954 } | 954 } |
| 955 | 955 |
| 956 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { | 956 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { |
| 957 this->drawingCanvas()->setDrawFilter(filter); | 957 this->drawingCanvas()->setDrawFilter(filter); |
| 958 this->INHERITED::setDrawFilter(filter); | 958 this->INHERITED::setDrawFilter(filter); |
| 959 this->recordedDrawCommand(); | 959 this->recordedDrawCommand(); |
| 960 return filter; | 960 return filter; |
| 961 } | 961 } |
| 962 | 962 |
| 963 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { | 963 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { |
| 964 return this->drawingCanvas(); | 964 return this->drawingCanvas(); |
| 965 } | 965 } |
| OLD | NEW |