Index: bench/benchmain.cpp |
=================================================================== |
--- bench/benchmain.cpp (revision 9282) |
+++ bench/benchmain.cpp (working copy) |
@@ -820,7 +820,12 @@ |
switch(benchMode) { |
case kDeferredSilent_benchModes: |
case kDeferred_benchModes: |
- canvas = new SkDeferredCanvas(device); |
+ canvas = |
+#if SK_DEFERRED_CANVAS_USES_FACTORIES |
+ SkDeferredCanvas::Create(device); |
+#else |
+ SkNEW_ARGS(SkDeferredCanvas, (device)); |
+#endif |
break; |
case kRecord_benchModes: |
canvas = pictureRecordTo.beginRecording(dim.fX, dim.fY, |