Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 266ed57e13b85980d9129155990c9272e3e4280c..0babbf6eb576668e2ad3093020e3e7db9131ef4e 100755 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -19,6 +19,7 @@ |
#include "GrGpuResourcePriv.h" |
#include "GrDrawTargetCaps.h" |
#include "GrGpu.h" |
+#include "GrImmediateDrawTarget.h" |
#include "GrIndexBuffer.h" |
#include "GrInOrderDrawBuffer.h" |
#include "GrLayerCache.h" |
@@ -132,7 +133,11 @@ void GrContext::initCommon() { |
fDidTestPMConversions = false; |
+#ifdef IMMEDIATE_MODE |
+ fDrawBuffer = SkNEW_ARGS(GrImmediateDrawTarget, (this)); |
+#else |
fDrawBuffer = SkNEW_ARGS(GrInOrderDrawBuffer, (this)); |
+#endif |
// GrBatchFontCache will eventually replace GrFontCache |
fBatchFontCache = SkNEW_ARGS(GrBatchFontCache, (this)); |