Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: include/gpu/SkGpuDevice.h

Issue 85653004: Move distance field font code into SkGpuDevice (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 const SkPaint& paint, 199 const SkPaint& paint,
200 SkCanvas::DrawBitmapRectFlags flags); 200 SkCanvas::DrawBitmapRectFlags flags);
201 void drawTiledBitmap(const SkBitmap& bitmap, 201 void drawTiledBitmap(const SkBitmap& bitmap,
202 const SkRect& srcRect, 202 const SkRect& srcRect,
203 const SkIRect& clippedSrcRect, 203 const SkIRect& clippedSrcRect,
204 const GrTextureParams& params, 204 const GrTextureParams& params,
205 const SkPaint& paint, 205 const SkPaint& paint,
206 SkCanvas::DrawBitmapRectFlags flags, 206 SkCanvas::DrawBitmapRectFlags flags,
207 int tileSize); 207 int tileSize);
208 208
209 /*
210 * For distance field fonts
211 */
212 void drawDFText(const char text[], size_t byteLength,
213 SkScalar x, SkScalar y,
214 const SkPaint& paint);
215 void drawPosDFText(const char text[], size_t byteLength,
216 const SkScalar pos[], SkScalar constY, int scalarsPerPos,
217 const SkPaint& paint);
218
209 /** 219 /**
210 * Returns non-initialized instance. 220 * Returns non-initialized instance.
211 */ 221 */
212 GrTextContext* getTextContext(); 222 GrTextContext* getTextContext();
213 223
214 typedef SkBitmapDevice INHERITED; 224 typedef SkBitmapDevice INHERITED;
215 }; 225 };
216 226
217 #endif 227 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698