Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index fb5fa7cc7a5f25004fbed7c69815a16ab300edff..757dfbf521e7d6f083e03de119d15d6148eeddae 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -1862,7 +1862,7 @@ |
/////////////////////////////////////////////////////////////////////////////// |
-SkBaseDevice* SkGpuDevice::onCreateCompatibleDevice(const CreateInfo& cinfo) { |
+SkBaseDevice* SkGpuDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint*) { |
GrSurfaceDesc desc; |
desc.fConfig = fRenderTarget->config(); |
desc.fFlags = kRenderTarget_GrSurfaceFlag; |
@@ -1876,7 +1876,7 @@ |
// layers are never draw in repeat modes, so we can request an approx |
// match and ignore any padding. |
- const GrContext::ScratchTexMatch match = (kSaveLayer_Usage == cinfo.fUsage) ? |
+ const GrContext::ScratchTexMatch match = (kNever_TileUsage == cinfo.fTileUsage) ? |
GrContext::kApprox_ScratchTexMatch : |
GrContext::kExact_ScratchTexMatch; |
texture.reset(fContext->refScratchTexture(desc, match)); |