Chromium Code Reviews| Index: src/gpu/GrGpu.h |
| diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h |
| index 2691b3f0d26d9e7395af74993f2d1ddb58bce0b3..2ce1570381ae82a8e64f0314b488fe26af7966f4 100644 |
| --- a/src/gpu/GrGpu.h |
| +++ b/src/gpu/GrGpu.h |
| @@ -354,6 +354,10 @@ public: |
| kDrawPaths_DrawType, |
| }; |
| + static bool IsPathRenderingDrawType(DrawType type) { |
| + return kDrawPath_DrawType == type || kDrawPaths_DrawType == type; |
| + } |
| + |
| protected: |
| DrawType PrimTypeToDrawType(GrPrimitiveType type) { |
| switch (type) { |