Index: skia/ext/vector_platform_device_emf_win.cc |
diff --git a/skia/ext/vector_platform_device_emf_win.cc b/skia/ext/vector_platform_device_emf_win.cc |
index e644e874e5fdc6c58897bf50f571b9986ca5042e..3c34800fa790e7d444570e47d92a29a678909278 100644 |
--- a/skia/ext/vector_platform_device_emf_win.cc |
+++ b/skia/ext/vector_platform_device_emf_win.cc |
@@ -15,6 +15,9 @@ |
namespace skia { |
+#define CHECK_FOR_NODRAW_ANNOTATION(paint) \ |
+ do { if (paint.isNoDrawAnnotation()) { return; } } while (0) |
Vitaly Buka (NO REVIEWS)
2012/08/20 20:36:45
Why do you need macro for two instances of such si
|
+ |
// static |
SkDevice* VectorPlatformDeviceEmf::CreateDevice( |
int width, int height, bool is_opaque, HANDLE shared_section) { |
@@ -173,6 +176,7 @@ void VectorPlatformDeviceEmf::drawPoints(const SkDraw& draw, |
void VectorPlatformDeviceEmf::drawRect(const SkDraw& draw, |
const SkRect& rect, |
const SkPaint& paint) { |
+ CHECK_FOR_NODRAW_ANNOTATION(paint); |
if (paint.getPathEffect()) { |
// Draw a path instead. |
SkPath path_orginal; |
@@ -210,6 +214,7 @@ void VectorPlatformDeviceEmf::drawPath(const SkDraw& draw, |
const SkPaint& paint, |
const SkMatrix* prePathMatrix, |
bool pathIsMutable) { |
+ CHECK_FOR_NODRAW_ANNOTATION(paint); |
if (paint.getPathEffect()) { |
// Apply the path effect forehand. |
SkPath path_modified; |