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

Side by Side Diff: tools/debugger/SkDebugCanvas.h

Issue 2146073003: Creating framework for drawShadowedPicture (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Made changes to better hide changes from public Created 4 years, 5 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 2012 Google Inc. 2 * Copyright 2012 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 8
9 #ifndef SKDEBUGCANVAS_H_ 9 #ifndef SKDEBUGCANVAS_H_
10 #define SKDEBUGCANVAS_H_ 10 #define SKDEBUGCANVAS_H_
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 protected: 189 protected:
190 void willSave() override; 190 void willSave() override;
191 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override; 191 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override;
192 void willRestore() override; 192 void willRestore() override;
193 193
194 void didConcat(const SkMatrix&) override; 194 void didConcat(const SkMatrix&) override;
195 void didSetMatrix(const SkMatrix&) override; 195 void didSetMatrix(const SkMatrix&) override;
196 196
197 void didTranslateZ(SkScalar) override; 197 void didTranslateZ(SkScalar)
198 #ifdef SK_USE_SHADOWS
199 override
200 #endif
201 ;
198 202
199 void onDrawAnnotation(const SkRect&, const char[], SkData*) override; 203 void onDrawAnnotation(const SkRect&, const char[], SkData*) override;
200 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 204 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
201 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, 205 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
202 const SkPaint&) override; 206 const SkPaint&) override;
203 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], 207 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[],
204 const SkPaint&) override; 208 const SkPaint&) override;
205 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos [], 209 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos [],
206 SkScalar constY, const SkPaint&) override; 210 SkScalar constY, const SkPaint&) override;
207 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat h, 211 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat h,
(...skipping 24 matching lines...) Expand all
232 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 236 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
233 const SkPaint*, SrcRectConstraint) override; 237 const SkPaint*, SrcRectConstraint) override;
234 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 238 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
235 const SkPaint*) override; 239 const SkPaint*) override;
236 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 240 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override;
237 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 241 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override;
238 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 242 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override;
239 void onClipRegion(const SkRegion& region, SkRegion::Op) override; 243 void onClipRegion(const SkRegion& region, SkRegion::Op) override;
240 244
241 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 245 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
246 void onDrawShadowedPicture(const SkPicture*,
247 const SkMatrix*,
248 const SkPaint*)
249 #ifdef SK_USE_SHADOWS
250 override
251 #endif
252 ;
242 253
243 void markActiveCommands(int index); 254 void markActiveCommands(int index);
244 255
245 private: 256 private:
246 SkTDArray<SkDrawCommand*> fCommandVector; 257 SkTDArray<SkDrawCommand*> fCommandVector;
247 SkPicture* fPicture; 258 SkPicture* fPicture;
248 bool fFilter; 259 bool fFilter;
249 bool fMegaVizMode; 260 bool fMegaVizMode;
250 SkMatrix fUserMatrix; 261 SkMatrix fUserMatrix;
251 SkMatrix fMatrix; 262 SkMatrix fMatrix;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 GrAuditTrail* getAuditTrail(SkCanvas*); 305 GrAuditTrail* getAuditTrail(SkCanvas*);
295 306
296 void updatePaintFilterCanvas(); 307 void updatePaintFilterCanvas();
297 void drawAndCollectBatches(int n, SkCanvas*); 308 void drawAndCollectBatches(int n, SkCanvas*);
298 void cleanupAuditTrail(SkCanvas*); 309 void cleanupAuditTrail(SkCanvas*);
299 310
300 typedef SkCanvas INHERITED; 311 typedef SkCanvas INHERITED;
301 }; 312 };
302 313
303 #endif 314 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698