remove device capture from SkNWayCanvas

Change-Id: Icc6d1345c59d6f6529db39bf4b5bd8097f1f6b5f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/525837
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
This commit is contained in:
Herb Derby 2022-03-28 16:00:28 -04:00 committed by SkCQ
parent 556ca8f7ee
commit 2b925c4a21
2 changed files with 0 additions and 11 deletions

View File

@ -16,12 +16,6 @@
class SK_API SkNWayCanvas : public SkCanvasVirtualEnforcer<SkNoDrawCanvas> {
public:
SkNWayCanvas(int width, int height);
#if SK_SUPPORT_GPU && GR_TEST_UTILS
// You can turn NWay canvas into a canvas a wrapper for a single canvas by passing the
// canvas.
SkNWayCanvas(SkCanvas*);
#endif
~SkNWayCanvas() override;
virtual void addCanvas(SkCanvas*);

View File

@ -11,11 +11,6 @@
#include "src/core/SkDevice.h"
SkNWayCanvas::SkNWayCanvas(int width, int height) : INHERITED(width, height) {}
#if SK_SUPPORT_GPU && GR_TEST_UTILS
SkNWayCanvas::SkNWayCanvas(SkCanvas* canvas) : INHERITED(sk_ref_sp(canvas->baseDevice())) {
this->addCanvas(canvas);
}
#endif
SkNWayCanvas::~SkNWayCanvas() {
this->removeAll();