Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit ff01190

Browse files
Mike KleinSkia Commit-Bot
authored andcommitted
remove SkBitmapProcState::fInvKy
It's only used in asserts, and it's completely redundant with other asserts based on fInvMatrix. Change-Id: I150dc5b948e5703fff75bf857cabb173428b081f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/249818 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Mike Klein <mtklein@google.com>
1 parent c797483 commit ff01190

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

src/core/SkBitmapProcState.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ bool SkBitmapProcState::chooseProcs() {
246246

247247
fInvProc = SkMatrixPriv::GetMapXYProc(fInvMatrix);
248248
fInvSxFractionalInt = SkScalarToFractionalInt(fInvMatrix.getScaleX());
249-
fInvKy = SkScalarToFixed (fInvMatrix.getSkewY());
250249

251250
fAlphaScale = SkAlpha255To256(SkColorGetA(fPaintColor));
252251

@@ -279,7 +278,6 @@ static void Clamp_S32_D32_nofilter_trans_shaderproc(const void* sIn,
279278
int count) {
280279
const SkBitmapProcState& s = *static_cast<const SkBitmapProcState*>(sIn);
281280
SkASSERT(s.fInvMatrix.isTranslate());
282-
SkASSERT(s.fInvKy == 0);
283281
SkASSERT(count > 0 && colors != nullptr);
284282
SkASSERT(kNone_SkFilterQuality == s.fFilterQuality);
285283

@@ -342,7 +340,6 @@ static void Repeat_S32_D32_nofilter_trans_shaderproc(const void* sIn,
342340
int count) {
343341
const SkBitmapProcState& s = *static_cast<const SkBitmapProcState*>(sIn);
344342
SkASSERT(s.fInvMatrix.isTranslate());
345-
SkASSERT(s.fInvKy == 0);
346343
SkASSERT(count > 0 && colors != nullptr);
347344
SkASSERT(kNone_SkFilterQuality == s.fFilterQuality);
348345

@@ -396,7 +393,6 @@ static void S32_D32_constX_shaderproc(const void* sIn,
396393
int count) {
397394
const SkBitmapProcState& s = *static_cast<const SkBitmapProcState*>(sIn);
398395
SkASSERT(s.fInvMatrix.isScaleTranslate());
399-
SkASSERT(s.fInvKy == 0);
400396
SkASSERT(count > 0 && colors != nullptr);
401397
SkASSERT(1 == s.fPixmap.width());
402398

src/core/SkBitmapProcState.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ struct SkBitmapProcState : public SkBitmapProcInfo {
7676
SkFixed fFilterOneX;
7777
SkFixed fFilterOneY;
7878

79-
SkFixed fInvKy; // chooseProcs
8079
uint16_t fAlphaScale; // chooseProcs
8180

8281
/** Given the byte size of the index buffer to be passed to the matrix proc,

src/core/SkBitmapProcState_matrixProcs.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ template <unsigned (*tile)(SkFixed, int), unsigned (*extract_low_bits)(SkFixed,
140140
static void filter_scale(const SkBitmapProcState& s,
141141
uint32_t xy[], int count, int x, int y) {
142142
SkASSERT(s.fInvMatrix.isScaleTranslate());
143-
SkASSERT(s.fInvKy == 0);
144143

145144
auto pack = [](SkFixed f, unsigned max, SkFixed one) {
146145
unsigned i = tile(f, max);
@@ -482,7 +481,6 @@ static const SkBitmapProcState::MatrixProc MirrorX_MirrorY_Procs[] = {
482481
static void filter_scale_neon(const SkBitmapProcState& s,
483482
uint32_t xy[], int count, int x, int y) {
484483
SkASSERT(s.fInvMatrix.isScaleTranslate());
485-
SkASSERT(s.fInvKy == 0);
486484

487485
auto pack = [&](SkFixed f, unsigned max, SkFixed one) {
488486
unsigned i = tile(f, max);

0 commit comments

Comments
 (0)