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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; | 143 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; |
144 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, | 144 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, |
145 const SkImageFilter::Context&, | 145 const SkImageFilter::Context&, |
146 SkBitmap*, SkIPoint*) SK_OVERRIDE; | 146 SkBitmap*, SkIPoint*) SK_OVERRIDE; |
147 | 147 |
148 class SkAutoCachedTexture; // used internally | 148 class SkAutoCachedTexture; // used internally |
149 | 149 |
150 | 150 |
151 protected: | 151 protected: |
| 152 #ifdef SK_SUPPORT_LEGACY_READPIXELSCONFIG |
152 virtual bool onReadPixels(const SkBitmap&, int x, int y, SkCanvas::Config888
8) SK_OVERRIDE; | 153 virtual bool onReadPixels(const SkBitmap&, int x, int y, SkCanvas::Config888
8) SK_OVERRIDE; |
| 154 #endif |
| 155 virtual bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OV
ERRIDE; |
153 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int
) SK_OVERRIDE; | 156 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int
) SK_OVERRIDE; |
154 | 157 |
155 /** PRIVATE / EXPERIMENTAL -- do not call */ | 158 /** PRIVATE / EXPERIMENTAL -- do not call */ |
156 virtual void EXPERIMENTAL_optimize(SkPicture* picture) SK_OVERRIDE; | 159 virtual void EXPERIMENTAL_optimize(SkPicture* picture) SK_OVERRIDE; |
157 /** PRIVATE / EXPERIMENTAL -- do not call */ | 160 /** PRIVATE / EXPERIMENTAL -- do not call */ |
158 virtual bool EXPERIMENTAL_drawPicture(const SkPicture& picture) SK_OVERRIDE; | 161 virtual bool EXPERIMENTAL_drawPicture(const SkPicture& picture) SK_OVERRIDE; |
159 | 162 |
160 private: | 163 private: |
161 GrContext* fContext; | 164 GrContext* fContext; |
162 | 165 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 SkCanvas::DrawBitmapRectFlags flags, | 224 SkCanvas::DrawBitmapRectFlags flags, |
222 int tileSize, | 225 int tileSize, |
223 bool bicubic); | 226 bool bicubic); |
224 | 227 |
225 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 228 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
226 | 229 |
227 typedef SkBitmapDevice INHERITED; | 230 typedef SkBitmapDevice INHERITED; |
228 }; | 231 }; |
229 | 232 |
230 #endif | 233 #endif |
OLD | NEW |