| Index: src/gpu/SkGpuDevice.cpp
|
| diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
|
| index e97f275e7a362fac6be06797c420d23046a9dfa4..9f6b9399c715d15d01fe7662b1fb57904f781dc9 100644
|
| --- a/src/gpu/SkGpuDevice.cpp
|
| +++ b/src/gpu/SkGpuDevice.cpp
|
| @@ -69,11 +69,6 @@ enum { kDefaultImageFilterCacheSize = 32 * 1024 * 1024 };
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| -#define CHECK_FOR_ANNOTATION(paint) \
|
| - do { if (paint.getAnnotation()) { return; } } while (0)
|
| -
|
| -///////////////////////////////////////////////////////////////////////////////
|
| -
|
| // Helper for turning a bitmap into a texture. If the bitmap is GrTexture backed this
|
| // just accesses the backing GrTexture. Otherwise, it creates a cached texture
|
| // representation and releases it in the destructor.
|
| @@ -402,7 +397,6 @@ void SkGpuDevice::drawPoints(const SkDraw& draw, SkCanvas::PointMode mode,
|
| size_t count, const SkPoint pts[], const SkPaint& paint) {
|
| ASSERT_SINGLE_OWNER
|
| GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawPoints", fContext);
|
| - CHECK_FOR_ANNOTATION(paint);
|
| CHECK_SHOULD_DRAW(draw);
|
|
|
| SkScalar width = paint.getStrokeWidth();
|
| @@ -454,7 +448,6 @@ void SkGpuDevice::drawPoints(const SkDraw& draw, SkCanvas::PointMode mode,
|
| void SkGpuDevice::drawRect(const SkDraw& draw, const SkRect& rect, const SkPaint& paint) {
|
| ASSERT_SINGLE_OWNER
|
| GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawRect", fContext);
|
| - CHECK_FOR_ANNOTATION(paint);
|
| CHECK_SHOULD_DRAW(draw);
|
|
|
| bool doStroke = paint.getStyle() != SkPaint::kFill_Style;
|
| @@ -501,7 +494,6 @@ void SkGpuDevice::drawRRect(const SkDraw& draw, const SkRRect& rect,
|
| const SkPaint& paint) {
|
| ASSERT_SINGLE_OWNER
|
| GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawRRect", fContext);
|
| - CHECK_FOR_ANNOTATION(paint);
|
| CHECK_SHOULD_DRAW(draw);
|
|
|
| GrPaint grPaint;
|
| @@ -625,7 +617,6 @@ void SkGpuDevice::drawDRRect(const SkDraw& draw, const SkRRect& outer,
|
| const SkRRect& inner, const SkPaint& paint) {
|
| ASSERT_SINGLE_OWNER
|
| GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawDRRect", fContext);
|
| - CHECK_FOR_ANNOTATION(paint);
|
| CHECK_SHOULD_DRAW(draw);
|
|
|
| if (outer.isEmpty()) {
|
| @@ -662,7 +653,6 @@ void SkGpuDevice::drawDRRect(const SkDraw& draw, const SkRRect& outer,
|
| void SkGpuDevice::drawOval(const SkDraw& draw, const SkRect& oval, const SkPaint& paint) {
|
| ASSERT_SINGLE_OWNER
|
| GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawOval", fContext);
|
| - CHECK_FOR_ANNOTATION(paint);
|
| CHECK_SHOULD_DRAW(draw);
|
|
|
| // Presumably the path effect warps this to something other than an oval
|
| @@ -717,7 +707,6 @@ void SkGpuDevice::drawPath(const SkDraw& draw, const SkPath& origSrcPath,
|
| }
|
| }
|
|
|
| - CHECK_FOR_ANNOTATION(paint);
|
| CHECK_SHOULD_DRAW(draw);
|
| GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawPath", fContext);
|
|
|
| @@ -1528,7 +1517,6 @@ void SkGpuDevice::drawProducerNine(const SkDraw& draw, GrTextureProducer* produc
|
| const SkIRect& center, const SkRect& dst, const SkPaint& paint) {
|
| GR_CREATE_TRACE_MARKER_CONTEXT("SkGpuDevice", "drawProducerNine", fContext);
|
|
|
| - CHECK_FOR_ANNOTATION(paint);
|
| CHECK_SHOULD_DRAW(draw);
|
|
|
| bool useFallback = paint.getMaskFilter() || paint.isAntiAlias() ||
|
|
|