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

Side by Side Diff: include/core/SkBitmapDevice.h

Issue 609223003: Revert of Fix SkTextBlob offset semantics. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « experimental/PdfViewer/SkTrackDevice.h ('k') | include/core/SkDevice.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 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 SkBitmapDevice_DEFINED 9 #ifndef SkBitmapDevice_DEFINED
10 #define SkBitmapDevice_DEFINED 10 #define SkBitmapDevice_DEFINED
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const SkPaint& paint, 89 const SkPaint& paint,
90 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE ; 90 SkCanvas::DrawBitmapRectFlags flags) SK_OVERRIDE ;
91 91
92 /** 92 /**
93 * Does not handle text decoration. 93 * Does not handle text decoration.
94 * Decorations (underline and stike-thru) will be handled by SkCanvas. 94 * Decorations (underline and stike-thru) will be handled by SkCanvas.
95 */ 95 */
96 virtual void drawText(const SkDraw&, const void* text, size_t len, 96 virtual void drawText(const SkDraw&, const void* text, size_t len,
97 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVERR IDE; 97 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVERR IDE;
98 virtual void drawPosText(const SkDraw&, const void* text, size_t len, 98 virtual void drawPosText(const SkDraw&, const void* text, size_t len,
99 const SkScalar pos[], int scalarsPerPos, 99 const SkScalar pos[], SkScalar constY,
100 const SkPoint& offset, const SkPaint& paint) SK_OVE RRIDE; 100 int scalarsPerPos, const SkPaint& paint) SK_OVERRID E;
101 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, 101 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len,
102 const SkPath& path, const SkMatrix* matrix, 102 const SkPath& path, const SkMatrix* matrix,
103 const SkPaint& paint) SK_OVERRIDE; 103 const SkPaint& paint) SK_OVERRIDE;
104 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt, 104 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt,
105 const SkPoint verts[], const SkPoint texs[], 105 const SkPoint verts[], const SkPoint texs[],
106 const SkColor colors[], SkXfermode* xmode, 106 const SkColor colors[], SkXfermode* xmode,
107 const uint16_t indices[], int indexCount, 107 const uint16_t indices[], int indexCount,
108 const SkPaint& paint) SK_OVERRIDE; 108 const SkPaint& paint) SK_OVERRIDE;
109 /** The SkBaseDevice passed will be an SkBaseDevice which was returned by a call to 109 /** The SkBaseDevice passed will be an SkBaseDevice which was returned by a call to
110 onCreateDevice on this device with kSaveLayer_Usage. 110 onCreateDevice on this device with kSaveLayer_Usage.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; 159 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE;
160 160
161 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; 161 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE;
162 162
163 SkBitmap fBitmap; 163 SkBitmap fBitmap;
164 164
165 typedef SkBaseDevice INHERITED; 165 typedef SkBaseDevice INHERITED;
166 }; 166 };
167 167
168 #endif // SkBitmapDevice_DEFINED 168 #endif // SkBitmapDevice_DEFINED
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkTrackDevice.h ('k') | include/core/SkDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698