/frameworks/base/libs/hwui/ |
D | SkiaShader.cpp | 59 static inline void bindTexture(Caches* caches, Texture* texture, GLenum wrapS, GLenum wrapT) { in bindTexture() argument 60 caches->textureState().bindTexture(texture->id()); in bindTexture() 120 bool tryStoreGradient(Caches& caches, const SkShader& shader, const Matrix4 modelViewMatrix, in tryStoreGradient() argument 169 outData->gradientTexture = caches.gradientCache.get( in tryStoreGradient() 184 void applyGradient(Caches& caches, const SkiaShaderData::GradientShaderData& data) { in applyGradient() argument 186 caches.textureState().activateTexture(data.gradientSampler); in applyGradient() 187 bindTexture(&caches, data.gradientTexture, data.wrapST, data.wrapST); in applyGradient() 188 glUniform1i(caches.program().getUniform("gradientSampler"), data.gradientSampler); in applyGradient() 190 bindUniformColor(caches.program().getUniform("startColor"), data.startColor); in applyGradient() 191 bindUniformColor(caches.program().getUniform("endColor"), data.endColor); in applyGradient() [all …]
|
D | Readback.cpp | 39 Caches& caches = Caches::getInstance(); in copySurfaceInto() local 43 if (destWidth > caches.maxTextureSize in copySurfaceInto() 44 || destHeight > caches.maxTextureSize) { in copySurfaceInto() 46 destWidth, destHeight, caches.maxTextureSize); in copySurfaceInto() 89 caches.textureState().activateTexture(0); in copySurfaceInto() 90 caches.textureState().bindTexture(texture); in copySurfaceInto() 154 Texture sourceTexture(caches); in copySurfaceInto() 167 GlopBuilder(renderState, caches, &glop) in copySurfaceInto() 183 caches.textureState().deleteTexture(texture); in copySurfaceInto()
|
D | AssetAtlas.cpp | 40 Caches& caches = Caches::getInstance(); in init() local 41 mTexture = new Texture(caches); in init() 44 createEntries(caches, map, count); in init() 79 DelegateTexture(Caches& caches, Texture* delegate) in DelegateTexture() 80 : Texture(caches), mDelegate(delegate) { } in DelegateTexture() 96 void AssetAtlas::createEntries(Caches& caches, int64_t* map, int count) { in createEntries() argument 117 Texture* texture = new DelegateTexture(caches, mTexture); in createEntries()
|
D | Layer.cpp | 41 , caches(Caches::getInstance()) in Layer() 43 , texture(caches) in Layer() 109 const uint32_t maxTextureSize = caches.maxTextureSize; in resize() 122 caches.textureState().activateTexture(0); in resize() 152 caches.renderBufferCache.put(stencil); in removeFbo() 183 caches.textureState().bindTexture(renderTarget, texture.mId); in bindTexture() 203 if (caches.isInitialized()) { in clearTexture() 204 caches.textureState().unbindTexture(texture.mId); in clearTexture()
|
D | BakedOpDispatcher.cpp | 52 Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(bitmap); in onMergedBitmapOps() 79 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onMergedBitmapOps() 107 const Patch* opMesh = renderer.caches().patchCache.get( in onMergedPatchOps() 128 const Patch* opMesh = renderer.caches().patchCache.get( in onMergedPatchOps() 175 Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(firstOp.bitmap); in onMergedPatchOps() 185 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onMergedPatchOps() 201 FontRenderer& fontRenderer = renderer.caches().fontRenderer.getFontRenderer(); in renderTextShadow() 203 renderer.caches().textureState().activateTexture(0); in renderTextShadow() 210 renderer.caches().dropShadowCache.setFontRenderer(fontRenderer); in renderTextShadow() 211 ShadowTexture* texture = renderer.caches().dropShadowCache.get( in renderTextShadow() [all …]
|
D | LayerRenderer.cpp | 191 Caches& caches = Caches::getInstance(); in createRenderLayer() local 198 caches.textureState().activateTexture(0); in createRenderLayer() 199 Layer* layer = caches.layerCache.get(renderState, width, height); in createRenderLayer() 208 const uint32_t maxTextureSize = caches.maxTextureSize; in createRenderLayer() 355 Caches& caches = Caches::getInstance(); in copyLayer() local 357 && bitmap->width() <= caches.maxTextureSize in copyLayer() 358 && bitmap->height() <= caches.maxTextureSize) { in copyLayer() 411 caches.textureState().activateTexture(0); in copyLayer() 412 caches.textureState().bindTexture(texture); in copyLayer() 453 caches.textureState().deleteTexture(texture); in copyLayer()
|
D | PathCache.h | 64 PathTexture(Caches& caches, float left, float top, in PathTexture() 66 : Texture(caches) in PathTexture() 72 PathTexture(Caches& caches, int generation) in PathTexture() 73 : Texture(caches) { in PathTexture() 291 PathProcessor(Caches& caches);
|
D | BakedOpRenderer.h | 57 BakedOpRenderer(Caches& caches, RenderState& renderState, bool opaque, in BakedOpRenderer() argument 61 , mCaches(caches) in BakedOpRenderer() 67 Caches& caches() { return mCaches; } in caches() function
|
D | SkiaShader.h | 90 static void store(Caches& caches, const SkShader& shader, const Matrix4& modelViewMatrix, 93 static void apply(Caches& caches, const SkiaShaderData& data);
|
D | Dither.cpp | 27 Dither::Dither(Caches& caches) in Dither() argument 28 : mCaches(caches) in Dither()
|
D | Texture.h | 37 Texture(Caches& caches) in Texture() argument 39 , mCaches(caches) in Texture()
|
D | FontRenderer.cpp | 71 GlopBuilder(renderer->renderState(), renderer->caches(), &glop) in draw() 434 void checkTextureUpdateForCache(Caches& caches, std::vector<CacheTexture*>& cacheTextures, in checkTextureUpdateForCache() argument 441 caches.textureState().activateTexture(0); in checkTextureUpdateForCache() 442 caches.textureState().bindTexture(lastTextureId); in checkTextureUpdateForCache() 457 Caches& caches = Caches::getInstance(); in checkTextureUpdate() local 463 checkTextureUpdateForCache(caches, mACacheTextures, resetPixelStore, lastTextureId); in checkTextureUpdate() 464 checkTextureUpdateForCache(caches, mRGBACacheTextures, resetPixelStore, lastTextureId); in checkTextureUpdate() 467 caches.pixelBufferState().unbind(); in checkTextureUpdate()
|
D | TextDropShadowCache.h | 114 ShadowTexture(Caches& caches): Texture(caches) { in ShadowTexture()
|
D | Dither.h | 40 Dither(Caches& caches);
|
D | TextDropShadowCache.cpp | 163 Caches& caches = Caches::getInstance(); in get() local 165 texture = new ShadowTexture(caches); in get()
|
D | FrameBuilder.h | 65 const LightGeometry& lightGeometry, Caches& caches); 68 const LightGeometry& lightGeometry, Caches& caches);
|
D | TessellationCache.cpp | 139 TessellationProcessor(Caches& caches) in TessellationProcessor() argument 140 : TaskProcessor<VertexBuffer*>(&caches.tasks) {} in TessellationProcessor() 273 ShadowProcessor(Caches& caches) in ShadowProcessor() argument 274 : TaskProcessor<TessellationCache::vertexBuffer_pair_t>(&caches.tasks) {} in ShadowProcessor()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | LeakCheckTests.cpp | 43 Caches& caches = Caches::getInstance(); in RENDERTHREAD_TEST() local 48 BakedOpRenderer renderer(caches, renderState, true, sLightInfo); in RENDERTHREAD_TEST() 60 Caches& caches = Caches::getInstance(); in RENDERTHREAD_TEST() local 65 BakedOpRenderer renderer(caches, renderState, true, sLightInfo); in RENDERTHREAD_TEST()
|
/frameworks/base/libs/hwui/tests/microbench/ |
D | FrameBuilderBench.cpp | 79 Caches& caches = Caches::getInstance(); in BM_FrameBuilder_deferAndRender() local 83 sLightGeometry, caches); in BM_FrameBuilder_deferAndRender() 86 BakedOpRenderer renderer(caches, renderState, true, sLightInfo); in BM_FrameBuilder_deferAndRender() 137 Caches& caches = Caches::getInstance(); in BM_FrameBuilder_deferAndRender_scene() local 145 BakedOpRenderer renderer(caches, renderState, true, sLightInfo); in BM_FrameBuilder_deferAndRender_scene()
|
/frameworks/base/libs/hwui/renderthread/ |
D | CanvasContext.cpp | 360 auto& caches = Caches::getInstance(); in draw() local 361 FrameBuilder frameBuilder(dirty, frame.width(), frame.height(), mLightGeometry, caches); in draw() 368 BakedOpRenderer renderer(caches, mRenderThread.renderState(), in draw() 375 caches.clearGarbage(); in draw() 376 caches.pathCache.trim(); in draw() 377 caches.tessellationCache.trim(); in draw() 383 caches.dumpMemoryUsage(); in draw() 633 auto& caches = Caches::getInstance(); in buildLayer() local 634 FrameBuilder frameBuilder(mLayerUpdateQueue, mLightGeometry, caches); in buildLayer() 636 BakedOpRenderer renderer(caches, mRenderThread.renderState(), in buildLayer() [all …]
|
/frameworks/base/libs/hwui/renderstate/ |
D | TextureState.cpp | 72 void TextureState::constructTexture(Caches& caches) { in constructTexture() argument 74 mShadowLutTexture.reset(new Texture(caches)); in constructTexture()
|
D | OffscreenBufferPool.cpp | 36 OffscreenBuffer::OffscreenBuffer(RenderState& renderState, Caches& caches, in OffscreenBuffer() argument 42 , texture(caches) { in OffscreenBuffer() 46 caches.textureState().activateTexture(0); in OffscreenBuffer()
|
D | TextureState.h | 35 void constructTexture(Caches& caches);
|
/frameworks/data-binding/ |
D | .gitignore | 5 .caches
|
/frameworks/base/core/java/android/content/res/ |
D | ResourcesImpl.java | 533 final DrawableCache caches; in loadDrawable() local 538 caches = mColorDrawableCache; in loadDrawable() 542 caches = mDrawableCache; in loadDrawable() 550 final Drawable cachedDrawable = caches.getInstance(key, wrapper, theme); in loadDrawable() 589 cacheDrawable(value, isColorDrawable, caches, theme, canApplyTheme, key, dr); in loadDrawable() 612 private void cacheDrawable(TypedValue value, boolean isColorDrawable, DrawableCache caches, in cacheDrawable() argument 641 caches.put(key, theme, cs, usesTheme); in cacheDrawable()
|