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

Side by Side Diff: include/core/SkDevice.h

Issue 424663006: SkCanvas interface for drawing a patch. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fixed implicit casting in patch.cpp 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
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkPatch.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 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
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 SkDevice_DEFINED 8 #ifndef SkDevice_DEFINED
9 #define SkDevice_DEFINED 9 #define SkDevice_DEFINED
10 10
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 const SkScalar pos[], SkScalar constY, 235 const SkScalar pos[], SkScalar constY,
236 int scalarsPerPos, const SkPaint& paint) = 0; 236 int scalarsPerPos, const SkPaint& paint) = 0;
237 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, 237 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len,
238 const SkPath& path, const SkMatrix* matrix, 238 const SkPath& path, const SkMatrix* matrix,
239 const SkPaint& paint) = 0; 239 const SkPaint& paint) = 0;
240 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt, 240 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt,
241 const SkPoint verts[], const SkPoint texs[], 241 const SkPoint verts[], const SkPoint texs[],
242 const SkColor colors[], SkXfermode* xmode, 242 const SkColor colors[], SkXfermode* xmode,
243 const uint16_t indices[], int indexCount, 243 const uint16_t indices[], int indexCount,
244 const SkPaint& paint) = 0; 244 const SkPaint& paint) = 0;
245 // default implementation calls drawVertices
246 virtual void drawPatch(const SkDraw&, const SkPatch& patch, const SkPaint& p aint);
245 /** The SkDevice passed will be an SkDevice which was returned by a call to 247 /** The SkDevice passed will be an SkDevice which was returned by a call to
246 onCreateDevice on this device with kSaveLayer_Usage. 248 onCreateDevice on this device with kSaveLayer_Usage.
247 */ 249 */
248 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 250 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
249 const SkPaint&) = 0; 251 const SkPaint&) = 0;
250 252
251 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y ); 253 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y );
252 254
253 /////////////////////////////////////////////////////////////////////////// 255 ///////////////////////////////////////////////////////////////////////////
254 256
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 SkMetaData* fMetaData; 386 SkMetaData* fMetaData;
385 387
386 #ifdef SK_DEBUG 388 #ifdef SK_DEBUG
387 bool fAttachedToCanvas; 389 bool fAttachedToCanvas;
388 #endif 390 #endif
389 391
390 typedef SkRefCnt INHERITED; 392 typedef SkRefCnt INHERITED;
391 }; 393 };
392 394
393 #endif 395 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkPatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698