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

Side by Side Diff: src/utils/debugger/SkDebugCanvas.h

Issue 917933002: Revert of Remove SkPictureFlat.h include from SkDrawCommands.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
« no previous file with comments | « debugger/SkDebugger.cpp ('k') | src/utils/debugger/SkDebugCanvas.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 9
10 #ifndef SKDEBUGCANVAS_H_ 10 #ifndef SKDEBUGCANVAS_H_
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 protected: 169 protected:
170 void willSave() SK_OVERRIDE; 170 void willSave() SK_OVERRIDE;
171 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) SK _OVERRIDE; 171 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) SK _OVERRIDE;
172 void willRestore() SK_OVERRIDE; 172 void willRestore() SK_OVERRIDE;
173 173
174 void didConcat(const SkMatrix&) SK_OVERRIDE; 174 void didConcat(const SkMatrix&) SK_OVERRIDE;
175 void didSetMatrix(const SkMatrix&) SK_OVERRIDE; 175 void didSetMatrix(const SkMatrix&) SK_OVERRIDE;
176 176
177 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID E; 177 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID E;
178 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, 178 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y,
179 const SkPaint&) SK_OVERRIDE; 179 const SkPaint&) SK_OVERRIDE;
180 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], 180 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[],
181 const SkPaint&) SK_OVERRIDE; 181 const SkPaint&) SK_OVERRIDE;
182 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos [], 182 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[],
183 SkScalar constY, const SkPaint&) SK_OVERRIDE; 183 SkScalar constY, const SkPaint&) SK_OVERRIDE;
184 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat h, 184 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path,
185 const SkMatrix* matrix, const SkPaint&) SK_OVERRIDE; 185 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE;
186 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 186 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
187 const SkPaint& paint) SK_OVERRIDE; 187 const SkPaint& paint) SK_OVERRIDE;
188 188
189 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
190 const SkPoint texCoords[4], SkXfermode* xmode, const SkPain t& paint);
191 void onDrawPaint(const SkPaint&) SK_OVERRIDE; 189 void onDrawPaint(const SkPaint&) SK_OVERRIDE;
192 190 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) SK_OVERRIDE;
193 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE; 191 void onDrawRect(const SkRect&, const SkPaint&) SK_OVERRIDE;
194 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE; 192 void onDrawOval(const SkRect&, const SkPaint&) SK_OVERRIDE;
195 void onDrawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE; 193 void onDrawRRect(const SkRRect&, const SkPaint&) SK_OVERRIDE;
196 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) SK_OVERRIDE;
197 void onDrawVertices(VertexMode vmode, int vertexCount,
198 const SkPoint vertices[], const SkPoint texs[],
199 const SkColor colors[], SkXfermode* xmode,
200 const uint16_t indices[], int indexCount,
201 const SkPaint&) SK_OVERRIDE;
202 void onDrawPath(const SkPath&, const SkPaint&) SK_OVERRIDE; 194 void onDrawPath(const SkPath&, const SkPaint&) SK_OVERRIDE;
203 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) SK_OVERRIDE; 195 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) SK_OVERRIDE;
204 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 196 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
205 DrawBitmapRectFlags flags) SK_OVERRIDE; 197 DrawBitmapRectFlags flags) SK_OVERRIDE;
206 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) SK_OVERRIDE; 198 void onDrawImage(const SkImage*, SkScalar left, SkScalar top, const SkPaint* ) SK_OVERRIDE;
207 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 199 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
208 const SkPaint*) SK_OVERRIDE; 200 const SkPaint*) SK_OVERRIDE;
209 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 201 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
210 const SkPaint*) SK_OVERRIDE; 202 const SkPaint*) SK_OVERRIDE;
211 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) SK_OVE RRIDE; 203 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) SK_OVE RRIDE;
204 void onDrawVertices(VertexMode vmode, int vertexCount,
205 const SkPoint vertices[], const SkPoint texs[],
206 const SkColor colors[], SkXfermode* xmode,
207 const uint16_t indices[], int indexCount,
208 const SkPaint&) SK_OVERRIDE;
209
212 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; 210 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE;
213 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; 211 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE;
214 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE; 212 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE;
215 void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE; 213 void onClipRegion(const SkRegion& region, SkRegion::Op) SK_OVERRIDE;
216 214
217 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE RRIDE; 215 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE RRIDE;
218 216
219 void markActiveCommands(int index); 217 void markActiveCommands(int index);
220 218
221 private: 219 private:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 bool lastClipStackData(const SkPath& devPath); 269 bool lastClipStackData(const SkPath& devPath);
272 void outputConicPoints(const SkPoint* pts, SkScalar weight); 270 void outputConicPoints(const SkPoint* pts, SkScalar weight);
273 void outputPoints(const SkPoint* pts, int count); 271 void outputPoints(const SkPoint* pts, int count);
274 void outputPointsCommon(const SkPoint* pts, int count); 272 void outputPointsCommon(const SkPoint* pts, int count);
275 void outputScalar(SkScalar num); 273 void outputScalar(SkScalar num);
276 274
277 typedef SkCanvas INHERITED; 275 typedef SkCanvas INHERITED;
278 }; 276 };
279 277
280 #endif 278 #endif
OLDNEW
« no previous file with comments | « debugger/SkDebugger.cpp ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698