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

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

Issue 174243003: add SkCanvas::drawDRRect (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkDevice.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void drawTextOnPath(const void* text, size_t byteLength, 57 virtual void drawTextOnPath(const void* text, size_t byteLength,
58 const SkPath& path, const SkMatrix* matrix, 58 const SkPath& path, const SkMatrix* matrix,
59 const SkPaint& paint) SK_OVERRIDE; 59 const SkPaint& paint) SK_OVERRIDE;
60 virtual void drawVertices(VertexMode mode, int vertexCount, 60 virtual void drawVertices(VertexMode mode, int vertexCount,
61 const SkPoint vertices[], const SkPoint texs[], 61 const SkPoint vertices[], const SkPoint texs[],
62 const SkColor colors[], SkXfermode* xfer, 62 const SkColor colors[], SkXfermode* xfer,
63 const uint16_t indices[], int indexCount, 63 const uint16_t indices[], int indexCount,
64 const SkPaint& paint) SK_OVERRIDE; 64 const SkPaint& paint) SK_OVERRIDE;
65 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; 65 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE;
66 66
67 protected:
68 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE;
69
67 private: 70 private:
68 /** 71 /**
69 * Takes a bounding box in current canvas view space, accounts for stroking and effects, and 72 * Takes a bounding box in current canvas view space, accounts for stroking and effects, and
70 * computes an axis-aligned bounding box in device coordinates, then passes it to handleBBox() 73 * computes an axis-aligned bounding box in device coordinates, then passes it to handleBBox()
71 * returns false if the draw is completely clipped out, and may safely be ig nored. 74 * returns false if the draw is completely clipped out, and may safely be ig nored.
72 **/ 75 **/
73 bool transformBounds(const SkRect& bounds, const SkPaint* paint); 76 bool transformBounds(const SkRect& bounds, const SkPaint* paint);
74 77
75 typedef SkPictureRecord INHERITED; 78 typedef SkPictureRecord INHERITED;
76 }; 79 };
77 80
78 #endif 81 #endif
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | src/core/SkBBoxRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698