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 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 | 1008 |
1009 void SkDeferredCanvas::onDrawAtlas(const SkImage* atlas, const SkRSXform xform[]
, | 1009 void SkDeferredCanvas::onDrawAtlas(const SkImage* atlas, const SkRSXform xform[]
, |
1010 const SkRect tex[], const SkColor colors[], i
nt count, | 1010 const SkRect tex[], const SkColor colors[], i
nt count, |
1011 SkXfermode::Mode mode, const SkRect* cullRect
, | 1011 SkXfermode::Mode mode, const SkRect* cullRect
, |
1012 const SkPaint* paint) { | 1012 const SkPaint* paint) { |
1013 AutoImmediateDrawIfNeeded autoDraw(*this, paint); | 1013 AutoImmediateDrawIfNeeded autoDraw(*this, paint); |
1014 this->drawingCanvas()->drawAtlas(atlas, xform, tex, colors, count, mode, cul
lRect, paint); | 1014 this->drawingCanvas()->drawAtlas(atlas, xform, tex, colors, count, mode, cul
lRect, paint); |
1015 this->recordedDrawCommand(); | 1015 this->recordedDrawCommand(); |
1016 } | 1016 } |
1017 | 1017 |
| 1018 void SkDeferredCanvas::onDrawLitAtlas(const SkImage* atlas, const SkRSXform xfor
m[], |
| 1019 const SkRect diffTex[], const SkRect normTex[
], |
| 1020 const SkColor colors[], int count, |
| 1021 SkXfermode::Mode mode, const SkRect* cullRect
, |
| 1022 const SkPaint* paint, const SkLight lights[],
int numLights) { |
| 1023 AutoImmediateDrawIfNeeded autoDraw(*this, paint); |
| 1024 this->drawingCanvas()->drawLitAtlas(atlas, xform, diffTex, normTex, colors,
count, mode, |
| 1025 cullRect, paint, lights, numLights); |
| 1026 this->recordedDrawCommand(); |
| 1027 } |
| 1028 |
1018 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { | 1029 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { |
1019 this->drawingCanvas()->setDrawFilter(filter); | 1030 this->drawingCanvas()->setDrawFilter(filter); |
1020 this->INHERITED::setDrawFilter(filter); | 1031 this->INHERITED::setDrawFilter(filter); |
1021 this->recordedDrawCommand(); | 1032 this->recordedDrawCommand(); |
1022 return filter; | 1033 return filter; |
1023 } | 1034 } |
1024 | 1035 |
1025 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { | 1036 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { |
1026 return this->drawingCanvas(); | 1037 return this->drawingCanvas(); |
1027 } | 1038 } |
OLD | NEW |