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

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

Issue 1261433009: Refugee from Dead Machine 11: Add SkCanvas::drawLitAtlas call Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 7 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/SkLight.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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc alar y, 245 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkSc alar y,
246 const SkPaint& paint, SkDrawFilter* drawFilter); 246 const SkPaint& paint, SkDrawFilter* drawFilter);
247 // default implementation calls drawVertices 247 // default implementation calls drawVertices
248 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo r colors[4], 248 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo r colors[4],
249 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint); 249 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint);
250 250
251 // default implementation calls drawPath 251 // default implementation calls drawPath
252 virtual void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[ ], const SkRect[], 252 virtual void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[ ], const SkRect[],
253 const SkColor[], int count, SkXfermode::Mode, const S kPaint&); 253 const SkColor[], int count, SkXfermode::Mode, const S kPaint&);
254 254
255 virtual void drawLitAtlas(const SkDraw&, const SkImage* atlas,
256 const SkRSXform[], const SkRect diffTex[], const S kRect normTex[],
257 const SkColor[], int count, SkXfermode::Mode, cons t SkPaint&,
258 const SkLight lights[], int numLights);
259
255 /** The SkDevice passed will be an SkDevice which was returned by a call to 260 /** The SkDevice passed will be an SkDevice which was returned by a call to
256 onCreateDevice on this device with kNeverTile_TileExpectation. 261 onCreateDevice on this device with kNeverTile_TileExpectation.
257 */ 262 */
258 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 263 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
259 const SkPaint&) = 0; 264 const SkPaint&) = 0;
260 265
261 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con st SkPath&, 266 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, con st SkPath&,
262 const SkMatrix*, const SkPaint&); 267 const SkMatrix*, const SkPaint&);
263 268
264 bool readPixels(const SkImageInfo&, void* dst, size_t rowBytes, int x, int y ); 269 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
400 SkSurfaceProps fSurfaceProps; 405 SkSurfaceProps fSurfaceProps;
401 406
402 #ifdef SK_DEBUG 407 #ifdef SK_DEBUG
403 bool fAttachedToCanvas; 408 bool fAttachedToCanvas;
404 #endif 409 #endif
405 410
406 typedef SkRefCnt INHERITED; 411 typedef SkRefCnt INHERITED;
407 }; 412 };
408 413
409 #endif 414 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkLight.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698