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

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

Issue 340403003: SaveFlags be-gone (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: One more baseurl attempt Created 6 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
« no previous file with comments | « include/core/SkPicture.h ('k') | include/utils/SkDumpCanvas.h » ('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 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 #ifndef SkDeferredCanvas_DEFINED 8 #ifndef SkDeferredCanvas_DEFINED
9 #define SkDeferredCanvas_DEFINED 9 #define SkDeferredCanvas_DEFINED
10 10
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, 163 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
164 const SkPaint* paint) SK_OVERRIDE; 164 const SkPaint* paint) SK_OVERRIDE;
165 virtual void drawVertices(VertexMode vmode, int vertexCount, 165 virtual void drawVertices(VertexMode vmode, int vertexCount,
166 const SkPoint vertices[], const SkPoint texs[], 166 const SkPoint vertices[], const SkPoint texs[],
167 const SkColor colors[], SkXfermode* xmode, 167 const SkColor colors[], SkXfermode* xmode,
168 const uint16_t indices[], int indexCount, 168 const uint16_t indices[], int indexCount,
169 const SkPaint& paint) SK_OVERRIDE; 169 const SkPaint& paint) SK_OVERRIDE;
170 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; 170 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE;
171 171
172 protected: 172 protected:
173 virtual void willSave(SaveFlags) SK_OVERRIDE; 173 virtual void willSave() SK_OVERRIDE;
174 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE; 174 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE;
175 virtual void willRestore() SK_OVERRIDE; 175 virtual void willRestore() SK_OVERRIDE;
176 176
177 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; 177 virtual void didConcat(const SkMatrix&) SK_OVERRIDE;
178 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; 178 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE;
179 179
180 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE; 180 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE;
181 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y, 181 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y,
182 const SkPaint&) SK_OVERRIDE; 182 const SkPaint&) SK_OVERRIDE;
183 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[], 183 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[],
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 void validate() const; 241 void validate() const;
242 void init(); 242 void init();
243 bool fDeferredDrawing; 243 bool fDeferredDrawing;
244 244
245 friend class SkDeferredCanvasTester; // for unit testing 245 friend class SkDeferredCanvasTester; // for unit testing
246 typedef SkCanvas INHERITED; 246 typedef SkCanvas INHERITED;
247 }; 247 };
248 248
249 249
250 #endif 250 #endif
OLDNEW
« no previous file with comments | « include/core/SkPicture.h ('k') | include/utils/SkDumpCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698