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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 virtual void onAttachToCanvas(SkCanvas* canvas) SK_OVERRIDE; | 133 virtual void onAttachToCanvas(SkCanvas* canvas) SK_OVERRIDE; |
134 virtual void onDetachFromCanvas() SK_OVERRIDE; | 134 virtual void onDetachFromCanvas() SK_OVERRIDE; |
135 | 135 |
136 /** | 136 /** |
137 * Make's this device's rendertarget current in the underlying 3D API. | 137 * Make's this device's rendertarget current in the underlying 3D API. |
138 * Also implicitly flushes. | 138 * Also implicitly flushes. |
139 */ | 139 */ |
140 virtual void makeRenderTargetCurrent(); | 140 virtual void makeRenderTargetCurrent(); |
141 | 141 |
142 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; | 142 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; |
143 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatr
ix&, | 143 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, |
| 144 const SkImageFilter::Context&, |
144 SkBitmap*, SkIPoint*) SK_OVERRIDE; | 145 SkBitmap*, SkIPoint*) SK_OVERRIDE; |
145 | 146 |
146 class SkAutoCachedTexture; // used internally | 147 class SkAutoCachedTexture; // used internally |
147 | 148 |
148 protected: | 149 protected: |
149 virtual bool onReadPixels(const SkBitmap&, int x, int y, SkCanvas::Config888
8) SK_OVERRIDE; | 150 virtual bool onReadPixels(const SkBitmap&, int x, int y, SkCanvas::Config888
8) SK_OVERRIDE; |
150 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int
) SK_OVERRIDE; | 151 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int
) SK_OVERRIDE; |
151 | 152 |
152 private: | 153 private: |
153 GrContext* fContext; | 154 GrContext* fContext; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 const GrTextureParams& params, | 212 const GrTextureParams& params, |
212 const SkPaint& paint, | 213 const SkPaint& paint, |
213 SkCanvas::DrawBitmapRectFlags flags, | 214 SkCanvas::DrawBitmapRectFlags flags, |
214 int tileSize, | 215 int tileSize, |
215 bool bicubic); | 216 bool bicubic); |
216 | 217 |
217 typedef SkBitmapDevice INHERITED; | 218 typedef SkBitmapDevice INHERITED; |
218 }; | 219 }; |
219 | 220 |
220 #endif | 221 #endif |
OLD | NEW |