/frameworks/base/libs/rs/ |
rsSimpleMesh.cpp | 25 SimpleMesh::SimpleMesh(Context *rsc) : ObjectBase(rsc) 37 void SimpleMesh::render(Context *rsc) const 40 renderRange(rsc, 0, mPrimitiveType->getDimX()); 45 renderRange(rsc, 0, mIndexType->getDimX()); 49 renderRange(rsc, 0, mVertexTypes[0]->getDimX()); 52 void SimpleMesh::renderRange(Context *rsc, uint32_t start, uint32_t len) const 58 rsc->checkError("SimpleMesh::renderRange 1"); 60 if (rsc->checkVersion2_0()) { 62 mVertexBuffers[ct]->uploadCheck(rsc); [all...] |
rsLight.cpp | 25 Light::Light(Context *rsc, bool isLocal, bool isMono) : ObjectBase(rsc) 92 void rsi_LightBegin(Context *rsc) 94 rsc->mStateLight.clear(); 97 void rsi_LightSetLocal(Context *rsc, bool isLocal) 99 rsc->mStateLight.mIsLocal = isLocal; 102 void rsi_LightSetMonochromatic(Context *rsc, bool isMono) 104 rsc->mStateLight.mIsMono = isMono; 107 RsLight rsi_LightCreate(Context *rsc) 109 Light *l = new Light(rsc, rsc->mStateLight.mIsLocal [all...] |
rsProgramRaster.cpp | 27 ProgramRaster::ProgramRaster(Context *rsc, 31 Program(rsc) 57 void ProgramRaster::setupGL(const Context *rsc, ProgramRasterState *state) 78 if (rsc->checkVersion1_1()) { 87 void ProgramRaster::setupGL2(const Context *rsc, ProgramRasterState *state) 105 void ProgramRasterState::init(Context *rsc, int32_t w, int32_t h) 107 ProgramRaster *pr = new ProgramRaster(rsc, false, false, false); 111 void ProgramRasterState::deinit(Context *rsc) 121 RsProgramRaster rsi_ProgramRasterCreate(Context * rsc, RsElement in, RsElement out, 126 ProgramRaster *pr = new ProgramRaster(rsc, [all...] |
rsScript.cpp | 22 Script::Script(Context *rsc) : ObjectBase(rsc) 44 void rsi_ScriptBindAllocation(Context * rsc, RsScript vs, RsAllocation va, uint32_t slot) 50 void rsi_ScriptSetClearColor(Context * rsc, RsScript vs, float r, float g, float b, float a) 59 void rsi_ScriptSetTimeZone(Context * rsc, RsScript vs, const char * timeZone, uint32_t length) 65 void rsi_ScriptSetClearDepth(Context * rsc, RsScript vs, float v) 71 void rsi_ScriptSetClearStencil(Context * rsc, RsScript vs, uint32_t v) 77 void rsi_ScriptSetType(Context * rsc, RsType vt, uint32_t slot, bool writable, const char *name) 79 ScriptCState *ss = &rsc->mScriptC; 90 void rsi_ScriptSetInvoke(Context *rsc, const char *name, uint32_t slot [all...] |
rsMesh.cpp | 25 Mesh::Mesh(Context *rsc) : ObjectBase(rsc)
|
rsSampler.cpp | 28 Sampler::Sampler(Context *rsc) : ObjectBase(rsc) 36 Sampler::Sampler(Context *rsc, 41 RsSamplerValue wrapR) : ObjectBase(rsc) 56 void Sampler::setupGL(const Context *rsc, bool npot) 68 if (!rsc->ext_OES_texture_npot() && npot) { 82 rsc->checkError("ProgramFragment::setupGL2 tex env"); 103 s->setupGL(rsc); 116 void rsi_SamplerBegin(Context *rsc) 118 SamplerState * ss = &rsc->mStateSampler [all...] |
rsProgramFragment.h | 32 ProgramFragment(Context *rsc, const char * shaderText, 41 virtual void loadShader(Context *rsc); 42 virtual void init(Context *rsc); 60 void init(Context *rsc, int32_t w, int32_t h); 61 void deinit(Context *rsc);
|
rsProgramFragment.cpp | 29 ProgramFragment::ProgramFragment(Context *rsc, const uint32_t * params, 31 Program(rsc) 50 init(rsc); 53 ProgramFragment::ProgramFragment(Context *rsc, const char * shaderText, 56 Program(rsc, shaderText, shaderLength, params, paramLength) 61 init(rsc); 70 void ProgramFragment::setupGL(const Context *rsc, ProgramFragmentState *state) 85 if (rsc->checkVersion1_1()) { 93 mTextures[ct]->uploadCheck(rsc); 112 mSamplers[ct]->setupGL(rsc, mTextures[ct]->getType()->getIsNp2()) [all...] |
rsObjectBase.cpp | 23 ObjectBase::ObjectBase(Context *rsc) 33 setContext(rsc); 56 void ObjectBase::setContext(Context *rsc) 61 mRSC = rsc; 62 if (rsc) { 134 //LOGV("calling add rsc %p", mRSC); 144 //LOGV("calling remove rsc %p", mRSC); 163 void ObjectBase::zeroAllUserRef(Context *rsc) 165 if (rsc->props.mLogObjects) { 170 const ObjectBase * o = rsc->mObjHead [all...] |
rsContext.cpp | 279 Context *rsc = static_cast<Context *>(vrsc); local 280 rsc->mNativeThreadId = gettid(); 282 setpriority(PRIO_PROCESS, rsc->mNativeThreadId, ANDROID_PRIORITY_DISPLAY); 283 rsc->mThreadPriority = ANDROID_PRIORITY_DISPLAY; 285 rsc->props.mLogTimes = getProp("debug.rs.profile"); 286 rsc->props.mLogScripts = getProp("debug.rs.script"); 287 rsc->props.mLogObjects = getProp("debug.rs.object"); 288 rsc->props.mLogShaders = getProp("debug.rs.shader"); 295 tlsStruct->mContext = rsc; 297 int status = pthread_setspecific(rsc->gThreadTLSKey, tlsStruct) 923 Context *rsc = new Context(dev, false, false); local 931 Context *rsc = new Context(dev, true, useDepth); local 937 Context * rsc = static_cast<Context *>(vrsc); local 943 Context * rsc = static_cast<Context *>(vrsc); local 949 Context * rsc = static_cast<Context *>(vrsc); local 955 Context * rsc = static_cast<Context *>(vrsc); local 961 Context * rsc = static_cast<Context *>(vrsc); local [all...] |
rsProgramRaster.h | 31 ProgramRaster(Context *rsc, 59 void init(Context *rsc, int32_t w, int32_t h); 60 void deinit(Context *rsc);
|
rsDevice.cpp | 34 void Device::addContext(Context *rsc) 36 mContexts.add(rsc); 39 void Device::removeContext(Context *rsc) 42 if (mContexts[idx] == rsc) {
|
rsAllocation.h | 35 Allocation(Context *rsc, const Type *); 36 Allocation(Context *rsc, const Type *, void *bmp, void *callbackData, RsBitmapCallback_t callback); 50 void deferedUploadToTexture(const Context *rsc, bool genMipmap, uint32_t lodOffset); 51 void uploadToTexture(const Context *rsc); 54 void deferedUploadToBufferObject(const Context *rsc); 55 void uploadToBufferObject(const Context *rsc); 76 virtual void uploadCheck(const Context *rsc); 120 void init(Context *rsc, const Type *);
|
rsProgramFragmentStore.cpp | 27 ProgramFragmentStore::ProgramFragmentStore(Context *rsc) : 28 Program(rsc) 53 void ProgramFragmentStore::setupGL(const Context *rsc, ProgramFragmentStoreState *state) 88 void ProgramFragmentStore::setupGL2(const Context *rsc, ProgramFragmentStoreState *state) 250 void ProgramFragmentStoreState::init(Context *rsc, int32_t w, int32_t h) 252 ProgramFragmentStore *pfs = new ProgramFragmentStore(rsc); 256 void ProgramFragmentStoreState::deinit(Context *rsc) 266 void rsi_ProgramFragmentStoreBegin(Context * rsc, RsElement in, RsElement out) 268 delete rsc->mStateFragmentStore.mPFS; 269 rsc->mStateFragmentStore.mPFS = new ProgramFragmentStore(rsc) [all...] |
rsScriptC.cpp | 32 Context * rsc = tls->mContext; \ 36 ScriptC::ScriptC(Context *rsc) : Script(rsc) 63 uint32_t ScriptC::run(Context *rsc, uint32_t launchIndex) 66 rsc->setError(RS_ERROR_BAD_SCRIPT, "Attempted to run bad script"); 75 rsc->setFragmentStore(mEnviroment.mFragmentStore.get()); 78 rsc->setFragment(mEnviroment.mFragment.get()); 81 rsc->setVertex(mEnviroment.mVertex.get()); 84 rsc->setRaster(mEnviroment.mRaster.get()); 138 void ScriptCState::runCompiler(Context *rsc, ScriptC *s [all...] |
rsAdapter.cpp | 24 Adapter1D::Adapter1D(Context *rsc) : ObjectBase(rsc) 31 Adapter1D::Adapter1D(Context *rsc, Allocation *a) : ObjectBase(rsc) 76 RsAdapter1D rsi_Adapter1DCreate(Context *rsc) 78 Adapter1D *a = new Adapter1D(rsc); 83 void rsi_Adapter1DBindAllocation(Context *rsc, RsAdapter1D va, RsAllocation valloc) 90 void rsi_Adapter1DSetConstraint(Context *rsc, RsAdapter1D va, RsDimension dim, uint32_t value) 115 void rsi_Adapter1DSubData(Context *rsc, RsAdapter1D va, uint32_t xoff, uint32_t count, const void *data) 121 void rsi_Adapter1DData(Context *rsc, RsAdapter1D va, const void *data [all...] |
rsProgramVertex.h | 38 virtual void setupGL(const Context *rsc, ProgramVertexState *state); 39 virtual void setupGL2(const Context *rsc, ProgramVertexState *state, ShaderCache *sc); 74 void init(Context *rsc, int32_t w, int32_t h); 75 void deinit(Context *rsc); 76 void updateSize(Context *rsc, int32_t w, int32_t h);
|
rsFileA3D.h | 50 bool load(Context *rsc, FILE *f); 98 bool process(Context *rsc); 99 bool processIndex(Context *rsc, A3DIndexEntry *); 100 void processChunk_Mesh(Context *rsc, IO *io, A3DIndexEntry *ie); 101 void processChunk_Primitive(Context *rsc, IO *io, A3DIndexEntry *ie); 102 void processChunk_Verticies(Context *rsc, IO *io, A3DIndexEntry *ie); 103 void processChunk_Element(Context *rsc, IO *io, A3DIndexEntry *ie); 104 void processChunk_ElementSource(Context *rsc, IO *io, A3DIndexEntry *ie);
|
rsAllocation.cpp | 26 Allocation::Allocation(Context *rsc, const Type *type) : ObjectBase(rsc) 28 init(rsc, type); 36 Allocation::Allocation(Context *rsc, const Type *type, void *bmp, 38 : ObjectBase(rsc) 40 init(rsc, type); 47 void Allocation::init(Context *rsc, const Type *type) 118 void Allocation::deferedUploadToTexture(const Context *rsc, bool genMipmap, uint32_t lodOffset) 127 void Allocation::uploadToTexture(const Context *rsc) 132 if (!rsc->checkDriver()) [all...] |
rsProgramVertex.cpp | 29 ProgramVertex::ProgramVertex(Context *rsc, bool texMat) : 30 Program(rsc) 36 init(rsc); 39 ProgramVertex::ProgramVertex(Context *rsc, const char * shaderText, 42 Program(rsc, shaderText, shaderLength, params, paramLength) 49 init(rsc); 65 void ProgramVertex::setupGL(const Context *rsc, ProgramVertexState *state) 111 void ProgramVertex::loadShader(Context *rsc) { 112 Program::loadShader(rsc, GL_VERTEX_SHADER); 200 void ProgramVertex::setupGL2(const Context *rsc, ProgramVertexState *state, ShaderCache *sc [all...] |
rsElement.cpp | 25 Element::Element(Context *rsc) : ObjectBase(rsc) 87 const Element * Element::create(Context *rsc, RsDataType dt, RsDataKind dk, 91 for (uint32_t ct=0; ct < rsc->mStateElement.mElements.size(); ct++) { 92 const Element *ee = rsc->mStateElement.mElements[ct]; 104 Element *e = new Element(rsc); 107 rsc->mStateElement.mElements.push(e); 111 const Element * Element::create(Context *rsc, size_t count, const Element **ein, 115 for (uint32_t ct=0; ct < rsc->mStateElement.mElements.size(); ct++) { 116 const Element *ee = rsc->mStateElement.mElements[ct] [all...] |
rsHandcode.h | 4 static inline void rsHCAPI_AllocationData (RsContext rsc, RsAllocation va, const void * data, uint32_t sizeBytes) 6 ThreadIO *io = &((Context *)rsc)->mIO; 25 static inline void rsHCAPI_Allocation1DSubData (RsContext rsc, RsAllocation va, uint32_t xoff, uint32_t count, const void * data, uint32_t sizeBytes) 27 ThreadIO *io = &((Context *)rsc)->mIO;
|
rsFileA3D.cpp | 40 bool FileA3D::load(Context *rsc, FILE *f) 103 return process(rsc); 106 bool FileA3D::processIndex(Context *rsc, A3DIndexEntry *ie) 115 processChunk_Element(rsc, &io, ie); 118 processChunk_ElementSource(rsc, &io, ie); 121 processChunk_Verticies(rsc, &io, ie); 124 processChunk_Mesh(rsc, &io, ie); 127 processChunk_Primitive(rsc, &io, ie); 136 bool FileA3D::process(Context *rsc) 207 processIndex(rsc, &mIndex.editItemAt(ct)) [all...] |
rsShaderCache.cpp | 44 bool ShaderCache::lookup(Context *rsc, ProgramVertex *vtx, ProgramFragment *frag) 47 vtx->loadShader(rsc); 50 frag->loadShader(rsc); 62 rsc->checkError("ShaderCache::lookup (hit)"); 126 rsc->setError(RS_ERROR_BAD_SHADER, "Error linking GL Programs"); 132 if (rsc->props.mLogShaders) { 139 if (rsc->props.mLogShaders) { 145 if (rsc->props.mLogShaders) { 155 rsc->checkError("ShaderCache::lookup (miss)");
|
/external/iproute2/tc/ |
q_hfsc.c | 145 struct tc_service_curve rsc, fsc, usc; local 149 memset(&rsc, 0, sizeof(rsc)); 157 if (hfsc_get_sc(&argc, &argv, &rsc) < 0) { 171 if (hfsc_get_sc(&argc, &argv, &rsc) < 0) { 175 memcpy(&fsc, &rsc, sizeof(fsc)); 212 addattr_l(n, 1024, TCA_HFSC_RSC, &rsc, sizeof(rsc)); 237 struct tc_service_curve *rsc = NULL, *fsc = NULL, *usc = NULL; local 245 if (RTA_PAYLOAD(tb[TCA_HFSC_RSC]) < sizeof(*rsc)) [all...] |