Index: src/core/SkSpecialSurface.cpp |
diff --git a/src/core/SkSpecialSurface.cpp b/src/core/SkSpecialSurface.cpp |
index 510926a1f5db508b429ee55dc97ddface3629422..6f99462ef15113e7e7c94a0503f4dc5b459e0209 100644 |
--- a/src/core/SkSpecialSurface.cpp |
+++ b/src/core/SkSpecialSurface.cpp |
@@ -115,13 +115,11 @@ sk_sp<SkSpecialSurface> SkSpecialSurface::MakeRaster(const SkImageInfo& info, |
class SkSpecialSurface_Gpu : public SkSpecialSurface_Base { |
public: |
- SkSpecialSurface_Gpu(sk_sp<GrDrawContext> drawContext, |
- int width, int height, |
- const SkIRect& subset) |
+ SkSpecialSurface_Gpu(sk_sp<GrDrawContext> drawContext, const SkIRect& subset) |
: INHERITED(subset, &drawContext->surfaceProps()) |
, fDrawContext(std::move(drawContext)) { |
- sk_sp<SkBaseDevice> device(SkGpuDevice::Make(fDrawContext, width, height, |
+ sk_sp<SkBaseDevice> device(SkGpuDevice::Make(fDrawContext, |
SkGpuDevice::kUninit_InitContents)); |
if (!device) { |
return; |
@@ -166,7 +164,7 @@ sk_sp<SkSpecialSurface> SkSpecialSurface::MakeRenderTarget(GrContext* context, |
const SkIRect subset = SkIRect::MakeWH(width, height); |
- return sk_make_sp<SkSpecialSurface_Gpu>(std::move(drawContext), width, height, subset); |
+ return sk_make_sp<SkSpecialSurface_Gpu>(std::move(drawContext), subset); |
} |
#endif |