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

Side by Side Diff: src/utils/SkDeferredCanvas.cpp

Issue 605533002: Fix SkTextBlob offset semantics. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: default run positioning fix 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 | « src/pdf/SkPDFDeviceFlattener.cpp ('k') | src/utils/SkGatherPixelRefsAndRects.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 #include "SkDeferredCanvas.h" 9 #include "SkDeferredCanvas.h"
10 10
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 const SkRect&, const SkPaint&, 203 const SkRect&, const SkPaint&,
204 SkCanvas::DrawBitmapRectFlags) SK_OVERRIDE 204 SkCanvas::DrawBitmapRectFlags) SK_OVERRIDE
205 {SkASSERT(0);} 205 {SkASSERT(0);}
206 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 206 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap,
207 int x, int y, const SkPaint& paint) SK_OVERRIDE 207 int x, int y, const SkPaint& paint) SK_OVERRIDE
208 {SkASSERT(0);} 208 {SkASSERT(0);}
209 virtual void drawText(const SkDraw&, const void* text, size_t len, 209 virtual void drawText(const SkDraw&, const void* text, size_t len,
210 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVE RRIDE 210 SkScalar x, SkScalar y, const SkPaint& paint) SK_OVE RRIDE
211 {SkASSERT(0);} 211 {SkASSERT(0);}
212 virtual void drawPosText(const SkDraw&, const void* text, size_t len, 212 virtual void drawPosText(const SkDraw&, const void* text, size_t len,
213 const SkScalar pos[], SkScalar constY, 213 const SkScalar pos[], int scalarsPerPos,
214 int scalarsPerPos, const SkPaint& paint) SK_OVER RIDE 214 const SkPoint& offset, const SkPaint& paint) SK_OVE RRIDE
215 {SkASSERT(0);} 215 {SkASSERT(0);}
216 virtual void drawTextOnPath(const SkDraw&, const void* text, 216 virtual void drawTextOnPath(const SkDraw&, const void* text,
217 size_t len, const SkPath& path, 217 size_t len, const SkPath& path,
218 const SkMatrix* matrix, 218 const SkMatrix* matrix,
219 const SkPaint& paint) SK_OVERRIDE 219 const SkPaint& paint) SK_OVERRIDE
220 {SkASSERT(0);} 220 {SkASSERT(0);}
221 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, 221 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode,
222 int vertexCount, const SkPoint verts[], 222 int vertexCount, const SkPoint verts[],
223 const SkPoint texs[], const SkColor colors[], 223 const SkPoint texs[], const SkColor colors[],
224 SkXfermode* xmode, const uint16_t indices[], 224 SkXfermode* xmode, const uint16_t indices[],
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { 948 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) {
949 this->drawingCanvas()->setDrawFilter(filter); 949 this->drawingCanvas()->setDrawFilter(filter);
950 this->INHERITED::setDrawFilter(filter); 950 this->INHERITED::setDrawFilter(filter);
951 this->recordedDrawCommand(); 951 this->recordedDrawCommand();
952 return filter; 952 return filter;
953 } 953 }
954 954
955 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { 955 SkCanvas* SkDeferredCanvas::canvasForDrawIter() {
956 return this->drawingCanvas(); 956 return this->drawingCanvas();
957 } 957 }
OLDNEW
« no previous file with comments | « src/pdf/SkPDFDeviceFlattener.cpp ('k') | src/utils/SkGatherPixelRefsAndRects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698