Index: src/gpu/GrInOrderDrawBuffer.cpp |
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp |
index 3827830de94dbdabc95f979cd28b5c0fa7969528..0d838e1db14122406dad9723edc6509a02feeee6 100644 |
--- a/src/gpu/GrInOrderDrawBuffer.cpp |
+++ b/src/gpu/GrInOrderDrawBuffer.cpp |
@@ -7,11 +7,16 @@ |
#include "GrInOrderDrawBuffer.h" |
-static const bool kEnableReordering = true; |
+// We will use the reordering buffer, unless we have NVPR. |
+// TODO move NVPR to batch so we can reorder |
+static inline bool allow_reordering(const GrShaderCaps* caps) { |
+ return !caps->pathRenderingSupport(); |
+} |
GrInOrderDrawBuffer::GrInOrderDrawBuffer(GrContext* context) |
: INHERITED(context) |
- , fCommands(GrCommandBuilder::Create(context->getGpu(), kEnableReordering)) |
+ , fCommands(GrCommandBuilder::Create(context->getGpu(), |
bsalomon
2015/05/27 17:26:09
We can't get here without a GPU object.
|
+ allow_reordering(context->getGpu()->caps()->shaderCaps()))) |
, fPathIndexBuffer(kPathIdxBufferMinReserve * sizeof(char)/4) |
, fPathTransformBuffer(kPathXformBufferMinReserve * sizeof(float)/4) |
, fPipelineBuffer(kPipelineBufferMinReserve) |