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

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

Issue 925343003: use common impl for drawTextOnPath (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: move includes to the top Created 5 years, 10 months 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
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 #ifndef SkGpuDevice_DEFINED 9 #ifndef SkGpuDevice_DEFINED
10 #define SkGpuDevice_DEFINED 10 #define SkGpuDevice_DEFINED
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 const SkRect* srcOrNull, const SkRect& dst, 90 const SkRect* srcOrNull, const SkRect& dst,
91 const SkPaint& paint, 91 const SkPaint& paint,
92 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE ; 92 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE ;
93 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 93 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap,
94 int x, int y, const SkPaint& paint) SK_OVERRIDE; 94 int x, int y, const SkPaint& paint) SK_OVERRIDE;
95 virtual void drawText(const SkDraw&, const void* text, size_t len, 95 virtual void drawText(const SkDraw&, const void* text, size_t len,
96 SkScalar x, SkScalar y, const SkPaint&) SK_OVERRIDE; 96 SkScalar x, SkScalar y, const SkPaint&) SK_OVERRIDE;
97 virtual void drawPosText(const SkDraw&, const void* text, size_t len, 97 virtual void drawPosText(const SkDraw&, const void* text, size_t len,
98 const SkScalar pos[], int scalarsPerPos, 98 const SkScalar pos[], int scalarsPerPos,
99 const SkPoint& offset, const SkPaint&) SK_OVERRIDE; 99 const SkPoint& offset, const SkPaint&) SK_OVERRIDE;
100 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len,
101 const SkPath& path, const SkMatrix* matrix,
102 const SkPaint&) SK_OVERRIDE;
103 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt, 100 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt,
104 const SkPoint verts[], const SkPoint texs[], 101 const SkPoint verts[], const SkPoint texs[],
105 const SkColor colors[], SkXfermode* xmode, 102 const SkColor colors[], SkXfermode* xmode,
106 const uint16_t indices[], int indexCount, 103 const uint16_t indices[], int indexCount,
107 const SkPaint&) SK_OVERRIDE; 104 const SkPaint&) SK_OVERRIDE;
108 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 105 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
109 const SkPaint&) SK_OVERRIDE; 106 const SkPaint&) SK_OVERRIDE;
110 107
111 void flush() SK_OVERRIDE; 108 void flush() SK_OVERRIDE;
112 109
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 bool bicubic); 196 bool bicubic);
200 197
201 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 198 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
202 199
203 static SkPicture::AccelData::Key ComputeAccelDataKey(); 200 static SkPicture::AccelData::Key ComputeAccelDataKey();
204 201
205 typedef SkBaseDevice INHERITED; 202 typedef SkBaseDevice INHERITED;
206 }; 203 };
207 204
208 #endif 205 #endif
OLDNEW
« src/core/SkDevice.cpp ('K') | « src/core/SkDraw.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698