Chromium Code Reviews| Index: src/image/SkSurface_Gpu.cpp |
| diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp |
| index fb087ea24bb26efe542d135a2a9e497afd74fa59..176338a847b8e5514f45c9f9d40dc5d7648f85da 100644 |
| --- a/src/image/SkSurface_Gpu.cpp |
| +++ b/src/image/SkSurface_Gpu.cpp |
| @@ -14,7 +14,7 @@ class SkSurface_Gpu : public SkSurface_Base { |
| public: |
| SK_DECLARE_INST_COUNT(SkSurface_Gpu) |
| - SkSurface_Gpu(GrRenderTarget*, bool cached, const SkSurfaceProps*, bool doClear); |
| + SkSurface_Gpu(GrRenderTarget*, const SkSurfaceProps*, bool doClear); |
| virtual ~SkSurface_Gpu(); |
| virtual SkCanvas* onNewCanvas() SK_OVERRIDE; |
| @@ -33,12 +33,10 @@ private: |
| /////////////////////////////////////////////////////////////////////////////// |
|
robertphillips
2014/10/07 13:59:34
overlength ?
bsalomon
2014/10/07 14:20:13
Done.
|
| -SkSurface_Gpu::SkSurface_Gpu(GrRenderTarget* renderTarget, bool cached, const SkSurfaceProps* props, |
| - bool doClear) |
| +SkSurface_Gpu::SkSurface_Gpu(GrRenderTarget* renderTarget, const SkSurfaceProps* props, bool doClear) |
| : INHERITED(renderTarget->width(), renderTarget->height(), props) |
| { |
| int deviceFlags = 0; |
| - deviceFlags |= cached ? SkGpuDevice::kCached_Flag : 0; |
| deviceFlags |= this->props().isUseDistanceFieldFonts() ? SkGpuDevice::kDFFonts_Flag : 0; |
| fDevice = SkGpuDevice::Create(renderTarget, this->props(), deviceFlags); |
| @@ -111,7 +109,7 @@ SkSurface* SkSurface::NewRenderTargetDirect(GrRenderTarget* target, const SkSurf |
| if (NULL == target) { |
| return NULL; |
| } |
| - return SkNEW_ARGS(SkSurface_Gpu, (target, false, props, false)); |
| + return SkNEW_ARGS(SkSurface_Gpu, (target, props, false)); |
| } |
| SkSurface* SkSurface::NewRenderTarget(GrContext* ctx, const SkImageInfo& info, int sampleCount, |
| @@ -132,7 +130,7 @@ SkSurface* SkSurface::NewRenderTarget(GrContext* ctx, const SkImageInfo& info, i |
| return NULL; |
| } |
| - return SkNEW_ARGS(SkSurface_Gpu, (tex->asRenderTarget(), false, props, true)); |
| + return SkNEW_ARGS(SkSurface_Gpu, (tex->asRenderTarget(), props, true)); |
| } |
| SkSurface* SkSurface::NewScratchRenderTarget(GrContext* ctx, const SkImageInfo& info, |
| @@ -154,5 +152,5 @@ SkSurface* SkSurface::NewScratchRenderTarget(GrContext* ctx, const SkImageInfo& |
| return NULL; |
| } |
| - return SkNEW_ARGS(SkSurface_Gpu, (tex->asRenderTarget(), true, props, true)); |
| + return SkNEW_ARGS(SkSurface_Gpu, (tex->asRenderTarget(), props, true)); |
| } |