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

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

Issue 1533953002: change signature for virtual related to saveLayer, passing SaveLayerRec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update comment Created 5 years 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/SkRecordDraw.cpp ('k') | src/core/SkRecorder.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 2014 Google Inc. 2 * Copyright 2014 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 SkRecorder_DEFINED 8 #ifndef SkRecorder_DEFINED
9 #define SkRecorder_DEFINED 9 #define SkRecorder_DEFINED
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 size_t approxBytesUsedBySubPictures() const { return fApproxBytesUsedBySubPi ctures; } 48 size_t approxBytesUsedBySubPictures() const { return fApproxBytesUsedBySubPi ctures; }
49 49
50 SkDrawableList* getDrawableList() const { return fDrawableList.get(); } 50 SkDrawableList* getDrawableList() const { return fDrawableList.get(); }
51 SkDrawableList* detachDrawableList() { return fDrawableList.detach(); } 51 SkDrawableList* detachDrawableList() { return fDrawableList.detach(); }
52 52
53 // Make SkRecorder forget entirely about its SkRecord*; all calls to SkRecor der will fail. 53 // Make SkRecorder forget entirely about its SkRecord*; all calls to SkRecor der will fail.
54 void forgetRecord(); 54 void forgetRecord();
55 55
56 void willSave() override; 56 void willSave() override;
57 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SkCanvas::Sav eFlags) override; 57 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override;
58 void willRestore() override {} 58 void willRestore() override {}
59 void didRestore() override; 59 void didRestore() override;
60 60
61 void didConcat(const SkMatrix&) override; 61 void didConcat(const SkMatrix&) override;
62 void didSetMatrix(const SkMatrix&) override; 62 void didSetMatrix(const SkMatrix&) override;
63 63
64 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 64 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
65 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; 65 void onDrawDrawable(SkDrawable*, const SkMatrix*) override;
66 void onDrawText(const void* text, 66 void onDrawText(const void* text,
67 size_t byteLength, 67 size_t byteLength,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 DrawPictureMode fDrawPictureMode; 141 DrawPictureMode fDrawPictureMode;
142 size_t fApproxBytesUsedBySubPictures; 142 size_t fApproxBytesUsedBySubPictures;
143 SkRecord* fRecord; 143 SkRecord* fRecord;
144 SkAutoTDelete<SkDrawableList> fDrawableList; 144 SkAutoTDelete<SkDrawableList> fDrawableList;
145 145
146 SkMiniRecorder* fMiniRecorder; 146 SkMiniRecorder* fMiniRecorder;
147 }; 147 };
148 148
149 #endif//SkRecorder_DEFINED 149 #endif//SkRecorder_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkRecordDraw.cpp ('k') | src/core/SkRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698