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

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

Issue 2127233002: Added the framework for having canvas/recorder/picture record depth_set's. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: updated tests to be more rigorous about translateZ in playback 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
« no previous file with comments | « src/core/SkPicturePlayback.cpp ('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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) ove rride; 152 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) ove rride;
153 bool onPeekPixels(SkPixmap*) override { return false; } 153 bool onPeekPixels(SkPixmap*) override { return false; }
154 154
155 void willSave() override; 155 void willSave() override;
156 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override; 156 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override;
157 void willRestore() override; 157 void willRestore() override;
158 158
159 void didConcat(const SkMatrix&) override; 159 void didConcat(const SkMatrix&) override;
160 void didSetMatrix(const SkMatrix&) override; 160 void didSetMatrix(const SkMatrix&) override;
161 161
162 void didTranslateZ(SkScalar) override;
163
162 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 164 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
163 165
164 void onDrawText(const void* text, size_t, SkScalar x, SkScalar y, const SkPa int&) override; 166 void onDrawText(const void* text, size_t, SkScalar x, SkScalar y, const SkPa int&) override;
165 void onDrawPosText(const void* text, size_t, const SkPoint pos[], const SkPa int&) override; 167 void onDrawPosText(const void* text, size_t, const SkPoint pos[], const SkPa int&) override;
166 void onDrawPosTextH(const void* text, size_t, const SkScalar xpos[], SkScala r constY, 168 void onDrawPosTextH(const void* text, size_t, const SkScalar xpos[], SkScala r constY,
167 const SkPaint&) override; 169 const SkPaint&) override;
168 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat h, 170 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat h,
169 const SkMatrix* matrix, const SkPaint&) overri de; 171 const SkMatrix* matrix, const SkPaint&) overri de;
170 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 172 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
171 const SkPaint& paint) override; 173 const SkPaint& paint) override;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 246
245 uint32_t fRecordFlags; 247 uint32_t fRecordFlags;
246 int fInitialSaveCount; 248 int fInitialSaveCount;
247 249
248 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor 250 friend class SkPictureData; // for SkPictureData's SkPictureRecord-based c onstructor
249 251
250 typedef SkCanvas INHERITED; 252 typedef SkCanvas INHERITED;
251 }; 253 };
252 254
253 #endif 255 #endif
OLDNEW
« no previous file with comments | « src/core/SkPicturePlayback.cpp ('k') | src/core/SkPictureRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698