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

Unified Diff: src/core/SkBitmapProcState.h

Issue 1530743002: Fix UB function problems for shaders and mask. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix externals 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
Index: src/core/SkBitmapProcState.h
diff --git a/src/core/SkBitmapProcState.h b/src/core/SkBitmapProcState.h
index e6e7a3f393661ff729a2abecde11d62950b5e6a6..4d7e7f32dc69602e8a7b6c078f1e7dd7f5c52863 100644
--- a/src/core/SkBitmapProcState.h
+++ b/src/core/SkBitmapProcState.h
@@ -43,11 +43,9 @@ struct SkBitmapProcState {
SkBitmapProcState(const SkBitmap&, SkShader::TileMode tmx, SkShader::TileMode tmy);
~SkBitmapProcState();
- typedef void (*ShaderProc32)(const SkBitmapProcState&, int x, int y,
- SkPMColor[], int count);
+ typedef void (*ShaderProc32)(const void* ctx, int x, int y, SkPMColor[], int count);
- typedef void (*ShaderProc16)(const SkBitmapProcState&, int x, int y,
- uint16_t[], int count);
+ typedef void (*ShaderProc16)(const void* ctx, int x, int y, uint16_t[], int count);
typedef void (*MatrixProc)(const SkBitmapProcState&,
uint32_t bitmapXY[],

Powered by Google App Engine
This is Rietveld 408576698