Skip to content

Commit

Permalink
SkFilterQuality is gone.
Browse files Browse the repository at this point in the history
Bug: skia:11235
Change-Id: Iefa0156f542f217e687299f053768ee5b87f84d7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/430977
Reviewed-by: Michael Ludwig <[email protected]>
Commit-Queue: Mike Reed <[email protected]>
  • Loading branch information
reed-at-google authored and Skia Commit-Bot committed Jul 22, 2021
1 parent ff32296 commit aebe248
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 53 deletions.
1 change: 0 additions & 1 deletion gn/core.gni
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ skia_core_public = [
"$_include/core/SkDrawable.h",
"$_include/core/SkEncodedImageFormat.h",
"$_include/core/SkExecutor.h",
"$_include/core/SkFilterQuality.h",
"$_include/core/SkFlattenable.h",
"$_include/core/SkFont.h",
"$_include/core/SkFontArguments.h",
Expand Down
36 changes: 0 additions & 36 deletions include/core/SkFilterQuality.h

This file was deleted.

1 change: 0 additions & 1 deletion include/core/SkPaint.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include "include/core/SkBlendMode.h"
#include "include/core/SkColor.h"
#include "include/core/SkFilterQuality.h"
#include "include/core/SkRefCnt.h"
#include "include/private/SkTOptional.h"
#include "include/private/SkTo.h"
Expand Down
10 changes: 1 addition & 9 deletions include/core/SkSamplingOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#ifndef SkImageSampling_DEFINED
#define SkImageSampling_DEFINED

#include "include/core/SkFilterQuality.h"
#include "include/core/SkTypes.h"
#include <new>

enum class SkFilterMode {
Expand Down Expand Up @@ -79,14 +79,6 @@ struct SK_API SkSamplingOptions {
: useCubic(true)
, cubic(c) {}

#ifdef SK_SUPPORT_LEGACY_FILTERQUALITY
enum MediumBehavior {
kMedium_asMipmapNearest, // historic cpu behavior
kMedium_asMipmapLinear, // historic gpu behavior
};
explicit SkSamplingOptions(SkFilterQuality, MediumBehavior = kMedium_asMipmapNearest);
#endif

bool operator==(const SkSamplingOptions& other) const {
return useCubic == other.useCubic
&& cubic.B == other.cubic.B
Expand Down
6 changes: 0 additions & 6 deletions src/image/SkImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -842,9 +842,3 @@ void SkSamplingPriv::Write(SkWriteBuffer& buffer, const SkSamplingOptions& sampl
buffer.writeUInt((unsigned)sampling.mipmap);
}
}

#ifdef SK_SUPPORT_LEGACY_FILTERQUALITY
SkSamplingOptions::SkSamplingOptions(SkFilterQuality fq, MediumBehavior behavior) {
*this = SkSamplingPriv::FromFQ((SkLegacyFQ)fq, (SkMediumAs)behavior);
}
#endif

0 comments on commit aebe248

Please sign in to comment.