aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Reed <reed@google.com>2019-01-29 21:04:30 -0500
committerSkia Commit-Bot <skia-commit-bot@chromium.org>2019-01-30 02:31:40 +0000
commitd76a0f49c2308ac82d97c61ee06741d570821aab (patch)
tree9aae671ecaa89acbed874deede93ed885c9c7d45 /src
parent3f42e98f461af6f9022fa3fd3f3ab98b34dd81c3 (diff)
downloadskqp-d76a0f49c2308ac82d97c61ee06741d570821aab.tar.gz
remove unused paintpriv methods
Bug: skia: Change-Id: I7f8a8c86ac3af2edf66f1693439bd43b53c2dafb Reviewed-on: https://skia-review.googlesource.com/c/187930 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com> Auto-Submit: Mike Reed <reed@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/SkPaintPriv.cpp13
-rw-r--r--src/core/SkPaintPriv.h21
2 files changed, 0 insertions, 34 deletions
diff --git a/src/core/SkPaintPriv.cpp b/src/core/SkPaintPriv.cpp
index 2c7c20d4bc..9b40b5ed22 100644
--- a/src/core/SkPaintPriv.cpp
+++ b/src/core/SkPaintPriv.cpp
@@ -5,13 +5,10 @@
* found in the LICENSE file.
*/
-#include "SkBitmap.h"
#include "SkColorFilter.h"
#include "SkPaintPriv.h"
-#include "SkImage.h"
#include "SkPaint.h"
#include "SkShaderBase.h"
-#include "SkUTF.h"
#include "SkXfermodePriv.h"
static bool changes_alpha(const SkPaint& paint) {
@@ -46,16 +43,6 @@ bool SkPaintPriv::Overwrites(const SkPaint* paint, ShaderOverrideOpacity overrid
return SkXfermode::IsOpaque(paint->getBlendMode(), opacityType);
}
-bool SkPaintPriv::Overwrites(const SkBitmap& bitmap, const SkPaint* paint) {
- return Overwrites(paint, bitmap.isOpaque() ? kOpaque_ShaderOverrideOpacity
- : kNotOpaque_ShaderOverrideOpacity);
-}
-
-bool SkPaintPriv::Overwrites(const SkImage* image, const SkPaint* paint) {
- return Overwrites(paint, image->isOpaque() ? kOpaque_ShaderOverrideOpacity
- : kNotOpaque_ShaderOverrideOpacity);
-}
-
bool SkPaintPriv::ShouldDither(const SkPaint& p, SkColorType dstCT) {
// The paint dither flag can veto.
if (!p.isDither()) {
diff --git a/src/core/SkPaintPriv.h b/src/core/SkPaintPriv.h
index 4d3750573c..caa670d1d4 100644
--- a/src/core/SkPaintPriv.h
+++ b/src/core/SkPaintPriv.h
@@ -8,14 +8,9 @@
#ifndef SkPaintPriv_DEFINED
#define SkPaintPriv_DEFINED
-#include "SkImageInfo.h"
-#include "SkMatrix.h"
#include "SkPaint.h"
-#include "SkTypeface.h"
-class SkBitmap;
class SkFont;
-class SkImage;
class SkReadBuffer;
class SkWriteBuffer;
@@ -41,22 +36,6 @@ public:
*/
static bool Overwrites(const SkPaint* paint, ShaderOverrideOpacity);
- static bool Overwrites(const SkPaint& paint) {
- return Overwrites(&paint, kNone_ShaderOverrideOpacity);
- }
-
- /**
- * Returns true if drawing this bitmap with this paint (or nullptr) will ovewrite all affected
- * pixels.
- */
- static bool Overwrites(const SkBitmap&, const SkPaint* paint);
-
- /**
- * Returns true if drawing this image with this paint (or nullptr) will ovewrite all affected
- * pixels.
- */
- static bool Overwrites(const SkImage*, const SkPaint* paint);
-
static bool ShouldDither(const SkPaint&, SkColorType);
/** Serializes SkPaint into a buffer. A companion unflatten() call