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

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

Issue 473633002: SkTextBlob (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: More const API, minimal docs. 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
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void onDrawPosTextH(const void* text, 82 void onDrawPosTextH(const void* text,
83 size_t byteLength, 83 size_t byteLength,
84 const SkScalar xpos[], 84 const SkScalar xpos[],
85 SkScalar constY, 85 SkScalar constY,
86 const SkPaint& paint) SK_OVERRIDE; 86 const SkPaint& paint) SK_OVERRIDE;
87 void onDrawTextOnPath(const void* text, 87 void onDrawTextOnPath(const void* text,
88 size_t byteLength, 88 size_t byteLength,
89 const SkPath& path, 89 const SkPath& path,
90 const SkMatrix* matrix, 90 const SkMatrix* matrix,
91 const SkPaint& paint) SK_OVERRIDE; 91 const SkPaint& paint) SK_OVERRIDE;
92 virtual void onDrawTextBlob(const SkTextBlob*,
93 const SkPoint&,
94 const SkPaint&) SK_OVERRIDE;
92 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], 95 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
93 const SkPoint texCoords[4], SkXfermode* xmode, 96 const SkPoint texCoords[4], SkXfermode* xmode,
94 const SkPaint& paint) SK_OVERRIDE; 97 const SkPaint& paint) SK_OVERRIDE;
95 98
96 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE; 99 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE;
97 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) SK_OVERRIDE; 100 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) SK_OVERRIDE;
98 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE; 101 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE;
99 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE; 102 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE;
100 103
101 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE RRIDE; 104 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE RRIDE;
102 105
103 void onPushCull(const SkRect& cullRect) SK_OVERRIDE; 106 void onPushCull(const SkRect& cullRect) SK_OVERRIDE;
104 void onPopCull() SK_OVERRIDE; 107 void onPopCull() SK_OVERRIDE;
105 108
106 private: 109 private:
107 template <typename T> 110 template <typename T>
108 T* copy(const T*); 111 T* copy(const T*);
109 112
110 template <typename T> 113 template <typename T>
111 T* copy(const T[], size_t count); 114 T* copy(const T[], size_t count);
112 115
113 SkRecord* fRecord; 116 SkRecord* fRecord;
114 }; 117 };
115 118
116 #endif//SkRecorder_DEFINED 119 #endif//SkRecorder_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698