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:
parent
0164896de5
commit
4b7b6f0229
@ -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",
|
||||
|
@ -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>)
|
||||
|
@ -29,4 +29,4 @@ private:
|
||||
typedef SkCanvas INHERITED;
|
||||
};
|
||||
|
||||
#endif // SkNoSaveLayerCanvas_DEFINED
|
||||
#endif // SkNoDrawCanvas_DEFINED
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user