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

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

Issue 174593003: override new virtual onDrawDRRect in util canvas subclasses (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « no previous file | 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 const SkPaint& paint) SK_OVERRIDE; 193 const SkPaint& paint) SK_OVERRIDE;
194 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE; 194 virtual void drawPicture(SkPicture& picture) SK_OVERRIDE;
195 virtual void drawVertices(VertexMode vmode, int vertexCount, 195 virtual void drawVertices(VertexMode vmode, int vertexCount,
196 const SkPoint vertices[], const SkPoint texs[], 196 const SkPoint vertices[], const SkPoint texs[],
197 const SkColor colors[], SkXfermode* xmode, 197 const SkColor colors[], SkXfermode* xmode,
198 const uint16_t indices[], int indexCount, 198 const uint16_t indices[], int indexCount,
199 const SkPaint& paint) SK_OVERRIDE; 199 const SkPaint& paint) SK_OVERRIDE;
200 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE; 200 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE;
201 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; 201 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE;
202 202
203 protected:
204 virtual void onDrawDRRect(const SkRRect&, const SkRRect&,
205 const SkPaint&) SK_OVERRIDE;
206
203 public: 207 public:
204 class NotificationClient { 208 class NotificationClient {
205 public: 209 public:
206 virtual ~NotificationClient() {} 210 virtual ~NotificationClient() {}
207 211
208 /** 212 /**
209 * Called before executing one or several draw commands, which means 213 * Called before executing one or several draw commands, which means
210 * once per flush when deferred rendering is enabled. 214 * once per flush when deferred rendering is enabled.
211 */ 215 */
212 virtual void prepareForDraw() {} 216 virtual void prepareForDraw() {}
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 void validate() const; 251 void validate() const;
248 void init(); 252 void init();
249 bool fDeferredDrawing; 253 bool fDeferredDrawing;
250 254
251 friend class SkDeferredCanvasTester; // for unit testing 255 friend class SkDeferredCanvasTester; // for unit testing
252 typedef SkCanvas INHERITED; 256 typedef SkCanvas INHERITED;
253 }; 257 };
254 258
255 259
256 #endif 260 #endif
OLDNEW
« no previous file with comments | « no previous file | include/utils/SkDumpCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698