| Index: src/gpu/SkGpuDevice.cpp
|
| diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
|
| index 04bc14e5631fb3f3c2740ed4e991ec0eeb721d1f..a7bf82e6f07d4bf37fe0107d35228b4d41a30a6f 100644
|
| --- a/src/gpu/SkGpuDevice.cpp
|
| +++ b/src/gpu/SkGpuDevice.cpp
|
| @@ -68,11 +68,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.
|
| @@ -401,7 +396,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();
|
| @@ -453,7 +447,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;
|
| @@ -500,7 +493,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;
|
| @@ -565,7 +557,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()) {
|
| @@ -606,7 +597,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
|
| @@ -661,7 +651,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);
|
|
|
| @@ -1472,7 +1461,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() ||
|
|
|