Retire SkNoSaveLayerCanvas

No clients, superseded by SkNoDrawCanvas.

R=reed@google.com

Change-Id: I93352c6cfb24ec133ed8433c3b31a5fa5ab1ace8
Reviewed-on: https://skia-review.googlesource.com/5460
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
This commit is contained in:
Florin Malita 2016-12-01 15:46:26 -05:00 committed by Skia Commit-Bot
parent 0164896de5
commit 4b7b6f0229
4 changed files with 1 additions and 38 deletions

View File

@ -18,7 +18,6 @@ skia_utils_sources = [
"$_include/utils/SkLayer.h",
"$_include/utils/SkMeshUtils.h",
"$_include/utils/SkNoDrawCanvas.h",
"$_include/utils/SkNoSaveLayerCanvas.h",
"$_include/utils/SkNWayCanvas.h",
"$_include/utils/SkNullCanvas.h",
"$_include/utils/SkPaintFilterCanvas.h",

View File

@ -1623,7 +1623,6 @@ private:
friend class SkRecorder; // InitFlags
friend class SkLiteRecorder; // InitFlags
friend class SkNoDrawCanvas; // InitFlags
friend class SkNoSaveLayerCanvas; // InitFlags
friend class SkNWayCanvas; // InitFlags
friend class SkPictureImageFilter; // SkCanvas(SkBaseDevice*, SkSurfaceProps*, InitFlags)
friend class SkPictureRecord; // predrawNotify (why does it need it? <reed>)

View File

@ -29,4 +29,4 @@ private:
typedef SkCanvas INHERITED;
};
#endif // SkNoSaveLayerCanvas_DEFINED
#endif // SkNoDrawCanvas_DEFINED

View File

@ -1,35 +0,0 @@
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkNoSaveLayerCanvas_DEFINED
#define SkNoSaveLayerCanvas_DEFINED
#include "SkCanvas.h"
#include "SkRRect.h"
// The NoSaveLayerCanvas is used to play back SkPictures when the saveLayer
// functionality isn't required (e.g., during analysis of the draw calls).
// It also simplifies the clipping calls to only use rectangles.
//
// DEPRECATED: use SkNoDrawCanvas instead.
class SK_API SkNoSaveLayerCanvas : public SkCanvas {
public:
SkNoSaveLayerCanvas(SkBaseDevice* device)
: INHERITED(device, kConservativeRasterClip_InitFlag)
{}
protected:
SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec& rec) override {
(void)this->INHERITED::getSaveLayerStrategy(rec);
return kNoLayer_SaveLayerStrategy;
}
private:
typedef SkCanvas INHERITED;
};
#endif // SkNoSaveLayerCanvas_DEFINED