aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-12-20 15:03:08 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-20 20:27:06 +0000
commitb60c5ebf045df23f9a15f85c37825b15adff9d8d (patch)
tree59ddc5aea96dd7fef64b8e738ff9e20feed5db4f /include/core
parent297d6efe852ebb98a324a71c79df8f7bbdcc3b94 (diff)
remove unused willPlayBackBitmaps from picture
and SkPictureAnalyzer Bug: skia: Change-Id: I394eca648234b1a69e6f9a0a88c407366a33d079 Reviewed-on: https://skia-review.googlesource.com/87791 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkPicture.h13
-rw-r--r--include/core/SkPictureAnalyzer.h55
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