/frameworks/base/tools/aapt/ |
H A D | XMLNode.cpp | 534 sp<AaptFile> rsc = new AaptFile(String8(), AaptGroupEntry(), String8()); local 535 status_t err = root->flatten(rsc, !keepComments, false); 539 err = outTree->setTo(rsc->getData(), rsc->getSize(), true);
|
/frameworks/rs/driver/ |
H A D | rsdAllocation.cpp | 92 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument 108 static void Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) { argument 119 rsdGLCheckError(rsc, "Upload2DTexture 1 "); 146 rsdGLCheckError(rsc, "Upload2DTexture"); 149 static void UploadToTexture(const Context *rsc, const Allocation *alloc) { argument 174 Upload2DTexture(rsc, alloc, isFirstUpload); 183 rsdGLCheckError(rsc, "UploadToTexture"); 186 static void AllocateRenderTarget(const Context *rsc, const Allocation *alloc) { argument 199 rsc->dumpDebug(); 206 rsdGLCheckError(rsc, "AllocateRenderTarge 209 UploadToBufferObject(const Context *rsc, const Allocation *alloc) argument 232 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument 281 rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) argument 337 rsdAllocationDestroy(const Context *rsc, Allocation *alloc) argument 367 rsdAllocationResize(const Context *rsc, const Allocation *alloc, const Type *newType, bool zeroNew) argument 391 rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) argument 422 rsdAllocationSyncAll(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src) argument 457 rsdAllocationMarkDirty(const Context *rsc, const Allocation *alloc) argument 462 rsdAllocationInitSurfaceTexture(const Context *rsc, const Allocation *alloc) argument 468 IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument 492 rsdAllocationSetSurfaceTexture(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument 545 rsdAllocationIoSend(const Context *rsc, Allocation *alloc) argument 568 rsdAllocationIoReceive(const Context *rsc, Allocation *alloc) argument 574 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument 592 rsdAllocationData2D(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, size_t sizeBytes) argument 619 rsdAllocationData3D(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) argument 626 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument 636 rsdAllocationRead2D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes) argument 658 rsdAllocationRead3D(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, void *data, uint32_t sizeBytes) argument 665 rsdAllocationLock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument 671 rsdAllocationUnlock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument 676 rsdAllocationData1D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstLod, uint32_t count, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcLod) argument 684 rsdAllocationData2D_alloc_script(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstLod, RsAllocationCubemapFace dstFace, uint32_t w, uint32_t h, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcLod, RsAllocationCubemapFace srcFace) argument 702 rsdAllocationData2D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstLod, RsAllocationCubemapFace dstFace, uint32_t w, uint32_t h, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcLod, RsAllocationCubemapFace srcFace) argument 719 rsdAllocationData3D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstZoff, uint32_t dstLod, RsAllocationCubemapFace dstFace, uint32_t w, uint32_t h, uint32_t d, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcZoff, uint32_t srcLod, RsAllocationCubemapFace srcFace) argument 729 rsdAllocationElementData1D(const Context *rsc, const Allocation *alloc, uint32_t x, const void *data, uint32_t cIdx, uint32_t sizeBytes) argument 749 rsdAllocationElementData2D(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, const void *data, uint32_t cIdx, uint32_t sizeBytes) argument 826 rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument [all...] |
H A D | rsdBcc.cpp | 50 bool rsdScriptInit(const Context *rsc, argument 57 //ALOGE("rsdScriptCreate %p %p %p %p %i %i %p", rsc, resName, cacheDir, bitcode, bitcodeSize, flags, lookupFunc); 58 //ALOGE("rsdScriptInit %p %p", rsc, script); 153 bool rsdInitIntrinsic(const Context *rsc, Script *s, RsScriptIntrinsicID iid, Element *e) { argument 162 drv->mIntrinsicData = rsdIntrinsic_Init(rsc, s, iid, &drv->mIntrinsicFuncs); 179 RsdHal * dc = (RsdHal *)mtls->rsc->mHal.drv; 225 RsdHal * dc = (RsdHal *)mtls->rsc->mHal.drv; 247 void rsdScriptInvokeForEachMtlsSetup(const Context *rsc, argument 268 rsc->setError(RS_ERROR_BAD_SCRIPT, "rsForEach called with null allocations"); 301 Context *mrsc = (Context *)rsc; 330 rsdScriptLaunchThreads(const Context *rsc, Script *s, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc, MTLaunchStruct *mtls) argument 389 rsdScriptInvokeForEach(const Context *rsc, Script *s, uint32_t slot, const Allocation * ain, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc) argument [all...] |
H A D | rsdBcc.h | 32 bool rsdInitIntrinsic(const android::renderscript::Context *rsc, 43 void rsdScriptInvokeForEach(const android::renderscript::Context *rsc, 143 android::renderscript::Context *rsc; member in struct:__anon1534 163 void rsdScriptLaunchThreads(const android::renderscript::Context *rsc, 173 void rsdScriptInvokeForEachMtlsSetup(const android::renderscript::Context *rsc,
|
H A D | rsdCore.cpp | 44 static void Shutdown(Context *rsc); 45 static void SetPriority(const Context *rsc, int32_t priority); 163 Context *rsc = static_cast<Context *>(vrsc); local 164 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 169 //ALOGV("RS helperThread starting %p idx=%i", rsc, idx); 184 int ret = syscall(241, rsc->mWorkers.mNativeThreadId[idx], 198 //ALOGV("RS helperThread exited %p idx=%i", rsc, idx); 202 void rsdLaunchThreads(Context *rsc, WorkerCallback_t cbk, void *data) { argument 203 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 218 Context *rsc local 292 SetPriority(const Context *rsc, int32_t priority) argument 302 Shutdown(Context *rsc) argument [all...] |
H A D | rsdFrameBuffer.cpp | 32 void setDepthAttachment(const Context *rsc, const FBOCache *fb) { argument 40 rsdAllocationSyncAll(rsc, fb->mHal.state.depthTarget, 47 void setColorAttachment(const Context *rsc, const FBOCache *fb) { argument 56 rsdAllocationSyncAll(rsc, fb->mHal.state.colorTargets[i], 64 bool rsdFrameBufferInit(const Context *rsc, const FBOCache *fb) { argument 71 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 77 void rsdFrameBufferSetActive(const Context *rsc, const FBOCache *fb) { argument 78 setDepthAttachment(rsc, fb); 79 setColorAttachment(rsc, fb); 90 fbo->setActive(rsc); 93 rsdFrameBufferDestroy(const Context *rsc, const FBOCache *fb) argument [all...] |
H A D | rsdFrameBufferObj.cpp | 49 void RsdFrameBufferObj::checkError(const Context *rsc) { argument 56 rsc->setError(RS_ERROR_BAD_VALUE, 60 rsc->setError(RS_ERROR_BAD_VALUE, 64 rsc->setError(RS_ERROR_BAD_VALUE, 68 rsc->setError(RS_ERROR_BAD_VALUE, 125 void RsdFrameBufferObj::setActive(const Context *rsc) { argument 126 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 130 rsdGLSetInternalSurface(rsc, mColorTargets[0]->wnd); 149 checkError(rsc); 152 rsdGLSetInternalSurface(rsc, d [all...] |
H A D | rsdGL.cpp | 154 void rsdGLShutdown(const Context *rsc) { argument 155 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 157 rsdGLSetSurface(rsc, 0, 0, NULL); 179 void getConfigData(const Context *rsc, argument 206 if (rsc->mUserSurfaceConfig.alphaMin > 0) { 208 configAttribsPtr[1] = rsc->mUserSurfaceConfig.alphaMin; 212 if (rsc->mUserSurfaceConfig.depthMin > 0) { 214 configAttribsPtr[1] = rsc->mUserSurfaceConfig.depthMin; 218 if (rsc->mDev->mForceSW) { 236 bool rsdGLInit(const Context *rsc) { [all...] |
H A D | rsdMesh.cpp | 30 bool rsdMeshInit(const Context *rsc, const Mesh *m) { argument 36 drv = new RsdMeshObj(rsc, m); 38 return drv->init(rsc); 41 void rsdMeshDraw(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t len) { argument 43 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 44 if (!dc->gl.shaderCache->setup(rsc)) { 49 drv->renderPrimitiveRange(rsc, primIndex, start, len); 53 void rsdMeshDestroy(const Context *rsc, const Mesh *m) { argument
|
H A D | rsdMeshObj.cpp | 32 RsdMeshObj::RsdMeshObj(const Context *rsc, const Mesh *rsMesh) { argument 71 bool RsdMeshObj::init(const Context *rsc) { argument 73 updateGLPrimitives(rsc); 128 void RsdMeshObj::renderPrimitiveRange(const Context *rsc, uint32_t primIndex, argument 131 rsc->setError(RS_ERROR_FATAL_DRIVER, "Invalid mesh or parameters"); 139 rsdAllocationSyncAll(rsc, alloc, RS_ALLOCATION_USAGE_SCRIPT); 159 va.setup(rsc); 165 rsdAllocationSyncAll(rsc, idxAlloc, RS_ALLOCATION_USAGE_SCRIPT); 181 rsdGLCheckError(rsc, "Mesh::renderPrimitiveRange"); 184 void RsdMeshObj::updateGLPrimitives(const Context *rsc) { argument [all...] |
H A D | rsdPath.cpp | 65 static void cleanup(const Context *rsc, const Path *m) { argument 72 bool rsdPathInitStatic(const Context *rsc, const Path *m, argument 75 cleanup(rsc, m); 83 bool rsdPathInitDynamic(const Context *rsc, const Path *m) { argument 88 void rsdPathDraw(const Context *rsc, const Path *m) { argument 94 drv->draw((Context *)rsc); 98 void rsdPathDestroy(const Context *rsc, const Path *m) { argument 99 cleanup(rsc, m); 135 void DrvPathStatic::draw(Context *rsc) { argument 143 if (!rsc [all...] |
H A D | rsdProgram.cpp | 36 bool rsdProgramVertexInit(const Context *rsc, const ProgramVertex *pv, argument 47 static void SyncProgramConstants(const Context *rsc, const Program *p) { argument 55 rsdAllocationSyncAll(rsc, a, RS_ALLOCATION_USAGE_SCRIPT); 60 void rsdProgramVertexSetActive(const Context *rsc, const ProgramVertex *pv) { argument 61 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 63 SyncProgramConstants(rsc, pv); 67 void rsdProgramVertexDestroy(const Context *rsc, const ProgramVertex *pv) { argument 68 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 73 if (rsc->props.mLogShaders) { 83 bool rsdProgramFragmentInit(const Context *rsc, cons argument 94 rsdProgramFragmentSetActive(const Context *rsc, const ProgramFragment *pf) argument 101 rsdProgramFragmentDestroy(const Context *rsc, const ProgramFragment *pf) argument [all...] |
H A D | rsdProgramRaster.cpp | 35 void rsdProgramRasterSetActive(const Context *rsc, const ProgramRaster *pr) { argument 49 rsc->setError(RS_ERROR_FATAL_DRIVER, "Invalid cull type");
|
H A D | rsdProgramStore.cpp | 40 bool rsdProgramStoreInit(const Context *rsc, const ProgramStore *ps) { argument 114 rsc->setError(RS_ERROR_FATAL_DRIVER, "Unknown blend src mode."); 144 rsc->setError(RS_ERROR_FATAL_DRIVER, "Unknown blend dst mode."); 156 void rsdProgramStoreSetActive(const Context *rsc, const ProgramStore *ps) { argument 171 if (rsc->mUserSurfaceConfig.depthMin > 0) { 185 if (rsc->mUserSurfaceConfig.stencilMin > 0) { 199 void rsdProgramStoreDestroy(const Context *rsc, const ProgramStore *ps) { argument
|
H A D | rsdSampler.cpp | 38 void rsdSamplerDestroy(const android::renderscript::Context *rsc, argument
|
H A D | rsdScriptGroup.cpp | 33 bool rsdScriptGroupInit(const android::renderscript::Context *rsc, argument 38 void rsdScriptGroupSetInput(const android::renderscript::Context *rsc, argument 44 void rsdScriptGroupSetOutput(const android::renderscript::Context *rsc, argument 50 void rsdScriptGroupExecute(const android::renderscript::Context *rsc, argument 111 RsdHal * dc = (RsdHal *)rsc->mHal.drv; 119 rsdScriptInvokeForEachMtlsSetup(rsc, ins[ct], outs[ct], NULL, 0, NULL, &mtls); 139 rsdScriptLaunchThreads(rsc, s, slot, ins[ct], outs[ct], NULL, 0, NULL, &mtls); 144 void rsdScriptGroupDestroy(const android::renderscript::Context *rsc, argument
|
H A D | rsdShader.cpp | 102 uint32_t RsdShader::getStateBasedShaderID(const Context *rsc) { argument 113 loadShader(rsc); 230 bool RsdShader::loadShader(const Context *rsc) { argument 238 if (rsc->props.mLogShaders) { 257 rsc->setError(RS_ERROR_FATAL_PROGRAM_LINK, buf); 267 if (rsc->props.mLogShaders) { 355 void RsdShader::setUniform(const Context *rsc, const Element *field, const float *fd, argument 384 void RsdShader::setupSampler(const Context *rsc, const Sampler *s, const Allocation *tex) { argument 385 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 453 rsdGLCheckError(rsc, "Sample 456 setupTextures(const Context *rsc, RsdShaderCache *sc) argument 515 setupUserConstants(const Context *rsc, RsdShaderCache *sc, bool isFragment) argument 563 setup(const android::renderscript::Context *rsc, RsdShaderCache *sc) argument [all...] |
H A D | rsdShaderCache.cpp | 41 void RsdShaderCache::updateUniformArrayData(const Context *rsc, RsdShader *prog, uint32_t linkedID, argument 56 if (rsc->props.mLogShaders) { 86 bool RsdShaderCache::setup(const Context *rsc) { argument 91 if (!link(rsc)) { 96 mFragment->setup(rsc, this); 100 mVertex->setup(rsc, this); 107 bool RsdShaderCache::link(const Context *rsc) { argument 112 uint32_t vID = vtx->getStateBasedShaderID(rsc); 113 uint32_t fID = frag->getStateBasedShaderID(rsc); 127 rsdGLCheckError(rsc, "RsdShaderCach [all...] |
/frameworks/rs/ |
H A D | rsAdapter.cpp | 24 Adapter1D::Adapter1D(Context *rsc) : ObjectBase(rsc) { argument 28 Adapter1D::Adapter1D(Context *rsc, Allocation *a) : ObjectBase(rsc) { argument 40 void Adapter1D::data(Context *rsc, uint32_t x, uint32_t count, const void *data, size_t sizeBytes) { argument 41 mAllocation->data(rsc, x, mY, mLOD, mFace, count, 1, data, sizeBytes); 44 void Adapter1D::serialize(Context *rsc, OStream *stream) const { argument 47 Adapter1D *Adapter1D::createFromStream(Context *rsc, IStream *stream) { argument 54 RsAdapter1D rsi_Adapter1DCreate(Context *rsc) { argument 55 Adapter1D *a = new Adapter1D(rsc); 60 rsi_Adapter1DBindAllocation(Context *rsc, RsAdapter1D va, RsAllocation valloc) argument 66 rsi_Adapter1DSetConstraint(Context *rsc, RsAdapter1D va, RsDimension dim, uint32_t value) argument 95 Adapter2D(Context *rsc) argument 99 Adapter2D(Context *rsc, Allocation *a) argument 111 data(Context *rsc, uint32_t x, uint32_t y, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument 117 serialize(Context *rsc, OStream *stream) const argument 120 createFromStream(Context *rsc, IStream *stream) argument 128 rsi_Adapter2DCreate(Context *rsc) argument 134 rsi_Adapter2DBindAllocation(Context *rsc, RsAdapter2D va, RsAllocation valloc) argument 140 rsi_Adapter2DSetConstraint(Context *rsc, RsAdapter2D va, RsDimension dim, uint32_t value) argument [all...] |
H A D | rsAllocation.cpp | 28 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, argument 30 : ObjectBase(rsc) { 41 Allocation * Allocation::createAllocation(Context *rsc, const Type *type, uint32_t usages, argument 43 Allocation *a = new Allocation(rsc, type, usages, mc, ptr); 45 if (!rsc->mHal.funcs.allocation.init(rsc, a, type->getElement()->getHasReferences())) { 46 rsc->setError(RS_ERROR_FATAL_DRIVER, "Allocation::Allocation, alloc failure"); 72 void Allocation::syncAll(Context *rsc, RsAllocationUsageType src) { argument 73 rsc->mHal.funcs.allocation.syncAll(rsc, thi 76 data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument 91 data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument 108 data(Context *rsc, 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, size_t sizeBytes) argument 113 read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes) argument 127 read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, void *data, size_t sizeBytes) argument 141 read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes) argument 146 elementData(Context *rsc, uint32_t x, const void *data, uint32_t cIdx, size_t sizeBytes) argument 174 elementData(Context *rsc, uint32_t x, uint32_t y, const void *data, uint32_t cIdx, size_t sizeBytes) argument 240 writePackedData(Context *rsc, const Type *type, uint8_t *dst, const uint8_t *src, bool dstPadded) argument 289 unpackVec3Allocation(Context *rsc, const void *data, size_t dataSize) argument 297 packVec3Allocation(Context *rsc, OStream *stream) const argument 312 serialize(Context *rsc, OStream *stream) const argument 338 createFromStream(Context *rsc, IStream *stream) argument 417 copyRange1D(Context *rsc, const Allocation *src, int32_t srcOff, int32_t destOff, int32_t len) argument 420 resize1D(Context *rsc, uint32_t dimX) argument 436 resize2D(Context *rsc, uint32_t dimX, uint32_t dimY) argument 440 getSurfaceTextureID(const Context *rsc) argument 446 setSurfaceTexture(const Context *rsc, SurfaceTexture *st) argument 458 setSurface(const Context *rsc, RsNativeWindow sur) argument 471 ioSend(const Context *rsc) argument 475 ioReceive(const Context *rsc) argument 486 rsi_AllocationSyncAll(Context *rsc, RsAllocation va, RsAllocationUsageType src) argument 492 rsi_AllocationGenerateMipmaps(Context *rsc, RsAllocation va) argument 497 rsi_AllocationCopyToBitmap(Context *rsc, RsAllocation va, void *data, size_t sizeBytes) argument 504 rsi_Allocation1DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes) argument 510 rsi_Allocation2DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t y, uint32_t lod, RsAllocationCubemapFace face, const void *data, size_t sizeBytes, size_t eoff) argument 516 rsi_Allocation1DElementData(Context *rsc, RsAllocation va, uint32_t x, uint32_t lod, const void *data, size_t sizeBytes, size_t eoff) argument 522 rsi_Allocation2DData(Context *rsc, RsAllocation va, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, uint32_t w, uint32_t h, const void *data, size_t sizeBytes) argument 528 rsi_AllocationRead(Context *rsc, RsAllocation va, void *data, size_t sizeBytes) argument 540 rsi_AllocationResize1D(Context *rsc, RsAllocation va, uint32_t dimX) argument 545 rsi_AllocationResize2D(Context *rsc, RsAllocation va, uint32_t dimX, uint32_t dimY) argument 550 rsi_AllocationCreateTyped(Context *rsc, RsType vtype, RsAllocationMipmapControl mips, uint32_t usages, uint32_t ptr) argument 561 rsi_AllocationCreateFromBitmap(Context *rsc, RsType vtype, RsAllocationMipmapControl mips, const void *data, size_t sizeBytes, uint32_t usages) argument 583 rsi_AllocationCubeCreateFromBitmap(Context *rsc, RsType vtype, RsAllocationMipmapControl mips, const void *data, size_t sizeBytes, uint32_t usages) argument 621 rsi_AllocationCopy2DRange(Context *rsc, RsAllocation dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstMip, uint32_t dstFace, uint32_t width, uint32_t height, RsAllocation srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcMip, uint32_t srcFace) argument 638 rsi_AllocationGetSurfaceTextureID(Context *rsc, RsAllocation valloc) argument 643 rsi_AllocationGetSurfaceTextureID2(Context *rsc, RsAllocation valloc, void *vst, size_t len) argument 648 rsi_AllocationSetSurface(Context *rsc, RsAllocation valloc, RsNativeWindow sur) argument 653 rsi_AllocationIoSend(Context *rsc, RsAllocation valloc) argument 658 rsi_AllocationIoReceive(Context *rsc, RsAllocation valloc) argument [all...] |
H A D | rsAnimation.cpp | 24 void Animation::serialize(Context *rsc, OStream *stream) const { argument 27 Animation *Animation::createFromStream(Context *rsc, IStream *stream) { argument 32 Animation::Animation(Context *rsc) : ObjectBase(rsc) 47 Animation * Animation::create(Context *rsc, 53 rsc->setError(RS_ERROR_BAD_VALUE, "Animations require more than 2 values."); 56 Animation *a = new Animation(rsc); 58 rsc->setError(RS_ERROR_OUT_OF_MEMORY); 68 rsc->setError(RS_ERROR_OUT_OF_MEMORY); 122 RsAnimation rsi_AnimationCreate(Context *rsc, argument [all...] |
H A D | rsContext.cpp | 209 Context *rsc = static_cast<Context *>(vrsc); local 211 rsc->mNativeThreadId = gettid(); 212 setpriority(PRIO_PROCESS, rsc->mNativeThreadId, ANDROID_PRIORITY_DISPLAY); 213 rsc->mThreadPriority = ANDROID_PRIORITY_DISPLAY; 215 rsc->props.mLogTimes = getProp("debug.rs.profile") != 0; 216 rsc->props.mLogScripts = getProp("debug.rs.script") != 0; 217 rsc->props.mLogObjects = getProp("debug.rs.object") != 0; 218 rsc->props.mLogShaders = getProp("debug.rs.shader") != 0; 219 rsc->props.mLogShadersAttr = getProp("debug.rs.shader.attributes") != 0; 220 rsc 396 Context *rsc = (Context *)ctx; local 430 Context * rsc = new Context(); local 440 Context * rsc = new Context(); local 681 rsi_ContextFinish(Context *rsc) argument 684 rsi_ContextBindRootScript(Context *rsc, RsScript vs) argument 689 rsi_ContextBindSampler(Context *rsc, uint32_t slot, RsSampler vs) argument 700 rsi_ContextBindProgramStore(Context *rsc, RsProgramStore vpfs) argument 705 rsi_ContextBindProgramFragment(Context *rsc, RsProgramFragment vpf) argument 710 rsi_ContextBindProgramRaster(Context *rsc, RsProgramRaster vpr) argument 715 rsi_ContextBindProgramVertex(Context *rsc, RsProgramVertex vpv) argument 720 rsi_ContextBindFont(Context *rsc, RsFont vfont) argument 725 rsi_AssignName(Context *rsc, RsObjectBase obj, const char *name, size_t name_length) argument 730 rsi_ObjDestroy(Context *rsc, void *optr) argument 736 rsi_ContextPause(Context *rsc) argument 740 rsi_ContextResume(Context *rsc) argument 744 rsi_ContextSetSurface(Context *rsc, uint32_t w, uint32_t h, RsNativeWindow sur) argument 748 rsi_ContextSetPriority(Context *rsc, int32_t p) argument 752 rsi_ContextDump(Context *rsc, int32_t bits) argument 756 rsi_ContextDestroyWorker(Context *rsc) argument 760 rsi_ContextDestroy(Context *rsc) argument 768 rsi_ContextPeekMessage(Context *rsc, size_t * receiveLen, size_t receiveLen_length, uint32_t * subID, size_t subID_length) argument 774 rsi_ContextGetMessage(Context *rsc, void * data, size_t data_length, size_t * receiveLen, size_t receiveLen_length, uint32_t * subID, size_t subID_length) argument 782 rsi_ContextInitToClient(Context *rsc) argument 786 rsi_ContextDeinitToClient(Context *rsc) argument 797 Context *rsc = Context::createContext(dev, NULL); local 809 Context *rsc = Context::createContext(dev, &sc); local [all...] |
H A D | rsDevice.cpp | 30 void Device::addContext(Context *rsc) { argument 31 mContexts.push(rsc); 34 void Device::removeContext(Context *rsc) { argument 36 if (mContexts[idx] == rsc) {
|
H A D | rsElement.cpp | 24 Element::Element(Context *rsc) : ObjectBase(rsc) { argument 95 void Element::serialize(Context *rsc, OStream *stream) const { argument 109 mFields[ct].e->serialize(rsc, stream); 113 Element *Element::createFromStream(Context *rsc, IStream *stream) { argument 129 return (Element *)Element::create(rsc, 149 subElems[ct] = Element::createFromStream(rsc, stream); 152 const Element *elem = Element::create(rsc, fieldCount, subElems, subElemNames, 222 ObjectBaseRef<const Element> Element::createRef(Context *rsc, RsDataType dt, RsDataKind dk, argument 227 for (uint32_t ct=0; ct < rsc 254 createRef(Context *rsc, size_t count, const Element **ein, const char **nin, const size_t * lengths, const uint32_t *asin) argument 362 create(Context *rsc) argument 384 rsi_ElementCreate(Context *rsc, RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) argument 393 rsi_ElementCreate2(Context *rsc, const RsElement * ein, size_t ein_length, const char ** names, size_t nameLengths_length, const size_t * nameLengths, const uint32_t * arraySizes, size_t arraySizes_length) argument [all...] |
H A D | rsElement.h | 64 ObjectBaseRef<const Element> create(Context *rsc); 108 virtual void serialize(Context *rsc, OStream *stream) const; 110 static Element *createFromStream(Context *rsc, IStream *stream); 112 static ObjectBaseRef<const Element> createRef(Context *rsc, 117 static ObjectBaseRef<const Element> createRef(Context *rsc, size_t count, 123 static const Element* create(Context *rsc, argument 128 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize); 132 static const Element* create(Context *rsc, size_t count, argument 137 ObjectBaseRef<const Element> elem = createRef(rsc, count, ein, nin, lengths, asin);
|