diff options
author | 2015-03-28 14:50:05 -0700 | |
---|---|---|
committer | 2015-03-28 14:50:05 -0700 | |
commit | 06d3d682b4d26fb390c38ab2bb76853fd6e29be2 (patch) | |
tree | 2ef5373303afcdd495fd2169b7082ed2c94808af /src/gpu/SkGpuDevice.h | |
parent | b97dafefe63ea0a1bbce8e8b209f4920983fb8b9 (diff) |
Revert "Implement approx-match support in image filter saveLayer() offscreen."
This reverts commit b97dafefe63ea0a1bbce8e8b209f4920983fb8b9.
SkLightingImageFilter boundaries are incorrect (see GM:lighting).
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/1048583002
Diffstat (limited to 'src/gpu/SkGpuDevice.h')
-rw-r--r-- | src/gpu/SkGpuDevice.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h index 999a698ded..ad0c2d63f0 100644 --- a/src/gpu/SkGpuDevice.h +++ b/src/gpu/SkGpuDevice.h @@ -41,13 +41,6 @@ public: static SkGpuDevice* Create(GrRenderTarget* target, const SkSurfaceProps*, unsigned flags = 0); /** - * Creates an SkGpuDevice from a GrRenderTarget whose texture width/height is - * different than its actual width/height (e.g., approx-match scratch texture). - */ - static SkGpuDevice* Create(GrRenderTarget* target, int width, int height, - const SkSurfaceProps*, unsigned flags = 0); - - /** * New device that will create an offscreen renderTarget based on the ImageInfo and * sampleCount. The Budgeted param controls whether the device's backing store counts against * the resource cache budget. On failure, returns NULL. @@ -74,7 +67,7 @@ public: GrRenderTarget* accessRenderTarget() override; SkImageInfo imageInfo() const override { - return fLegacyBitmap.info(); + return fRenderTarget ? fRenderTarget->surfacePriv().info() : SkImageInfo::MakeUnknown(); } const SkSurfaceProps& surfaceProps() const { return fSurfaceProps; } @@ -128,7 +121,7 @@ public: const SkImageFilter::Context&, SkBitmap*, SkIPoint*) override; - bool filterTexture(GrContext*, GrTexture*, int width, int height, const SkImageFilter*, + bool filterTexture(GrContext*, GrTexture*, const SkImageFilter*, const SkImageFilter::Context&, SkBitmap* result, SkIPoint* offset); @@ -154,7 +147,7 @@ private: SkBitmap fLegacyBitmap; bool fNeedClear; - SkGpuDevice(GrRenderTarget*, int width, int height, const SkSurfaceProps*, unsigned flags); + SkGpuDevice(GrRenderTarget*, const SkSurfaceProps*, unsigned flags); SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; |