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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 155 |
156 // temporarily change the return to false, until we understand the issues wi
th filters and persp | 156 // temporarily change the return to false, until we understand the issues wi
th filters and persp |
157 virtual bool forceConservativeRasterClip() const SK_OVERRIDE { return false;
} | 157 virtual bool forceConservativeRasterClip() const SK_OVERRIDE { return true;
} |
158 | 158 |
159 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override | 159 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override |
160 // SkDraw's matrix and draw in device coords. | 160 // SkDraw's matrix and draw in device coords. |
161 void prepareDraw(const SkDraw&, bool forceIdentity); | 161 void prepareDraw(const SkDraw&, bool forceIdentity); |
162 | 162 |
163 /** | 163 /** |
164 * Implementation for both drawBitmap and drawBitmapRect. | 164 * Implementation for both drawBitmap and drawBitmapRect. |
165 */ | 165 */ |
166 void drawBitmapCommon(const SkDraw&, | 166 void drawBitmapCommon(const SkDraw&, |
167 const SkBitmap& bitmap, | 167 const SkBitmap& bitmap, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 bool bicubic); | 199 bool bicubic); |
200 | 200 |
201 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 201 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
202 | 202 |
203 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 203 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
204 | 204 |
205 typedef SkBaseDevice INHERITED; | 205 typedef SkBaseDevice INHERITED; |
206 }; | 206 }; |
207 | 207 |
208 #endif | 208 #endif |
OLD | NEW |