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;
} | |
156 | 155 |
157 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override | 156 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override |
158 // SkDraw's matrix and draw in device coords. | 157 // SkDraw's matrix and draw in device coords. |
159 void prepareDraw(const SkDraw&, bool forceIdentity); | 158 void prepareDraw(const SkDraw&, bool forceIdentity); |
160 | 159 |
161 /** | 160 /** |
162 * Implementation for both drawBitmap and drawBitmapRect. | 161 * Implementation for both drawBitmap and drawBitmapRect. |
163 */ | 162 */ |
164 void drawBitmapCommon(const SkDraw&, | 163 void drawBitmapCommon(const SkDraw&, |
165 const SkBitmap& bitmap, | 164 const SkBitmap& bitmap, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 bool bicubic); | 196 bool bicubic); |
198 | 197 |
199 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 198 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
200 | 199 |
201 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 200 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
202 | 201 |
203 typedef SkBaseDevice INHERITED; | 202 typedef SkBaseDevice INHERITED; |
204 }; | 203 }; |
205 | 204 |
206 #endif | 205 #endif |
OLD | NEW |