Commit 0ab306c4 authored by Khushal's avatar Khushal Committed by Commit Bot

cc: Remove unused code from PaintCanvas.

R=ericrk@chromium.org

Bug: 1006001
Change-Id: Ia661fe3672d93e2267af326451f0754cfcf1d9cc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1814502Reviewed-by: default avatarEric Karl <ericrk@chromium.org>
Reviewed-by: default avatardanakj <danakj@chromium.org>
Commit-Queue: Khushal <khushalsagar@chromium.org>
Auto-Submit: Khushal <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699362}
parent 92aab29e
...@@ -176,7 +176,6 @@ class CC_PAINT_EXPORT PaintCanvas { ...@@ -176,7 +176,6 @@ class CC_PAINT_EXPORT PaintCanvas {
virtual void drawPicture(sk_sp<const PaintRecord> record) = 0; virtual void drawPicture(sk_sp<const PaintRecord> record) = 0;
virtual bool isClipEmpty() const = 0; virtual bool isClipEmpty() const = 0;
virtual bool isClipRect() const = 0;
virtual const SkMatrix& getTotalMatrix() const = 0; virtual const SkMatrix& getTotalMatrix() const = 0;
// Used for printing // Used for printing
......
...@@ -296,11 +296,6 @@ bool RecordPaintCanvas::isClipEmpty() const { ...@@ -296,11 +296,6 @@ bool RecordPaintCanvas::isClipEmpty() const {
return GetCanvas()->isClipEmpty(); return GetCanvas()->isClipEmpty();
} }
bool RecordPaintCanvas::isClipRect() const {
DCHECK(InitializedWithRecordingBounds());
return GetCanvas()->isClipRect();
}
const SkMatrix& RecordPaintCanvas::getTotalMatrix() const { const SkMatrix& RecordPaintCanvas::getTotalMatrix() const {
return GetCanvas()->getTotalMatrix(); return GetCanvas()->getTotalMatrix();
} }
......
...@@ -102,7 +102,6 @@ class CC_PAINT_EXPORT RecordPaintCanvas final : public PaintCanvas { ...@@ -102,7 +102,6 @@ class CC_PAINT_EXPORT RecordPaintCanvas final : public PaintCanvas {
void drawPicture(sk_sp<const PaintRecord> record) override; void drawPicture(sk_sp<const PaintRecord> record) override;
bool isClipEmpty() const override; bool isClipEmpty() const override;
bool isClipRect() const override;
const SkMatrix& getTotalMatrix() const override; const SkMatrix& getTotalMatrix() const override;
void Annotate(AnnotationType type, void Annotate(AnnotationType type,
......
...@@ -328,10 +328,6 @@ bool SkiaPaintCanvas::isClipEmpty() const { ...@@ -328,10 +328,6 @@ bool SkiaPaintCanvas::isClipEmpty() const {
return canvas_->isClipEmpty(); return canvas_->isClipEmpty();
} }
bool SkiaPaintCanvas::isClipRect() const {
return canvas_->isClipRect();
}
const SkMatrix& SkiaPaintCanvas::getTotalMatrix() const { const SkMatrix& SkiaPaintCanvas::getTotalMatrix() const {
return canvas_->getTotalMatrix(); return canvas_->getTotalMatrix();
} }
......
...@@ -126,7 +126,6 @@ class CC_PAINT_EXPORT SkiaPaintCanvas final : public PaintCanvas { ...@@ -126,7 +126,6 @@ class CC_PAINT_EXPORT SkiaPaintCanvas final : public PaintCanvas {
void drawPicture(sk_sp<const PaintRecord> record) override; void drawPicture(sk_sp<const PaintRecord> record) override;
bool isClipEmpty() const override; bool isClipEmpty() const override;
bool isClipRect() const override;
const SkMatrix& getTotalMatrix() const override; const SkMatrix& getTotalMatrix() const override;
void Annotate(AnnotationType type, void Annotate(AnnotationType type,
......
...@@ -168,10 +168,6 @@ void Canvas::ClipPath(const SkPath& path, bool do_anti_alias) { ...@@ -168,10 +168,6 @@ void Canvas::ClipPath(const SkPath& path, bool do_anti_alias) {
canvas_->clipPath(path, SkClipOp::kIntersect, do_anti_alias); canvas_->clipPath(path, SkClipOp::kIntersect, do_anti_alias);
} }
bool Canvas::IsClipEmpty() const {
return canvas_->isClipEmpty();
}
bool Canvas::GetClipBounds(Rect* bounds) { bool Canvas::GetClipBounds(Rect* bounds) {
SkRect out; SkRect out;
if (canvas_->getLocalClipBounds(&out)) { if (canvas_->getLocalClipBounds(&out)) {
......
...@@ -190,9 +190,6 @@ class GFX_EXPORT Canvas { ...@@ -190,9 +190,6 @@ class GFX_EXPORT Canvas {
// should be antialiased. // should be antialiased.
void ClipPath(const SkPath& path, bool do_anti_alias); void ClipPath(const SkPath& path, bool do_anti_alias);
// Returns true if the current clip is empty.
bool IsClipEmpty() const;
// Returns the bounds of the current clip (in local coordinates) in the // Returns the bounds of the current clip (in local coordinates) in the
// |bounds| parameter, and returns true if it is non empty. // |bounds| parameter, and returns true if it is non empty.
bool GetClipBounds(Rect* bounds); bool GetClipBounds(Rect* bounds);
......
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