aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRecordReplaceDraw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrRecordReplaceDraw.cpp')
-rw-r--r--src/gpu/GrRecordReplaceDraw.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gpu/GrRecordReplaceDraw.cpp b/src/gpu/GrRecordReplaceDraw.cpp
index e4cc00696d..812584f08c 100644
--- a/src/gpu/GrRecordReplaceDraw.cpp
+++ b/src/gpu/GrRecordReplaceDraw.cpp
@@ -56,11 +56,12 @@ static inline void draw_replacement_bitmap(const GrReplacements::ReplacementInfo
class ReplaceDraw : public SkRecords::Draw {
public:
ReplaceDraw(SkCanvas* canvas,
+ SkPicture const* const drawablePicts[], int drawableCount,
const SkPicture* picture,
const GrReplacements* replacements,
const SkMatrix& initialMatrix,
SkDrawPictureCallback* callback)
- : INHERITED(canvas)
+ : INHERITED(canvas, drawablePicts, drawableCount)
, fCanvas(canvas)
, fPicture(picture)
, fReplacements(replacements)
@@ -121,7 +122,8 @@ public:
SkAutoCanvasMatrixPaint acmp(fCanvas, dp.matrix, dp.paint, dp.picture->cullRect());
// Draw sub-pictures with the same replacement list but a different picture
- ReplaceDraw draw(fCanvas, dp.picture, fReplacements, fInitialMatrix, fCallback);
+ ReplaceDraw draw(fCanvas, this->drawablePicts(), this->drawableCount(),
+ dp.picture, fReplacements, fInitialMatrix, fCallback);
fNumReplaced += draw.draw();
}
@@ -182,7 +184,8 @@ int GrRecordReplaceDraw(const SkPicture* picture,
SkDrawPictureCallback* callback) {
SkAutoCanvasRestore saveRestore(canvas, true /*save now, restore at exit*/);
- ReplaceDraw draw(canvas, picture, replacements, initialMatrix, callback);
+ // TODO: drawablePicts?
+ ReplaceDraw draw(canvas, NULL, 0, picture, replacements, initialMatrix, callback);
return draw.draw();
}