@@ -119,15 +119,15 @@ typedef struct {
119119
120120 void (*data1D)(const Context *rsc, const Allocation *alloc,
121121 uint32_t xoff, uint32_t lod, uint32_t count,
122- const void *data, uint32_t sizeBytes);
122+ const void *data, size_t sizeBytes);
123123 void (*data2D)(const Context *rsc, const Allocation *alloc,
124124 uint32_t xoff, uint32_t yoff, uint32_t lod,
125125 RsAllocationCubemapFace face, uint32_t w, uint32_t h,
126- const void *data, uint32_t sizeBytes);
126+ const void *data, size_t sizeBytes);
127127 void (*data3D)(const Context *rsc, const Allocation *alloc,
128128 uint32_t xoff, uint32_t yoff, uint32_t zoff,
129129 uint32_t lod, RsAllocationCubemapFace face,
130- uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes);
130+ uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes);
131131
132132 // Allocation to allocation copies
133133 void (*allocData1D)(const Context *rsc,
@@ -151,9 +151,9 @@ typedef struct {
151151 uint32_t srcLod, RsAllocationCubemapFace srcFace);
152152
153153 void (*elementData1D)(const Context *rsc, const Allocation *alloc, uint32_t x,
154- const void *data, uint32_t elementOff, uint32_t sizeBytes);
154+ const void *data, uint32_t elementOff, size_t sizeBytes);
155155 void (*elementData2D)(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y,
156- const void *data, uint32_t elementOff, uint32_t sizeBytes);
156+ const void *data, uint32_t elementOff, size_t sizeBytes);
157157
158158
159159 } allocation;
@@ -172,14 +172,14 @@ typedef struct {
172172
173173 struct {
174174 bool (*init)(const Context *rsc, const ProgramVertex *pv,
175- const char * shader, uint32_t shaderLen);
175+ const char * shader, size_t shaderLen);
176176 void (*setActive)(const Context *rsc, const ProgramVertex *pv);
177177 void (*destroy)(const Context *rsc, const ProgramVertex *pv);
178178 } vertex;
179179
180180 struct {
181181 bool (*init)(const Context *rsc, const ProgramFragment *pf,
182- const char * shader, uint32_t shaderLen);
182+ const char * shader, size_t shaderLen);
183183 void (*setActive)(const Context *rsc, const ProgramFragment *pf);
184184 void (*destroy)(const Context *rsc, const ProgramFragment *pf);
185185 } fragment;
0 commit comments