Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: src/gpu/SkGpuDevice.h

Issue 1414653003: use (temp) gpu-imagefilter-cache for applyFilter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkGpuDevice_DEFINED 9 #ifndef SkGpuDevice_DEFINED
10 #define SkGpuDevice_DEFINED 10 #define SkGpuDevice_DEFINED
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 bool canHandleImageFilter(const SkImageFilter*) override; 129 bool canHandleImageFilter(const SkImageFilter*) override;
130 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 130 virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
131 const SkImageFilter::Context&, 131 const SkImageFilter::Context&,
132 SkBitmap*, SkIPoint*) override; 132 SkBitmap*, SkIPoint*) override;
133 133
134 bool filterTexture(GrContext*, GrTexture*, int width, int height, const SkIm ageFilter*, 134 bool filterTexture(GrContext*, GrTexture*, int width, int height, const SkIm ageFilter*,
135 const SkImageFilter::Context&, 135 const SkImageFilter::Context&,
136 SkBitmap* result, SkIPoint* offset); 136 SkBitmap* result, SkIPoint* offset);
137 137
138 static SkImageFilter::Cache* NewImageFilterCache();
139
138 protected: 140 protected:
139 bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) override; 141 bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) override;
140 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) overri de; 142 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) overri de;
141 bool onShouldDisableLCD(const SkPaint&) const final; 143 bool onShouldDisableLCD(const SkPaint&) const final;
142 144
143 /** PRIVATE / EXPERIMENTAL -- do not call */ 145 /** PRIVATE / EXPERIMENTAL -- do not call */
144 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture, 146 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture,
145 const SkMatrix*, const SkPaint*) overr ide; 147 const SkMatrix*, const SkPaint*) overr ide;
146 148
147 private: 149 private:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 238
237 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 239 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
238 int sampleCount); 240 int sampleCount);
239 241
240 friend class GrAtlasTextContext; 242 friend class GrAtlasTextContext;
241 friend class SkSurface_Gpu; // for access to surfaceProps 243 friend class SkSurface_Gpu; // for access to surfaceProps
242 typedef SkBaseDevice INHERITED; 244 typedef SkBaseDevice INHERITED;
243 }; 245 };
244 246
245 #endif 247 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698