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 | 9 |
10 | 10 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 virtual void onAttachToCanvas(SkCanvas* canvas) SK_OVERRIDE; | 117 virtual void onAttachToCanvas(SkCanvas* canvas) SK_OVERRIDE; |
118 virtual void onDetachFromCanvas() SK_OVERRIDE; | 118 virtual void onDetachFromCanvas() SK_OVERRIDE; |
119 | 119 |
120 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE; | 120 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE; |
121 | 121 |
122 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; | 122 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; |
123 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, | 123 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, |
124 const SkImageFilter::Context&, | 124 const SkImageFilter::Context&, |
125 SkBitmap*, SkIPoint*) SK_OVERRIDE; | 125 SkBitmap*, SkIPoint*) SK_OVERRIDE; |
126 | 126 |
| 127 bool filterTexture(GrContext*, GrTexture*, const SkImageFilter*, |
| 128 const SkImageFilter::Context&, |
| 129 SkBitmap* result, SkIPoint* offset); |
| 130 |
127 protected: | 131 protected: |
128 virtual bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OV
ERRIDE; | 132 virtual bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OV
ERRIDE; |
129 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int
) SK_OVERRIDE; | 133 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int
) SK_OVERRIDE; |
130 bool onShouldDisableLCD(const SkPaint&) const SK_OVERRIDE; | 134 bool onShouldDisableLCD(const SkPaint&) const SK_OVERRIDE; |
131 | 135 |
132 /** PRIVATE / EXPERIMENTAL -- do not call */ | 136 /** PRIVATE / EXPERIMENTAL -- do not call */ |
133 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic
ture, | 137 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic
ture, |
134 const SkMatrix*, const SkPaint*) SK_OV
ERRIDE; | 138 const SkMatrix*, const SkPaint*) SK_OV
ERRIDE; |
135 | 139 |
136 private: | 140 private: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 const SkRect& srcRect, | 200 const SkRect& srcRect, |
197 const SkIRect& clippedSrcRect, | 201 const SkIRect& clippedSrcRect, |
198 const GrTextureParams& params, | 202 const GrTextureParams& params, |
199 const SkPaint& paint, | 203 const SkPaint& paint, |
200 SkCanvas::DrawBitmapRectFlags flags, | 204 SkCanvas::DrawBitmapRectFlags flags, |
201 int tileSize, | 205 int tileSize, |
202 bool bicubic); | 206 bool bicubic); |
203 | 207 |
204 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 208 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
205 | 209 |
206 bool filterTexture(GrContext*, GrTexture*, const SkImageFilter*, | |
207 const SkImageFilter::Context&, | |
208 SkBitmap* result, SkIPoint* offset); | |
209 | |
210 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 210 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
211 | 211 |
212 typedef SkBaseDevice INHERITED; | 212 typedef SkBaseDevice INHERITED; |
213 }; | 213 }; |
214 | 214 |
215 #endif | 215 #endif |
OLD | NEW |