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

Side by Side Diff: src/core/SkPictureRecord.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 | « src/core/SkPictureFlat.h ('k') | src/core/SkPictureRecord.cpp » ('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 2011 Google Inc. 2 * Copyright 2011 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 SkPictureRecord_DEFINED 8 #ifndef SkPictureRecord_DEFINED
9 #define SkPictureRecord_DEFINED 9 #define SkPictureRecord_DEFINED
10 10
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat h, 166 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat h,
167 const SkMatrix* matrix, const SkPaint&) overri de; 167 const SkMatrix* matrix, const SkPaint&) overri de;
168 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 168 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
169 const SkPaint& paint) override; 169 const SkPaint& paint) override;
170 170
171 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], 171 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
172 const SkPoint texCoords[4], SkXfermode* xmode, 172 const SkPoint texCoords[4], SkXfermode* xmode,
173 const SkPaint& paint) override; 173 const SkPaint& paint) override;
174 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk Color[], int, 174 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk Color[], int,
175 SkXfermode::Mode, const SkRect*, const SkPaint*) override; 175 SkXfermode::Mode, const SkRect*, const SkPaint*) override;
176 void onDrawLitAtlas(const SkImage*, const SkRSXform[],
177 const SkRect diffTex[], const SkRect normTex[], const Sk Color[], int,
178 SkXfermode::Mode, const SkRect*, const SkPaint*,
179 const SkLight lights[], int numLights) override;
176 180
177 void onDrawPaint(const SkPaint&) override; 181 void onDrawPaint(const SkPaint&) override;
178 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override; 182 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override;
179 void onDrawRect(const SkRect&, const SkPaint&) override; 183 void onDrawRect(const SkRect&, const SkPaint&) override;
180 void onDrawOval(const SkRect&, const SkPaint&) override; 184 void onDrawOval(const SkRect&, const SkPaint&) override;
181 void onDrawRRect(const SkRRect&, const SkPaint&) override; 185 void onDrawRRect(const SkRRect&, const SkPaint&) override;
182 void onDrawPath(const SkPath&, const SkPaint&) override; 186 void onDrawPath(const SkPath&, const SkPaint&) override;
183 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 187 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
184 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 188 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
185 SrcRectConstraint) override; 189 SrcRectConstraint) override;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 240
237 uint32_t fRecordFlags; 241 uint32_t fRecordFlags;
238 int fInitialSaveCount; 242 int fInitialSaveCount;
239 243
240 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor 244 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor
241 245
242 typedef SkCanvas INHERITED; 246 typedef SkCanvas INHERITED;
243 }; 247 };
244 248
245 #endif 249 #endif
OLDNEW
« no previous file with comments | « src/core/SkPictureFlat.h ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698