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

Side by Side Diff: include/utils/SkDumpCanvas.h

Issue 138013009: Culling API (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Rebased, fCullOffsetStack decl -> unconditional Created 6 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 | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 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 #ifndef SkDumpCanvas_DEFINED 8 #ifndef SkDumpCanvas_DEFINED
9 #define SkDumpCanvas_DEFINED 9 #define SkDumpCanvas_DEFINED
10 10
(...skipping 15 matching lines...) Expand all
26 virtual ~SkDumpCanvas(); 26 virtual ~SkDumpCanvas();
27 27
28 enum Verb { 28 enum Verb {
29 kNULL_Verb, 29 kNULL_Verb,
30 30
31 kSave_Verb, 31 kSave_Verb,
32 kRestore_Verb, 32 kRestore_Verb,
33 33
34 kMatrix_Verb, 34 kMatrix_Verb,
35 35
36 kClip_Verb, 36 kClip_Verb,
robertphillips 2014/02/25 15:58:41 Will this mess up the ordering anywhere else (esp.
f(malita) 2014/02/25 16:50:28 This enum is only used in SkDumpCanvas, so I don't
37 kCull_Verb,
37 38
38 kDrawPaint_Verb, 39 kDrawPaint_Verb,
39 kDrawPoints_Verb, 40 kDrawPoints_Verb,
40 kDrawOval_Verb, 41 kDrawOval_Verb,
41 kDrawRect_Verb, 42 kDrawRect_Verb,
42 kDrawRRect_Verb, 43 kDrawRRect_Verb,
43 kDrawDRRect_Verb, 44 kDrawDRRect_Verb,
44 kDrawPath_Verb, 45 kDrawPath_Verb,
45 kDrawBitmap_Verb, 46 kDrawBitmap_Verb,
46 kDrawText_Verb, 47 kDrawText_Verb,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const SkColor colors[], SkXfermode* xmode, 123 const SkColor colors[], SkXfermode* xmode,
123 const uint16_t indices[], int indexCount, 124 const uint16_t indices[], int indexCount,
124 const SkPaint& paint) SK_OVERRIDE; 125 const SkPaint& paint) SK_OVERRIDE;
125 virtual void drawData(const void*, size_t) SK_OVERRIDE; 126 virtual void drawData(const void*, size_t) SK_OVERRIDE;
126 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; 127 virtual void beginCommentGroup(const char* description) SK_OVERRIDE;
127 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; 128 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE;
128 virtual void endCommentGroup() SK_OVERRIDE; 129 virtual void endCommentGroup() SK_OVERRIDE;
129 130
130 protected: 131 protected:
131 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE; 132 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE;
133 virtual void onPushCull(const SkRect& cullRect) SK_OVERRIDE;
134 virtual void onPopCull() SK_OVERRIDE;
132 135
133 private: 136 private:
134 Dumper* fDumper; 137 Dumper* fDumper;
135 int fNestLevel; // for nesting recursive elements like pictures 138 int fNestLevel; // for nesting recursive elements like pictures
136 139
137 void dump(Verb, const SkPaint*, const char format[], ...); 140 void dump(Verb, const SkPaint*, const char format[], ...);
138 141
139 typedef SkCanvas INHERITED; 142 typedef SkCanvas INHERITED;
140 }; 143 };
141 144
(...skipping 22 matching lines...) Expand all
164 public: 167 public:
165 SkDebugfDumper(); 168 SkDebugfDumper();
166 169
167 private: 170 private:
168 typedef SkFormatDumper INHERITED; 171 typedef SkFormatDumper INHERITED;
169 }; 172 };
170 173
171 #endif 174 #endif
172 175
173 #endif 176 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698