| Index: src/core/SkBitmapDevice.cpp
|
| diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp
|
| index ff68481538286fd25f92734f527a3134de03b1f4..eac21e2d48b427f4b7d0d2743ecd450a18fa27e5 100644
|
| --- a/src/core/SkBitmapDevice.cpp
|
| +++ b/src/core/SkBitmapDevice.cpp
|
| @@ -13,8 +13,8 @@
|
|
|
| SK_DEFINE_INST_COUNT(SkBitmapDevice)
|
|
|
| -#define CHECK_FOR_NODRAW_ANNOTATION(paint) \
|
| - do { if (paint.isNoDrawAnnotation()) { return; } } while (0)
|
| +#define CHECK_FOR_ANNOTATION(paint) \
|
| + do { if (paint.getAnnotation()) { return; } } while (0)
|
|
|
| SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap)
|
| : fBitmap(bitmap) {
|
| @@ -210,17 +210,17 @@ void SkBitmapDevice::drawPaint(const SkDraw& draw, const SkPaint& paint) {
|
|
|
| void SkBitmapDevice::drawPoints(const SkDraw& draw, SkCanvas::PointMode mode, size_t count,
|
| const SkPoint pts[], const SkPaint& paint) {
|
| - CHECK_FOR_NODRAW_ANNOTATION(paint);
|
| + CHECK_FOR_ANNOTATION(paint);
|
| draw.drawPoints(mode, count, pts, paint);
|
| }
|
|
|
| void SkBitmapDevice::drawRect(const SkDraw& draw, const SkRect& r, const SkPaint& paint) {
|
| - CHECK_FOR_NODRAW_ANNOTATION(paint);
|
| + CHECK_FOR_ANNOTATION(paint);
|
| draw.drawRect(r, paint);
|
| }
|
|
|
| void SkBitmapDevice::drawOval(const SkDraw& draw, const SkRect& oval, const SkPaint& paint) {
|
| - CHECK_FOR_NODRAW_ANNOTATION(paint);
|
| + CHECK_FOR_ANNOTATION(paint);
|
|
|
| SkPath path;
|
| path.addOval(oval);
|
| @@ -230,7 +230,7 @@ void SkBitmapDevice::drawOval(const SkDraw& draw, const SkRect& oval, const SkPa
|
| }
|
|
|
| void SkBitmapDevice::drawRRect(const SkDraw& draw, const SkRRect& rrect, const SkPaint& paint) {
|
| - CHECK_FOR_NODRAW_ANNOTATION(paint);
|
| + CHECK_FOR_ANNOTATION(paint);
|
|
|
| SkPath path;
|
| path.addRRect(rrect);
|
| @@ -242,7 +242,7 @@ void SkBitmapDevice::drawRRect(const SkDraw& draw, const SkRRect& rrect, const S
|
| void SkBitmapDevice::drawPath(const SkDraw& draw, const SkPath& path,
|
| const SkPaint& paint, const SkMatrix* prePathMatrix,
|
| bool pathIsMutable) {
|
| - CHECK_FOR_NODRAW_ANNOTATION(paint);
|
| + CHECK_FOR_ANNOTATION(paint);
|
| draw.drawPath(path, paint, prePathMatrix, pathIsMutable);
|
| }
|
|
|
|
|