Index: src/gpu/SkGpuDevice.cpp |
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp |
index 060b2a1e45dec890f506de0ebb39a1f472ae156e..ed4ca7429753fb2045b9458f3a0f4d360eb7332d 100644 |
--- a/src/gpu/SkGpuDevice.cpp |
+++ b/src/gpu/SkGpuDevice.cpp |
@@ -149,15 +149,13 @@ |
SkGpuDevice* SkGpuDevice::Create(GrContext* context, SkSurface::Budgeted budgeted, |
const SkImageInfo& info, int sampleCount, |
- const SkSurfaceProps* props, InitContents init, |
- GrTextureStorageAllocator customAllocator) { |
+ const SkSurfaceProps* props, InitContents init) { |
unsigned flags; |
if (!CheckAlphaTypeAndGetFlags(&info, init, &flags)) { |
return nullptr; |
} |
- SkAutoTUnref<GrRenderTarget> rt(CreateRenderTarget( |
- context, budgeted, info, sampleCount, customAllocator)); |
+ SkAutoTUnref<GrRenderTarget> rt(CreateRenderTarget(context, budgeted, info, sampleCount)); |
if (nullptr == rt) { |
return nullptr; |
} |
@@ -184,9 +182,8 @@ |
} |
} |
-GrRenderTarget* SkGpuDevice::CreateRenderTarget( |
- GrContext* context, SkSurface::Budgeted budgeted, const SkImageInfo& origInfo, |
- int sampleCount, GrTextureStorageAllocator textureStorageAllocator) { |
+GrRenderTarget* SkGpuDevice::CreateRenderTarget(GrContext* context, SkSurface::Budgeted budgeted, |
+ const SkImageInfo& origInfo, int sampleCount) { |
if (kUnknown_SkColorType == origInfo.colorType() || |
origInfo.width() < 0 || origInfo.height() < 0) { |
return nullptr; |
@@ -215,7 +212,6 @@ |
desc.fHeight = info.height(); |
desc.fConfig = SkImageInfo2GrPixelConfig(info); |
desc.fSampleCnt = sampleCount; |
- desc.fTextureStorageAllocator = textureStorageAllocator; |
GrTexture* texture = context->textureProvider()->createTexture( |
desc, SkToBool(budgeted), nullptr, 0); |
if (nullptr == texture) { |
@@ -326,8 +322,7 @@ |
: SkSurface::kNo_Budgeted; |
SkAutoTUnref<GrRenderTarget> newRT(CreateRenderTarget( |
- this->context(), budgeted, this->imageInfo(), fRenderTarget->desc().fSampleCnt, |
- fRenderTarget->desc().fTextureStorageAllocator)); |
+ this->context(), budgeted, this->imageInfo(), fRenderTarget->desc().fSampleCnt)); |
if (nullptr == newRT) { |
return; |
@@ -1479,7 +1474,7 @@ |
SkRect srcR, dstR; |
while (iter.next(&srcR, &dstR)) { |
- this->drawTextureProducer(producer, &srcR, &dstR, SkCanvas::kStrict_SrcRectConstraint, |
+ this->drawTextureProducer(producer, &srcR, &dstR, SkCanvas::kStrict_SrcRectConstraint, |
*draw.fMatrix, fClip, paint); |
} |
return; |