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/SkBitmapProcShader.cpp

Issue 1534243002: Revert of Fix UB function problems for shaders and mask. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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 | « include/core/SkShader.h ('k') | src/core/SkBitmapProcState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBitmapProcShader.cpp
diff --git a/src/core/SkBitmapProcShader.cpp b/src/core/SkBitmapProcShader.cpp
index 6c9410ee3288b9f98a1fa782b4d56a19576704c1..dd97380bbdb88eab9f9bef78ec38fe315733bbe3 100644
--- a/src/core/SkBitmapProcShader.cpp
+++ b/src/core/SkBitmapProcShader.cpp
@@ -174,7 +174,7 @@
int count) {
const SkBitmapProcState& state = *fState;
if (state.getShaderProc32()) {
- state.getShaderProc32()(&state, x, y, dstC, count);
+ state.getShaderProc32()(state, x, y, dstC, count);
return;
}
@@ -225,7 +225,7 @@
int count) {
const SkBitmapProcState& state = *fState;
if (state.getShaderProc16()) {
- state.getShaderProc16()(&state, x, y, dstC, count);
+ state.getShaderProc16()(state, x, y, dstC, count);
return;
}
« no previous file with comments | « include/core/SkShader.h ('k') | src/core/SkBitmapProcState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698