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

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

Issue 1181913003: add SkCanvas::drawAtlas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix warnings Created 5 years, 6 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/SkMatrix.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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 const SkPoint verts[], const SkPoint texs[], 238 const SkPoint verts[], const SkPoint texs[],
239 const SkColor colors[], SkXfermode* xmode, 239 const SkColor colors[], SkXfermode* xmode,
240 const uint16_t indices[], int indexCount, 240 const uint16_t indices[], int indexCount,
241 const SkPaint& paint) = 0; 241 const SkPaint& paint) = 0;
242 // default implementation unrolls the blob runs. 242 // default implementation unrolls the blob runs.
243 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc alar y, 243 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc alar y,
244 const SkPaint& paint, SkDrawFilter* drawFilter); 244 const SkPaint& paint, SkDrawFilter* drawFilter);
245 // default implementation calls drawVertices 245 // default implementation calls drawVertices
246 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo r colors[4], 246 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo r colors[4],
247 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint); 247 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint);
248
249 // default implementation calls drawPath
250 virtual void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[ ], const SkRect[],
251 const SkColor[], int count, SkXfermode::Mode, const S kPaint&);
252
248 /** The SkDevice passed will be an SkDevice which was returned by a call to 253 /** The SkDevice passed will be an SkDevice which was returned by a call to
249 onCreateDevice on this device with kNeverTile_TileExpectation. 254 onCreateDevice on this device with kNeverTile_TileExpectation.
250 */ 255 */
251 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 256 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
252 const SkPaint&) = 0; 257 const SkPaint&) = 0;
253 258
254 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con st SkPath&, 259 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con st SkPath&,
255 const SkMatrix*, const SkPaint&); 260 const SkMatrix*, const SkPaint&);
256 261
257 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y ); 262 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y );
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 SkSurfaceProps fSurfaceProps; 398 SkSurfaceProps fSurfaceProps;
394 399
395 #ifdef SK_DEBUG 400 #ifdef SK_DEBUG
396 bool fAttachedToCanvas; 401 bool fAttachedToCanvas;
397 #endif 402 #endif
398 403
399 typedef SkRefCnt INHERITED; 404 typedef SkRefCnt INHERITED;
400 }; 405 };
401 406
402 #endif 407 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkMatrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698