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

Side by Side Diff: src/core/SkBBoxRecord.h

Issue 22861002: Revert "Add SkCanvas::drawPosTextBounded." (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkCanvas.h ('k') | src/core/SkBBoxRecord.cpp » ('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 2012 Google Inc. 3 * Copyright 2012 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 SkBBoxRecord_DEFINED 9 #ifndef SkBBoxRecord_DEFINED
10 #define SkBBoxRecord_DEFINED 10 #define SkBBoxRecord_DEFINED
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, 42 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
43 const SkPaint* paint = NULL) SK_OVERRIDE; 43 const SkPaint* paint = NULL) SK_OVERRIDE;
44 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, 44 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
45 const SkRect& dst, const SkPaint* paint) SK_OVER RIDE; 45 const SkRect& dst, const SkPaint* paint) SK_OVER RIDE;
46 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& mat, 46 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& mat,
47 const SkPaint* paint) SK_OVERRIDE; 47 const SkPaint* paint) SK_OVERRIDE;
48 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, 48 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,
49 const SkRect& dst, const SkPaint* paint) SK_OVER RIDE; 49 const SkRect& dst, const SkPaint* paint) SK_OVER RIDE;
50 virtual void drawPosText(const void* text, size_t byteLength, 50 virtual void drawPosText(const void* text, size_t byteLength,
51 const SkPoint pos[], const SkPaint& paint) SK_OVERR IDE; 51 const SkPoint pos[], const SkPaint& paint) SK_OVERR IDE;
52 virtual void drawPosTextBounded(const void* text, size_t byteLength,
53 const SkPoint pos[], const SkRect& bbox,
54 const SkPaint& paint) SK_OVERRIDE;
55 virtual void drawPosTextH(const void* text, size_t byteLength, 52 virtual void drawPosTextH(const void* text, size_t byteLength,
56 const SkScalar xpos[], SkScalar constY, 53 const SkScalar xpos[], SkScalar constY,
57 const SkPaint& paint) SK_OVERRIDE; 54 const SkPaint& paint) SK_OVERRIDE;
58 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, 55 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
59 const SkPaint* paint) SK_OVERRIDE; 56 const SkPaint* paint) SK_OVERRIDE;
60 virtual void drawTextOnPath(const void* text, size_t byteLength, 57 virtual void drawTextOnPath(const void* text, size_t byteLength,
61 const SkPath& path, const SkMatrix* matrix, 58 const SkPath& path, const SkMatrix* matrix,
62 const SkPaint& paint) SK_OVERRIDE; 59 const SkPaint& paint) SK_OVERRIDE;
63 virtual void drawVertices(VertexMode mode, int vertexCount, 60 virtual void drawVertices(VertexMode mode, int vertexCount,
64 const SkPoint vertices[], const SkPoint texs[], 61 const SkPoint vertices[], const SkPoint texs[],
65 const SkColor colors[], SkXfermode* xfer, 62 const SkColor colors[], SkXfermode* xfer,
66 const uint16_t indices[], int indexCount, 63 const uint16_t indices[], int indexCount,
67 const SkPaint& paint) SK_OVERRIDE; 64 const SkPaint& paint) SK_OVERRIDE;
68 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; 65 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE;
69 66
70 private: 67 private:
71 /** 68 /**
72 * Takes a bounding box in current canvas view space, accounts for stroking and effects, and 69 * Takes a bounding box in current canvas view space, accounts for stroking and effects, and
73 * computes an axis-aligned bounding box in device coordinates, then passes it to handleBBox() 70 * computes an axis-aligned bounding box in device coordinates, then passes it to handleBBox()
74 * returns false if the draw is completely clipped out, and may safely be ig nored. 71 * returns false if the draw is completely clipped out, and may safely be ig nored.
75 **/ 72 **/
76 bool transformBounds(const SkRect& bounds, const SkPaint* paint); 73 bool transformBounds(const SkRect& bounds, const SkPaint* paint);
77 74
78 typedef SkPictureRecord INHERITED; 75 typedef SkPictureRecord INHERITED;
79 }; 76 };
80 77
81 #endif 78 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | src/core/SkBBoxRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698