Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: src/core/SkBitmapProcState_matrixProcs.cpp

Issue 1666433003: Rename SkBitmapProcStateAutoMapper methods (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: neon build fix Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkBitmapProcState_matrix.h ('k') | src/core/SkBitmapProcState_matrix_template.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapProcState_matrixProcs.cpp
diff --git a/src/core/SkBitmapProcState_matrixProcs.cpp b/src/core/SkBitmapProcState_matrixProcs.cpp
index d7457ec53bd0a81191fe5683c191cbdf4062ac33..be0e371f7fb7db9c62a90c8237db86292b9d6e57 100644
--- a/src/core/SkBitmapProcState_matrixProcs.cpp
+++ b/src/core/SkBitmapProcState_matrixProcs.cpp
@@ -329,10 +329,10 @@ static void fill_sequential(uint16_t xptr[], int start, int count) {
static int nofilter_trans_preamble(const SkBitmapProcState& s, uint32_t** xy,
int x, int y) {
const SkBitmapProcStateAutoMapper mapper(s, x, y);
- **xy = s.fIntTileProcY(SkFractionalIntToInt(mapper.y()), s.fPixmap.height());
+ **xy = s.fIntTileProcY(mapper.intY(), s.fPixmap.height());
*xy += 1; // bump the ptr
// return our starting X position
- return SkFractionalIntToInt(mapper.x());
+ return mapper.intX();
}
static void clampx_nofilter_trans(const SkBitmapProcState& s,
« no previous file with comments | « src/core/SkBitmapProcState_matrix.h ('k') | src/core/SkBitmapProcState_matrix_template.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698