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

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

Issue 448793004: add drawPicture variant that takes a matrix and paint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more dummies so we can land Created 6 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
« no previous file with comments | « include/utils/SkProxyCanvas.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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 protected: 60 protected:
61 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE; 61 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE;
62 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y, 62 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y,
63 const SkPaint&) SK_OVERRIDE; 63 const SkPaint&) SK_OVERRIDE;
64 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[], 64 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[],
65 const SkPaint&) SK_OVERRIDE; 65 const SkPaint&) SK_OVERRIDE;
66 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[], 66 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[],
67 SkScalar constY, const SkPaint&) SK_OVERRIDE; 67 SkScalar constY, const SkPaint&) SK_OVERRIDE;
68 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path, 68 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path,
69 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE; 69 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE;
70 virtual void onDrawPicture(const SkPicture* picture) SK_OVERRIDE; 70 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE;
71 virtual void willSave() SK_OVERRIDE; 71 virtual void willSave() SK_OVERRIDE;
72 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE; 72 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE;
73 virtual void willRestore() SK_OVERRIDE; 73 virtual void willRestore() SK_OVERRIDE;
74 74
75 private: 75 private:
76 /** 76 /**
77 * Takes a bounding box in current canvas view space, accounts for stroking and effects, and 77 * Takes a bounding box in current canvas view space, accounts for stroking and effects, and
78 * computes an axis-aligned bounding box in device coordinates, then passes it to handleBBox() 78 * computes an axis-aligned bounding box in device coordinates, then passes it to handleBBox()
79 * returns false if the draw is completely clipped out, and may safely be ig nored. 79 * returns false if the draw is completely clipped out, and may safely be ig nored.
80 **/ 80 **/
81 bool transformBounds(const SkRect& bounds, const SkPaint* paint); 81 bool transformBounds(const SkRect& bounds, const SkPaint* paint);
82 82
83 /** 83 /**
84 * Paints from currently-active saveLayers that need to be applied to boundi ng boxes of all 84 * Paints from currently-active saveLayers that need to be applied to boundi ng boxes of all
85 * primitives drawn inside them. We own these pointers. 85 * primitives drawn inside them. We own these pointers.
86 **/ 86 **/
87 SkTDArray<const SkPaint*> fSaveStack; 87 SkTDArray<const SkPaint*> fSaveStack;
88 88
89 typedef SkPictureRecord INHERITED; 89 typedef SkPictureRecord INHERITED;
90 }; 90 };
91 91
92 #endif 92 #endif
OLDNEW
« no previous file with comments | « include/utils/SkProxyCanvas.h ('k') | src/core/SkBBoxRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698