Index: src/gpu/GrDrawTarget.cpp |
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp |
index 2d5d0b8ee6d5397aae26986d418babf27bf33a8e..e5baaa740487eda977cb2f071602c2aef0312a23 100644 |
--- a/src/gpu/GrDrawTarget.cpp |
+++ b/src/gpu/GrDrawTarget.cpp |
@@ -11,6 +11,7 @@ |
#include "GrBatch.h" |
#include "GrCaps.h" |
#include "GrContext.h" |
+#include "GrContextOptions.h" |
#include "GrPath.h" |
#include "GrPipeline.h" |
#include "GrMemoryPool.h" |
@@ -68,8 +69,8 @@ bool GrDrawTarget::setupDstReadIfNecessary(const GrPipelineBuilder& pipelineBuil |
drawBounds->roundOut(&drawIBounds); |
if (!copyRect.intersect(drawIBounds)) { |
#ifdef SK_DEBUG |
- GrContextDebugf(fContext, "Missed an early reject. " |
- "Bailing on draw from setupDstReadIfNecessary.\n"); |
+ GrCapsDebugf(fCaps, "Missed an early reject. " |
+ "Bailing on draw from setupDstReadIfNecessary.\n"); |
#endif |
return false; |
} |
@@ -598,7 +599,7 @@ SkString GrShaderCaps::dump() const { |
/////////////////////////////////////////////////////////////////////////////// |
-GrCaps::GrCaps() { |
+GrCaps::GrCaps(const GrContextOptions& options) { |
fMipMapSupport = false; |
fNPOTTextureTileSupport = false; |
fTwoSidedStencilSupport = false; |
@@ -621,6 +622,9 @@ GrCaps::GrCaps() { |
memset(fConfigRenderSupport, 0, sizeof(fConfigRenderSupport)); |
memset(fConfigTextureSupport, 0, sizeof(fConfigTextureSupport)); |
+ |
+ fSupressPrints = options.fSuppressPrints; |
+ fDrawPathMasksToCompressedTextureSupport = options.fDrawPathToCompressedTexture; |
} |
static SkString map_flags_to_string(uint32_t flags) { |