Index: src/core/SkRecordDraw.cpp |
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp |
index 8c884d98bb0176d865cf6b083219ea11e5f7f107..92a6ea32d6251d0ef431005cfba6c2b961b82844 100644 |
--- a/src/core/SkRecordDraw.cpp |
+++ b/src/core/SkRecordDraw.cpp |
@@ -115,6 +115,8 @@ DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); |
DRAW(DrawTextBlob, drawTextBlob(r.blob, r.x, r.y, r.paint)); |
DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, &r.matrix, r.paint)); |
DRAW(DrawAtlas, drawAtlas(r.atlas, r.xforms, r.texs, r.colors, r.count, r.mode, r.cull, r.paint)); |
+DRAW(DrawLitAtlas, drawLitAtlas(r.atlas, r.xforms, r.diffTexs, r.normTexs, r.colors, |
+ r.count, r.mode, r.cull, r.paint, r.lights, r.numLights)); |
DRAW(DrawVertices, drawVertices(r.vmode, r.vertexCount, r.vertices, r.texs, r.colors, |
r.xmode.get(), r.indices, r.indexCount, r.paint)); |
#undef DRAW |
@@ -470,6 +472,14 @@ private: |
} |
} |
+ Bounds bounds(const DrawLitAtlas& op) const { |
+ if (op.cull) { |
+ return this->adjustAndMap(*op.cull, op.paint); |
+ } else { |
+ return fCurrentClipBounds; |
+ } |
+ } |
+ |
Bounds bounds(const DrawPicture& op) const { |
SkRect dst = op.picture->cullRect(); |
op.matrix.mapRect(&dst); |