| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // remove when our clients don't rely on accessBitmap() | 145 // remove when our clients don't rely on accessBitmap() |
| 146 SkBitmap fLegacyBitmap; | 146 SkBitmap fLegacyBitmap; |
| 147 | 147 |
| 148 SkGpuDevice(GrSurface*, unsigned flags = 0); | 148 SkGpuDevice(GrSurface*, unsigned flags = 0); |
| 149 | 149 |
| 150 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE; | 150 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE; |
| 151 | 151 |
| 152 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; | 152 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; |
| 153 | 153 |
| 154 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; | 154 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; |
| 155 virtual bool forceConservativeRasterClip() const SK_OVERRIDE { return true;
} |
| 155 | 156 |
| 156 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override | 157 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override |
| 157 // SkDraw's matrix and draw in device coords. | 158 // SkDraw's matrix and draw in device coords. |
| 158 void prepareDraw(const SkDraw&, bool forceIdentity); | 159 void prepareDraw(const SkDraw&, bool forceIdentity); |
| 159 | 160 |
| 160 /** | 161 /** |
| 161 * Implementation for both drawBitmap and drawBitmapRect. | 162 * Implementation for both drawBitmap and drawBitmapRect. |
| 162 */ | 163 */ |
| 163 void drawBitmapCommon(const SkDraw&, | 164 void drawBitmapCommon(const SkDraw&, |
| 164 const SkBitmap& bitmap, | 165 const SkBitmap& bitmap, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 bool bicubic); | 197 bool bicubic); |
| 197 | 198 |
| 198 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 199 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
| 199 | 200 |
| 200 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 201 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
| 201 | 202 |
| 202 typedef SkBaseDevice INHERITED; | 203 typedef SkBaseDevice INHERITED; |
| 203 }; | 204 }; |
| 204 | 205 |
| 205 #endif | 206 #endif |
| OLD | NEW |