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; | 172 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; |
173 | 173 |
174 // 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 |
175 // SkDraw's matrix and draw in device coords. | 175 // SkDraw's matrix and draw in device coords. |
176 void prepareDraw(const SkDraw&, bool forceIdentity); | 176 void prepareDraw(const SkDraw&, bool forceIdentity); |
177 | 177 |
178 /** | 178 /** |
179 * Implementation for both drawBitmap and drawBitmapRect. | 179 * Implementation for both drawBitmap and drawBitmapRect. |
180 */ | 180 */ |
181 void drawBitmapCommon(const SkDraw&, | 181 void drawBitmapCommon(const SkDraw&, |
182 const SkBitmap& bitmap, | 182 const SkBitmap& bitmap, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 bool bicubic); | 214 bool bicubic); |
215 | 215 |
216 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); | 216 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); |
217 | 217 |
218 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 218 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
219 | 219 |
220 typedef SkBaseDevice INHERITED; | 220 typedef SkBaseDevice INHERITED; |
221 }; | 221 }; |
222 | 222 |
223 #endif | 223 #endif |
OLD | NEW |