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

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

Issue 463493002: SkCanvas::drawPatch param SkPoint[12] (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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 #ifndef SkDeferredCanvas_DEFINED 8 #ifndef SkDeferredCanvas_DEFINED
9 #define SkDeferredCanvas_DEFINED 9 #define SkDeferredCanvas_DEFINED
10 10
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, 161 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,
162 const SkRect& dst, const SkPaint* paint) 162 const SkRect& dst, const SkPaint* paint)
163 SK_OVERRIDE; 163 SK_OVERRIDE;
164 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, 164 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
165 const SkPaint* paint) SK_OVERRIDE; 165 const SkPaint* paint) SK_OVERRIDE;
166 virtual void drawVertices(VertexMode vmode, int vertexCount, 166 virtual void drawVertices(VertexMode vmode, int vertexCount,
167 const SkPoint vertices[], const SkPoint texs[], 167 const SkPoint vertices[], const SkPoint texs[],
168 const SkColor colors[], SkXfermode* xmode, 168 const SkColor colors[], SkXfermode* xmode,
169 const uint16_t indices[], int indexCount, 169 const uint16_t indices[], int indexCount,
170 const SkPaint& paint) SK_OVERRIDE; 170 const SkPaint& paint) SK_OVERRIDE;
171 virtual void drawPatch(const SkPatch& patch, const SkPaint& paint) SK_OVERRI DE; 171 virtual void drawPatch(const SkPoint cubics[12], const SkColor colors[4],
172 const SkPoint texCoords[4], SkXfermode* xmode,
173 const SkPaint& paint) SK_OVERRIDE;
172 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; 174 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE;
173 175
174 protected: 176 protected:
175 virtual void willSave() SK_OVERRIDE; 177 virtual void willSave() SK_OVERRIDE;
176 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE; 178 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE;
177 virtual void willRestore() SK_OVERRIDE; 179 virtual void willRestore() SK_OVERRIDE;
178 180
179 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; 181 virtual void didConcat(const SkMatrix&) SK_OVERRIDE;
180 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; 182 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE;
181 183
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 247
246 size_t fBitmapSizeThreshold; 248 size_t fBitmapSizeThreshold;
247 bool fDeferredDrawing; 249 bool fDeferredDrawing;
248 250
249 friend class SkDeferredCanvasTester; // for unit testing 251 friend class SkDeferredCanvasTester; // for unit testing
250 typedef SkCanvas INHERITED; 252 typedef SkCanvas INHERITED;
251 }; 253 };
252 254
253 255
254 #endif 256 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698