Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 757dfbf521e7d6f083e03de119d15d6148eeddae..fb5fa7cc7a5f25004fbed7c69815a16ab300edff 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -1862,7 +1862,7 @@ |
/////////////////////////////////////////////////////////////////////////////// |
-SkBaseDevice* SkGpuDevice::onCreateDevice(const CreateInfo& cinfo, const SkPaint*) { |
+SkBaseDevice* SkGpuDevice::onCreateCompatibleDevice(const CreateInfo& cinfo) { |
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 = (kNever_TileUsage == cinfo.fTileUsage) ? |
+ const GrContext::ScratchTexMatch match = (kSaveLayer_Usage == cinfo.fUsage) ? |
GrContext::kApprox_ScratchTexMatch : |
GrContext::kExact_ScratchTexMatch; |
texture.reset(fContext->refScratchTexture(desc, match)); |