OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |