Commit 256c4ad7 authored by Xida Chen's avatar Xida Chen Committed by Commit Bot

[CodeHealth] Remove an unused function

This CL removes an un-used function in PaintRenderingContext2d

Bug: None
Change-Id: Idb16af53d2f63132576bff64973f39c6d91459af
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2050604Reviewed-by: default avatarYi Gu <yigu@chromium.org>
Commit-Queue: Xida Chen <xidachen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#740302}
parent a0f3a5ba
......@@ -45,12 +45,6 @@ void PaintRenderingContext2D::InitializePaintRecorder() {
did_record_draw_commands_in_paint_recorder_ = false;
}
cc::PaintCanvas* PaintRenderingContext2D::Canvas() const {
DCHECK(paint_recorder_);
DCHECK(paint_recorder_->getRecordingCanvas());
return paint_recorder_->getRecordingCanvas();
}
void PaintRenderingContext2D::DidDraw(const SkIRect&) {
did_record_draw_commands_in_paint_recorder_ = true;
}
......
......@@ -95,7 +95,6 @@ class MODULES_EXPORT PaintRenderingContext2D : public ScriptWrappable,
private:
void InitializePaintRecorder();
cc::PaintCanvas* Canvas() const;
std::unique_ptr<PaintRecorder> paint_recorder_;
sk_sp<PaintRecord> previous_frame_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment