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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 // used by createCompatibleDevice | 161 // used by createCompatibleDevice |
162 SkGpuDevice(GrContext*, GrTexture* texture, bool needClear); | 162 SkGpuDevice(GrContext*, GrTexture* texture, bool needClear); |
163 | 163 |
164 // override from SkBaseDevice | 164 // override from SkBaseDevice |
165 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config config, | 165 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config config, |
166 int width, int height, | 166 int width, int height, |
167 bool isOpaque, | 167 bool isOpaque, |
168 Usage usage) SK_OVERRIDE; | 168 Usage usage) SK_OVERRIDE; |
169 | 169 |
170 SkDrawProcs* initDrawForText(GrTextContext*); | |
171 | |
172 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override | 170 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override |
173 // SkDraw's matrix and draw in device coords. | 171 // SkDraw's matrix and draw in device coords. |
174 void prepareDraw(const SkDraw&, bool forceIdentity); | 172 void prepareDraw(const SkDraw&, bool forceIdentity); |
175 | 173 |
176 /** | 174 /** |
177 * Implementation for both drawBitmap and drawBitmapRect. | 175 * Implementation for both drawBitmap and drawBitmapRect. |
178 */ | 176 */ |
179 void drawBitmapCommon(const SkDraw&, | 177 void drawBitmapCommon(const SkDraw&, |
180 const SkBitmap& bitmap, | 178 const SkBitmap& bitmap, |
181 const SkRect* srcRectPtr, | 179 const SkRect* srcRectPtr, |
(...skipping 30 matching lines...) Expand all Loading... |
212 | 210 |
213 /** | 211 /** |
214 * Returns non-initialized instance. | 212 * Returns non-initialized instance. |
215 */ | 213 */ |
216 GrTextContext* getTextContext(); | 214 GrTextContext* getTextContext(); |
217 | 215 |
218 typedef SkBitmapDevice INHERITED; | 216 typedef SkBitmapDevice INHERITED; |
219 }; | 217 }; |
220 | 218 |
221 #endif | 219 #endif |
OLD | NEW |