summaryrefslogtreecommitdiff
path: root/rs_hal.h
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2012-02-13 11:57:32 -0800
committerAlex Sakhartchouk <alexst@google.com>2012-02-14 16:00:22 -0800
commitc794cd56e46408e08862c42a022090e323684197 (patch)
tree5dddf253c46123ffc42b64223a61d4af3a6028e1 /rs_hal.h
parent26b8a1625fceed5a17b33a38542c3fd3b84bd9e4 (diff)
downloadrs-c794cd56e46408e08862c42a022090e323684197.tar.gz
Fixing uint32 size_t mismatches.
Change-Id: I5263158f5855472db6317a52c209fe4e273f3368
Diffstat (limited to 'rs_hal.h')
-rw-r--r--rs_hal.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/rs_hal.h b/rs_hal.h
index 1e222e16..7c9618a4 100644
--- a/rs_hal.h
+++ b/rs_hal.h
@@ -119,15 +119,15 @@ typedef struct {
void (*data1D)(const Context *rsc, const Allocation *alloc,
uint32_t xoff, uint32_t lod, uint32_t count,
- const void *data, uint32_t sizeBytes);
+ const void *data, size_t sizeBytes);
void (*data2D)(const Context *rsc, const Allocation *alloc,
uint32_t xoff, uint32_t yoff, uint32_t lod,
RsAllocationCubemapFace face, uint32_t w, uint32_t h,
- const void *data, uint32_t sizeBytes);
+ const void *data, size_t sizeBytes);
void (*data3D)(const Context *rsc, const Allocation *alloc,
uint32_t xoff, uint32_t yoff, uint32_t zoff,
uint32_t lod, RsAllocationCubemapFace face,
- uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes);
+ uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes);
// Allocation to allocation copies
void (*allocData1D)(const Context *rsc,
@@ -151,9 +151,9 @@ typedef struct {
uint32_t srcLod, RsAllocationCubemapFace srcFace);
void (*elementData1D)(const Context *rsc, const Allocation *alloc, uint32_t x,
- const void *data, uint32_t elementOff, uint32_t sizeBytes);
+ const void *data, uint32_t elementOff, size_t sizeBytes);
void (*elementData2D)(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y,
- const void *data, uint32_t elementOff, uint32_t sizeBytes);
+ const void *data, uint32_t elementOff, size_t sizeBytes);
} allocation;
@@ -172,14 +172,14 @@ typedef struct {
struct {
bool (*init)(const Context *rsc, const ProgramVertex *pv,
- const char* shader, uint32_t shaderLen);
+ const char* shader, size_t shaderLen);
void (*setActive)(const Context *rsc, const ProgramVertex *pv);
void (*destroy)(const Context *rsc, const ProgramVertex *pv);
} vertex;
struct {
bool (*init)(const Context *rsc, const ProgramFragment *pf,
- const char* shader, uint32_t shaderLen);
+ const char* shader, size_t shaderLen);
void (*setActive)(const Context *rsc, const ProgramFragment *pf);
void (*destroy)(const Context *rsc, const ProgramFragment *pf);
} fragment;