diff options
author | 2016-07-26 11:38:17 -0700 | |
---|---|---|
committer | 2016-07-26 11:38:17 -0700 | |
commit | 7e922765545f42ce691e4f3d5fbbd4e44ba47ff1 (patch) | |
tree | 40f15d00e25acaf015f46e45d11d1858eb3b8cf6 /src/gpu/SkGpuDevice.h | |
parent | 3a0dbde1cfa84b08c7dd5b597142e9f6179f2d07 (diff) |
Reduce usage of MakeRenderTargetDirect
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2187573002
Review-Url: https://codereview.chromium.org/2187573002
Diffstat (limited to 'src/gpu/SkGpuDevice.h')
-rw-r--r-- | src/gpu/SkGpuDevice.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h index 4cfd02421a..8624ae19f3 100644 --- a/src/gpu/SkGpuDevice.h +++ b/src/gpu/SkGpuDevice.h @@ -62,7 +62,8 @@ public: * the resource cache budget. On failure, returns nullptr. */ static sk_sp<SkGpuDevice> Make(GrContext*, SkBudgeted, const SkImageInfo&, - int sampleCount, const SkSurfaceProps*, InitContents); + int sampleCount, GrSurfaceOrigin, + const SkSurfaceProps*, InitContents); ~SkGpuDevice() override {} @@ -265,11 +266,12 @@ private: bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); void drawStrokedLine(const SkPoint pts[2], const SkDraw&, const SkPaint&); - static sk_sp<GrDrawContext> CreateDrawContext(GrContext*, - SkBudgeted, - const SkImageInfo&, - int sampleCount, - const SkSurfaceProps*); + static sk_sp<GrDrawContext> MakeDrawContext(GrContext*, + SkBudgeted, + const SkImageInfo&, + int sampleCount, + GrSurfaceOrigin, + const SkSurfaceProps*); friend class GrAtlasTextContext; friend class SkSurface_Gpu; // for access to surfaceProps |