diff options
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkPicture.h | 13 | ||||
-rw-r--r-- | include/core/SkPictureAnalyzer.h | 55 |
2 files changed, 1 insertions, 67 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h index 2b004d307b..32afd645fc 100644 --- a/include/core/SkPicture.h +++ b/include/core/SkPicture.h @@ -115,12 +115,6 @@ public: */ void flatten(SkWriteBuffer&) const; - /** - * Returns true if any bitmaps may be produced when this SkPicture - * is replayed. - */ - virtual bool willPlayBackBitmaps() const = 0; - /** Return the approximate number of operations in this picture. This * number may be greater or less than the number of SkCanvas calls * recorded: some calls may be recorded as more than one operation, or some @@ -131,11 +125,6 @@ public: /** Returns the approximate byte size of this picture, not including large ref'd objects. */ virtual size_t approximateBytesUsed() const = 0; -#ifdef SK_SUPPORT_LEGACY_PICTURE_GPUVETO - /** Return true if the picture is suitable for rendering on the GPU. */ - bool suitableForGpuRasterization(GrContext*, const char** whyNot = nullptr) const; -#endif - // Returns NULL if this is not an SkBigPicture. virtual const SkBigPicture* asSkBigPicture() const { return nullptr; } @@ -164,8 +153,6 @@ private: static bool BufferIsSKP(SkReadBuffer*, SkPictInfo*); friend bool SkPicture_StreamIsSKP(SkStream*, SkPictInfo*); - virtual int numSlowPaths() const = 0; - friend class SkPictureGpuAnalyzer; friend struct SkPathCounter; // V35: Store SkRect (rather then width & height) in header diff --git a/include/core/SkPictureAnalyzer.h b/include/core/SkPictureAnalyzer.h index 52db8334d4..8bc00949e6 100644 --- a/include/core/SkPictureAnalyzer.h +++ b/include/core/SkPictureAnalyzer.h @@ -8,59 +8,6 @@ #ifndef SkPictureAnalyzer_DEFINED #define SkPictureAnalyzer_DEFINED -#include "SkCanvas.h" -#include "SkRefCnt.h" -#include "SkRegion.h" -#include "SkTypes.h" - -#if SK_SUPPORT_GPU -#include "GrContext.h" - -class SkPath; -class SkPicture; - -/** \class SkPictureGpuAnalyzer - - Gathers GPU-related statistics for one or more SkPictures. -*/ -class SK_API SkPictureGpuAnalyzer final : public SkNoncopyable { -public: - explicit SkPictureGpuAnalyzer(sk_sp<GrContextThreadSafeProxy> = nullptr); - explicit SkPictureGpuAnalyzer(const sk_sp<SkPicture>& picture, - sk_sp<GrContextThreadSafeProxy> = nullptr); - - /** - * Process the given picture and accumulate its stats. - */ - void analyzePicture(const SkPicture*); - - /** - * Process an explicit clipPath op. - */ - void analyzeClipPath(const SkPath&, SkClipOp, bool doAntiAlias); - - /** - * Reset all accumulated stats. - */ - void reset(); - - /** - * Returns true if the analyzed pictures are suitable for rendering on the GPU. - */ - bool suitableForGpuRasterization(const char** whyNot = nullptr) const; - - /** - * Returns the number of commands which are slow to draw on the GPU, capped at the predicate - * max. - */ - uint32_t numSlowGpuCommands() { return fNumSlowPaths; } - -private: - uint32_t fNumSlowPaths; - - typedef SkNoncopyable INHERITED; -}; - -#endif // SK_SUPPORT_GPU +// This class is gone -- please remove sites that want to include it #endif // SkPictureAnalyzer_DEFINED |