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

Side by Side Diff: src/core/SkPictureRecord.h

Issue 2146073003: Creating framework for drawShadowedPicture (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Fixed 'const sk_sp<SkLights>', also fixed some crumbs from merging Created 4 years, 5 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 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 const SkColor colors[], SkXfermode* xmode, 201 const SkColor colors[], SkXfermode* xmode,
202 const uint16_t indices[], int indexCount, 202 const uint16_t indices[], int indexCount,
203 const SkPaint&) override; 203 const SkPaint&) override;
204 204
205 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 205 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override;
206 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 206 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override;
207 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 207 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override;
208 void onClipRegion(const SkRegion&, SkRegion::Op) override; 208 void onClipRegion(const SkRegion&, SkRegion::Op) override;
209 209
210 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 210 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
211 void onDrawShadowedPicture(const SkPicture*, sk_sp<SkLights>) override;
211 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; 212 void onDrawDrawable(SkDrawable*, const SkMatrix*) override;
212 void onDrawAnnotation(const SkRect&, const char[], SkData*) override; 213 void onDrawAnnotation(const SkRect&, const char[], SkData*) override;
213 214
214 int addPathToHeap(const SkPath& path); // does not write to ops stream 215 int addPathToHeap(const SkPath& path); // does not write to ops stream
215 216
216 // These entry points allow the writing of matrices, clips, saves & 217 // These entry points allow the writing of matrices, clips, saves &
217 // restores to be deferred (e.g., if the MC state is being collapsed and 218 // restores to be deferred (e.g., if the MC state is being collapsed and
218 // only written out as needed). 219 // only written out as needed).
219 void recordConcat(const SkMatrix& matrix); 220 void recordConcat(const SkMatrix& matrix);
220 void recordTranslate(const SkMatrix& matrix); 221 void recordTranslate(const SkMatrix& matrix);
(...skipping 27 matching lines...) Expand all
248 249
249 uint32_t fRecordFlags; 250 uint32_t fRecordFlags;
250 int fInitialSaveCount; 251 int fInitialSaveCount;
251 252
252 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor 253 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor
253 254
254 typedef SkCanvas INHERITED; 255 typedef SkCanvas INHERITED;
255 }; 256 };
256 257
257 #endif 258 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698