/frameworks/base/tools/aapt/ |
H A D | XMLNode.cpp | 562 sp<AaptFile> rsc = new AaptFile(String8(), AaptGroupEntry(), String8()); local 563 status_t err = root->flatten(rsc, !keepComments, false); 567 err = outTree->setTo(rsc->getData(), rsc->getSize(), true);
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuCore.cpp | 65 RsdCpuReference * RsdCpuReference::create(Context *rsc, uint32_t version_major, argument 74 RsdCpuReferenceImpl *cpu = new RsdCpuReferenceImpl(rsc); 110 RsdCpuReferenceImpl::RsdCpuReferenceImpl(Context *rsc) { argument 111 mRSC = rsc; 148 int ret = syscall(241, rsc->mWorkers.mNativeThreadId[idx],
|
H A D | rsCpuCore.h | 94 RsdCpuReferenceImpl *rsc; member in struct:android::renderscript::__anon1484
|
H A D | rsCpuScript.cpp | 382 //ALOGE("rsdScriptCreate %p %p %p %p %i %i %p", rsc, resName, cacheDir, bitcode, bitcodeSize, flags, lookupFunc); 383 //ALOGE("rsdScriptInit %p %p", rsc, script); 882 mtls->rsc = mCtx; 1012 mtls->rsc = mCtx;
|
H A D | rsd_cpu.h | 63 Context *rsc; member in struct:android::renderscript::RsdCpuReference::CpuTls
|
/frameworks/rs/driver/ |
H A D | rsdAllocation.cpp | 104 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, argument 123 static void Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) { argument 134 rsdGLCheckError(rsc, "Upload2DTexture 1 "); 161 rsdGLCheckError(rsc, "Upload2DTexture"); 165 static void UploadToTexture(const Context *rsc, const Allocation *alloc) { argument 191 Upload2DTexture(rsc, alloc, isFirstUpload); 199 rsdGLCheckError(rsc, "UploadToTexture"); 203 static void AllocateRenderTarget(const Context *rsc, const Allocation *alloc) { argument 217 rsc->dumpDebug(); 224 rsdGLCheckError(rsc, "AllocateRenderTarge 228 UploadToBufferObject(const Context *rsc, const Allocation *alloc) argument 303 AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, const Type *type, uint8_t *ptr) argument 371 rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) argument 476 rsdAllocationDestroy(const Context *rsc, Allocation *alloc) argument 533 rsdAllocationResize(const Context *rsc, const Allocation *alloc, const Type *newType, bool zeroNew) argument 561 rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) argument 595 rsdAllocationSyncAll(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src) argument 640 rsdAllocationMarkDirty(const Context *rsc, const Allocation *alloc) argument 646 IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument 671 rsdAllocationSetSurface(const Context *rsc, Allocation *alloc, ANativeWindow *nw) argument 757 rsdAllocationIoSend(const Context *rsc, Allocation *alloc) argument 785 rsdAllocationIoReceive(const Context *rsc, Allocation *alloc) argument 795 rsdAllocationData1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, const void *data, size_t sizeBytes) argument 815 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, size_t stride) argument 875 rsdAllocationData3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes, size_t stride) argument 914 rsdAllocationRead1D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t lod, size_t count, void *data, size_t sizeBytes) argument 926 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, size_t stride) argument 955 rsdAllocationRead3D(const Context *rsc, const Allocation *alloc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, uint32_t w, uint32_t h, uint32_t d, void *data, size_t sizeBytes, size_t stride) argument 985 rsdAllocationLock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument 990 rsdAllocationUnlock1D(const android::renderscript::Context *rsc, const android::renderscript::Allocation *alloc) argument 995 rsdAllocationData1D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstLod, size_t count, const android::renderscript::Allocation *srcAlloc, uint32_t srcXoff, uint32_t srcLod) argument 1003 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 1021 rsdAllocationData3D_alloc_script(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstZoff, uint32_t dstLod, 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) argument 1042 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 1059 rsdAllocationData3D_alloc(const android::renderscript::Context *rsc, const android::renderscript::Allocation *dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstZoff, uint32_t dstLod, 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) argument 1077 rsdAllocationElementData1D(const Context *rsc, const Allocation *alloc, uint32_t x, const void *data, uint32_t cIdx, size_t sizeBytes) argument 1097 rsdAllocationElementData2D(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y, const void *data, uint32_t cIdx, size_t sizeBytes) argument 1171 rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) argument 1193 rsdAllocationGrallocBits(const android::renderscript::Context *rsc, android::renderscript::Allocation *alloc) argument 1199 rsdAllocationUpdateCachedObject(const Context *rsc, const Allocation *alloc, rs_allocation *obj) argument [all...] |
H A D | rsdAllocation.h | 79 uint32_t rsdAllocationGrallocBits(const android::renderscript::Context *rsc, 81 bool rsdAllocationInit(const android::renderscript::Context *rsc, 84 void rsdAllocationDestroy(const android::renderscript::Context *rsc, 87 void rsdAllocationResize(const android::renderscript::Context *rsc, 90 void rsdAllocationSyncAll(const android::renderscript::Context *rsc, 93 void rsdAllocationMarkDirty(const android::renderscript::Context *rsc, 95 void rsdAllocationSetSurface(const android::renderscript::Context *rsc, 97 void rsdAllocationIoSend(const android::renderscript::Context *rsc, 99 void rsdAllocationIoReceive(const android::renderscript::Context *rsc, 102 void rsdAllocationData1D(const android::renderscript::Context *rsc, [all...] |
H A D | rsdBcc.cpp | 38 bool rsdScriptInit(const Context *rsc, argument 45 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 56 bool rsdInitIntrinsic(const Context *rsc, Script *s, RsScriptIntrinsicID iid, Element *e) { argument 57 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 67 void rsdScriptInvokeForEach(const Context *rsc, argument 80 void rsdScriptInvokeForEachMulti(const Context *rsc, argument 163 void rsdScriptUpdateCachedObject(const Context *rsc, argument
|
H A D | rsdBcc.h | 26 bool rsdInitIntrinsic(const android::renderscript::Context *rsc, 37 void rsdScriptInvokeForEach(const android::renderscript::Context *rsc, 46 void rsdScriptInvokeForEachMulti(const android::renderscript::Context *rsc, 101 void rsdScriptUpdateCachedObject(const android::renderscript::Context *rsc,
|
H A D | rsdCore.cpp | 50 static void Shutdown(Context *rsc); 51 static void SetPriority(const Context *rsc, int32_t priority); 198 Context *rsc = (Context*) c; local 199 rsc->mHal.funcs = FunctionTable; 206 rsc->mHal.drv = dc; 208 dc->mCpuRef = RsdCpuReference::create(rsc, version_major, version_minor, 212 rsc->mHal.drv = NULL; 229 rsc->mHal.funcs.allocRuntimeMem, 230 rsc->mHal.funcs.freeRuntimeMem); 238 void SetPriority(const Context *rsc, int32_ argument 250 Shutdown(Context *rsc) argument [all...] |
H A D | rsdCore.h | 54 void rsdLaunchThreads(android::renderscript::Context *rsc, WorkerCallback_t cbk, void *data);
|
H A D | rsdElement.cpp | 29 void rsdElementDestroy(const Context *rsc, const Element *e) { argument 32 void rsdElementUpdateCachedObject(const Context *rsc, argument
|
H A D | rsdElement.h | 23 bool rsdElementInit(const android::renderscript::Context *rsc, 26 void rsdElementDestroy(const android::renderscript::Context *rsc, 29 void rsdElementUpdateCachedObject(const android::renderscript::Context *rsc,
|
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 | rsdFrameBuffer.h | 22 bool rsdFrameBufferInit(const android::renderscript::Context *rsc, 24 void rsdFrameBufferSetActive(const android::renderscript::Context *rsc, 26 void rsdFrameBufferDestroy(const android::renderscript::Context *rsc,
|
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 | rsdFrameBufferObj.h | 29 void setActive(const android::renderscript::Context *rsc); 54 void checkError(const android::renderscript::Context *rsc);
|
H A D | rsdGL.cpp | 152 void rsdGLShutdown(const Context *rsc) { argument 153 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 155 rsdGLSetSurface(rsc, 0, 0, NULL); 177 void getConfigData(const Context *rsc, argument 204 if (rsc->mUserSurfaceConfig.alphaMin > 0) { 206 configAttribsPtr[1] = rsc->mUserSurfaceConfig.alphaMin; 210 if (rsc->mUserSurfaceConfig.depthMin > 0) { 212 configAttribsPtr[1] = rsc->mUserSurfaceConfig.depthMin; 216 if (rsc->mDev->mForceSW) { 234 bool rsdGLInit(const Context *rsc) { [all...] |
H A D | rsdGL.h | 23 #define RSD_CALL_GL(x, ...) rsc->setWatchdogGL(#x, __LINE__, __FILE__); x(__VA_ARGS__); rsc->setWatchdogGL(NULL, 0, NULL) 77 bool rsdGLSetInternalSurface(const android::renderscript::Context *rsc, 79 bool rsdGLInit(const android::renderscript::Context *rsc); 80 void rsdGLShutdown(const android::renderscript::Context *rsc); 81 bool rsdGLSetSurface(const android::renderscript::Context *rsc, 83 void rsdGLSwap(const android::renderscript::Context *rsc); 84 void rsdGLCheckError(const android::renderscript::Context *rsc, 86 void rsdGLSetPriority(const android::renderscript::Context *rsc, 88 void rsdGLClearColor(const android::renderscript::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 | rsdMesh.h | 23 bool rsdMeshInit(const android::renderscript::Context *rsc, 25 void rsdMeshDraw(const android::renderscript::Context *rsc, 28 void rsdMeshDestroy(const android::renderscript::Context *rsc,
|
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 | rsdMeshObj.h | 43 bool init(const android::renderscript::Context *rsc); 49 void updateGLPrimitives(const android::renderscript::Context *rsc);
|
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 | rsdPath.h | 23 bool rsdPathInitStatic(const android::renderscript::Context *rsc, 27 bool rsdPathInitDynamic(const android::renderscript::Context *rsc, 29 void rsdPathDraw(const android::renderscript::Context *rsc, 31 void rsdPathDestroy(const android::renderscript::Context *rsc,
|