Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index a628105001dba8835a071ee7ca9dcde4af645036..f3f38386bd1556e36e5a1f54ba352cf4acc16edf 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -1973,6 +1973,12 @@ void SkCanvas::drawAtlas(const SkImage* atlas, const SkRSXform xform[], const Sk |
this->onDrawAtlas(atlas, xform, tex, colors, count, mode, cull, paint); |
} |
+void SkCanvas::drawAnnotation(const SkRect& rect, const char key[], SkData* value) { |
+ if (key) { |
+ this->onDrawAnnotation(rect, key, value); |
+ } |
+} |
+ |
void SkCanvas::legacy_drawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst, |
const SkPaint* paint, SrcRectConstraint constraint) { |
if (src) { |
@@ -2725,6 +2731,17 @@ void SkCanvas::onDrawAtlas(const SkImage* atlas, const SkRSXform xform[], const |
LOOPER_END |
} |
+void SkCanvas::onDrawAnnotation(const SkRect& rect, const char key[], SkData* value) { |
+ SkASSERT(key); |
+ |
+ SkPaint paint; |
+ LOOPER_BEGIN(paint, SkDrawFilter::kRect_Type, nullptr) |
+ while (iter.next()) { |
+ iter.fDevice->drawAnnotation(iter, rect, key, value); |
+ } |
+ LOOPER_END |
+} |
+ |
////////////////////////////////////////////////////////////////////////////// |
// These methods are NOT virtual, and therefore must call back into virtual |
// methods, rather than actually drawing themselves. |