| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 SkBitmap fLegacyBitmap; | 148 SkBitmap fLegacyBitmap; |
| 149 | 149 |
| 150 SkGpuDevice(GrSurface*, const SkSurfaceProps&, unsigned flags = 0); | 150 SkGpuDevice(GrSurface*, const SkSurfaceProps&, unsigned flags = 0); |
| 151 | 151 |
| 152 virtual SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRID
E; | 152 virtual SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRID
E; |
| 153 | 153 |
| 154 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_
OVERRIDE; | 154 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_
OVERRIDE; |
| 155 | 155 |
| 156 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; | 156 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; |
| 157 | 157 |
| 158 // temporarily change the return to false, until we understand the issues wi
th filters and persp | |
| 159 virtual bool forceConservativeRasterClip() const SK_OVERRIDE { return true;
} | 158 virtual bool forceConservativeRasterClip() const SK_OVERRIDE { return true;
} |
| 160 | 159 |
| 161 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override | 160 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override |
| 162 // SkDraw's matrix and draw in device coords. | 161 // SkDraw's matrix and draw in device coords. |
| 163 void prepareDraw(const SkDraw&, bool forceIdentity); | 162 void prepareDraw(const SkDraw&, bool forceIdentity); |
| 164 | 163 |
| 165 /** | 164 /** |
| 166 * Implementation for both drawBitmap and drawBitmapRect. | 165 * Implementation for both drawBitmap and drawBitmapRect. |
| 167 */ | 166 */ |
| 168 void drawBitmapCommon(const SkDraw&, | 167 void drawBitmapCommon(const SkDraw&, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 bool filterTexture(GrContext*, GrTexture*, const SkImageFilter*, | 204 bool filterTexture(GrContext*, GrTexture*, const SkImageFilter*, |
| 206 const SkImageFilter::Context&, | 205 const SkImageFilter::Context&, |
| 207 SkBitmap* result, SkIPoint* offset); | 206 SkBitmap* result, SkIPoint* offset); |
| 208 | 207 |
| 209 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 208 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
| 210 | 209 |
| 211 typedef SkBaseDevice INHERITED; | 210 typedef SkBaseDevice INHERITED; |
| 212 }; | 211 }; |
| 213 | 212 |
| 214 #endif | 213 #endif |
| OLD | NEW |