| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // remove when our clients don't rely on accessBitmap() | 162 // remove when our clients don't rely on accessBitmap() |
| 163 SkBitmap fLegacyBitmap; | 163 SkBitmap fLegacyBitmap; |
| 164 | 164 |
| 165 // called from rt and tex cons | 165 // called from rt and tex cons |
| 166 void initFromRenderTarget(GrContext*, GrRenderTarget*, unsigned flags); | 166 void initFromRenderTarget(GrContext*, GrRenderTarget*, unsigned flags); |
| 167 | 167 |
| 168 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE; | 168 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE; |
| 169 | 169 |
| 170 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; | 170 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; |
| 171 | 171 |
| 172 virtual SkImageFilter::UniqueIDCache* getImageFilterCache() SK_OVERRIDE; |
| 173 |
| 172 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override | 174 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override |
| 173 // SkDraw's matrix and draw in device coords. | 175 // SkDraw's matrix and draw in device coords. |
| 174 void prepareDraw(const SkDraw&, bool forceIdentity); | 176 void prepareDraw(const SkDraw&, bool forceIdentity); |
| 175 | 177 |
| 176 /** | 178 /** |
| 177 * Implementation for both drawBitmap and drawBitmapRect. | 179 * Implementation for both drawBitmap and drawBitmapRect. |
| 178 */ | 180 */ |
| 179 void drawBitmapCommon(const SkDraw&, | 181 void drawBitmapCommon(const SkDraw&, |
| 180 const SkBitmap& bitmap, | 182 const SkBitmap& bitmap, |
| 181 const SkRect* srcRectPtr, | 183 const SkRect* srcRectPtr, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 212 bool bicubic); | 214 bool bicubic); |
| 213 | 215 |
| 214 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 216 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
| 215 | 217 |
| 216 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 218 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
| 217 | 219 |
| 218 typedef SkBaseDevice INHERITED; | 220 typedef SkBaseDevice INHERITED; |
| 219 }; | 221 }; |
| 220 | 222 |
| 221 #endif | 223 #endif |
| OLD | NEW |