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:
parent
556ca8f7ee
commit
2b925c4a21
@ -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*);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user