Index: src/gpu/SkGpuDevice.h |
diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h |
index b72e917a375bd1b9efa3c98b3f48b247bac95048..957f61eaf2c02af1a04f135a958434ba4a5cc824 100644 |
--- a/src/gpu/SkGpuDevice.h |
+++ b/src/gpu/SkGpuDevice.h |
@@ -42,7 +42,8 @@ public: |
* MakeFromBackendTexture, MakeFromBackendRenderTarget, |
* and MakeFromBackendTextureAsRenderTarget. Only the first is worrisome. |
*/ |
- static sk_sp<SkGpuDevice> Make(sk_sp<GrRenderTarget> target, |
+ static sk_sp<SkGpuDevice> Make(int width, int height, |
+ sk_sp<GrRenderTarget> target, |
const SkSurfaceProps*, |
InitContents); |
@@ -50,9 +51,7 @@ public: |
* Creates an SkGpuDevice from a GrDrawContext whose backing width/height is |
* different than its actual width/height (e.g., approx-match scratch texture). |
*/ |
- static sk_sp<SkBaseDevice> Make(sk_sp<GrDrawContext> drawContext, |
- int width, int height, |
- InitContents); |
+ static sk_sp<SkBaseDevice> Make(sk_sp<GrDrawContext> drawContext, InitContents); |
/** |
* New device that will create an offscreen renderTarget based on the ImageInfo and |
@@ -173,7 +172,7 @@ private: |
static bool CheckAlphaTypeAndGetFlags(const SkImageInfo* info, InitContents init, |
unsigned* flags); |
- SkGpuDevice(sk_sp<GrDrawContext>, int width, int height, unsigned flags); |
+ SkGpuDevice(sk_sp<GrDrawContext>, unsigned flags); |
SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; |