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 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 SkBounder* SkDeferredCanvas::setBounder(SkBounder* bounder) { | |
957 this->drawingCanvas()->setBounder(bounder); | |
958 this->INHERITED::setBounder(bounder); | |
959 this->recordedDrawCommand(); | |
960 return bounder; | |
961 } | |
962 | |
963 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { | 956 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { |
964 this->drawingCanvas()->setDrawFilter(filter); | 957 this->drawingCanvas()->setDrawFilter(filter); |
965 this->INHERITED::setDrawFilter(filter); | 958 this->INHERITED::setDrawFilter(filter); |
966 this->recordedDrawCommand(); | 959 this->recordedDrawCommand(); |
967 return filter; | 960 return filter; |
968 } | 961 } |
969 | 962 |
970 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { | 963 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { |
971 return this->drawingCanvas(); | 964 return this->drawingCanvas(); |
972 } | 965 } |
OLD | NEW |