| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 */ | 141 */ |
| 142 virtual void makeRenderTargetCurrent(); | 142 virtual void makeRenderTargetCurrent(); |
| 143 | 143 |
| 144 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; | 144 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; |
| 145 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatr
ix&, | 145 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatr
ix&, |
| 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 protected: | 150 protected: |
| 151 // overrides from SkBaseDevice | 151 virtual bool onReadPixels(const SkBitmap&, int x, int y, SkCanvas::Config888
8) SK_OVERRIDE; |
| 152 virtual bool onReadPixels(const SkBitmap& bitmap, | 152 virtual bool onWritePixelsDirect(const SkImageInfo&, const void*, size_t, in
t, int) SK_OVERRIDE; |
| 153 int x, int y, | |
| 154 SkCanvas::Config8888 config8888) SK_OVERRIDE; | |
| 155 | 153 |
| 156 private: | 154 private: |
| 157 GrContext* fContext; | 155 GrContext* fContext; |
| 158 | 156 |
| 159 GrSkDrawProcs* fDrawProcs; | 157 GrSkDrawProcs* fDrawProcs; |
| 160 | 158 |
| 161 GrClipData fClipData; | 159 GrClipData fClipData; |
| 162 | 160 |
| 163 GrTextContext* fMainTextContext; | 161 GrTextContext* fMainTextContext; |
| 164 GrTextContext* fFallbackTextContext; | 162 GrTextContext* fFallbackTextContext; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 const GrTextureParams& params, | 213 const GrTextureParams& params, |
| 216 const SkPaint& paint, | 214 const SkPaint& paint, |
| 217 SkCanvas::DrawBitmapRectFlags flags, | 215 SkCanvas::DrawBitmapRectFlags flags, |
| 218 int tileSize, | 216 int tileSize, |
| 219 bool bicubic); | 217 bool bicubic); |
| 220 | 218 |
| 221 typedef SkBitmapDevice INHERITED; | 219 typedef SkBitmapDevice INHERITED; |
| 222 }; | 220 }; |
| 223 | 221 |
| 224 #endif | 222 #endif |
| OLD | NEW |