Index: src/utils/SkCanvasStateUtils.cpp |
diff --git a/src/utils/SkCanvasStateUtils.cpp b/src/utils/SkCanvasStateUtils.cpp |
index 2c34d360d6e58f0093d4aae59c51d616defe8e84..462636ead9fb593463991973aee6a0a53a7d943d 100644 |
--- a/src/utils/SkCanvasStateUtils.cpp |
+++ b/src/utils/SkCanvasStateUtils.cpp |
@@ -11,6 +11,7 @@ |
#include "SkCanvasStack.h" |
#include "SkDevice.h" |
#include "SkErrorInternals.h" |
+#include "SkRasterClip.h" |
#include "SkWriter32.h" |
/* |
@@ -250,7 +251,7 @@ SkCanvasState* SkCanvasStateUtils::CaptureCanvasState(SkCanvas* canvas) { |
layerState->raster.rowBytes = pmap.rowBytes(); |
layerState->raster.pixels = pmap.writable_addr(); |
- setup_MC_state(&layerState->mcState, layer.matrix(), layer.clip()); |
+ setup_MC_state(&layerState->mcState, layer.matrix(), layer.clip().bwRgn()); |
layerCount++; |
} |