Merge "Remove SkCanvas::flush() and related code from RecordingCanvas" into main

This commit is contained in:
Kevin Lubick
2023-07-12 14:24:10 +00:00
committed by Android (Google) Code Review
3 changed files with 0 additions and 18 deletions

View File

@@ -14,7 +14,6 @@
* limitations under the License.
*/
X(Flush)
X(Save)
X(Restore)
X(SaveLayer)

View File

@@ -107,11 +107,6 @@ struct Op {
};
static_assert(sizeof(Op) == 4, "");
struct Flush final : Op {
static const auto kType = Type::Flush;
void draw(SkCanvas* c, const SkMatrix&) const { c->flush(); }
};
struct Save final : Op {
static const auto kType = Type::Save;
void draw(SkCanvas* c, const SkMatrix&) const { c->save(); }
@@ -751,10 +746,6 @@ inline void DisplayListData::map(const Fn fns[], Args... args) const {
}
}
void DisplayListData::flush() {
this->push<Flush>(0);
}
void DisplayListData::save() {
this->push<Save>(0);
}
@@ -1046,10 +1037,6 @@ sk_sp<SkSurface> RecordingCanvas::onNewSurface(const SkImageInfo&, const SkSurfa
return nullptr;
}
void RecordingCanvas::onFlush() {
fDL->flush();
}
void RecordingCanvas::willSave() {
mSaveCount++;
fDL->save();

View File

@@ -127,8 +127,6 @@ public:
private:
friend class RecordingCanvas;
void flush();
void save();
void saveLayer(const SkRect*, const SkPaint*, const SkImageFilter*, SkCanvas::SaveLayerFlags);
void saveBehind(const SkRect*);
@@ -208,8 +206,6 @@ public:
void willRestore() override;
bool onDoSaveBehind(const SkRect*) override;
void onFlush() override;
void didConcat44(const SkM44&) override;
void didSetM44(const SkM44&) override;
void didScale(SkScalar, SkScalar) override;