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

Side by Side Diff: src/core/SkRecorder.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 | « src/core/SkRecordDraw.cpp ('k') | src/core/SkRecorder.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkRecorder_DEFINED 8 #ifndef SkRecorder_DEFINED
9 #define SkRecorder_DEFINED 9 #define SkRecorder_DEFINED
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void onDrawTextOnPath(const void* text, 88 void onDrawTextOnPath(const void* text,
89 size_t byteLength, 89 size_t byteLength,
90 const SkPath& path, 90 const SkPath& path,
91 const SkMatrix* matrix, 91 const SkMatrix* matrix,
92 const SkPaint& paint) SK_OVERRIDE; 92 const SkPaint& paint) SK_OVERRIDE;
93 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE; 93 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE;
94 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) SK_OVERRIDE; 94 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) SK_OVERRIDE;
95 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE; 95 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE;
96 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE; 96 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE;
97 97
98 void onDrawPicture(const SkPicture* picture) SK_OVERRIDE; 98 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE RRIDE;
99 99
100 void onPushCull(const SkRect& cullRect) SK_OVERRIDE; 100 void onPushCull(const SkRect& cullRect) SK_OVERRIDE;
101 void onPopCull() SK_OVERRIDE; 101 void onPopCull() SK_OVERRIDE;
102 102
103 private: 103 private:
104 template <typename T> 104 template <typename T>
105 T* copy(const T*); 105 T* copy(const T*);
106 106
107 template <typename T> 107 template <typename T>
108 T* copy(const T[], size_t count); 108 T* copy(const T[], size_t count);
109 109
110 SkRecord* fRecord; 110 SkRecord* fRecord;
111 }; 111 };
112 112
113 #endif//SkRecorder_DEFINED 113 #endif//SkRecorder_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkRecordDraw.cpp ('k') | src/core/SkRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698