Home
last modified time | relevance | path

Searched refs:Caches (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/libs/hwui/
DCaches.cpp33 Caches* Caches::sInstance = nullptr;
49 Caches::Caches(RenderState& renderState) in Caches() function in android::uirenderer::Caches
63 bool Caches::init() { in init()
82 void Caches::initExtensions() { in initExtensions()
95 void Caches::initConstraints() { in initConstraints()
99 void Caches::initStaticProperties() { in initStaticProperties()
105 void Caches::terminate() { in terminate()
125 void Caches::setProgram(const ProgramDescription& description) { in setProgram()
129 void Caches::setProgram(Program* program) { in setProgram()
145 uint32_t Caches::getOverdrawColor(uint32_t amount) const { in getOverdrawColor()
[all …]
DCaches.h63 class ANDROID_API Caches {
65 static Caches& createInstance(RenderState& renderState) { in createInstance()
67 sInstance = new Caches(renderState); in createInstance()
71 static Caches& getInstance() { in getInstance()
80 Caches(RenderState& renderState);
81 static Caches* sInstance;
DDither.h25 class Caches; variable
40 Dither(Caches& caches);
48 Caches& mCaches;
DSkiaShader.cpp59 static inline void bindTexture(Caches* caches, Texture* texture, GLenum wrapS, GLenum wrapT) { in bindTexture()
120 bool tryStoreGradient(Caches& caches, const SkShader& shader, const Matrix4 modelViewMatrix, in tryStoreGradient()
184 void applyGradient(Caches& caches, const SkiaShaderData::GradientShaderData& data) { in applyGradient()
202 bool tryStoreBitmap(Caches& caches, const SkShader& shader, const Matrix4& modelViewMatrix, in tryStoreBitmap()
248 void applyBitmap(Caches& caches, const SkiaShaderData::BitmapShaderData& data) { in applyBitmap()
281 void storeCompose(Caches& caches, const SkShader& bitmapShader, const SkShader& gradientShader, in storeCompose()
292 bool tryStoreCompose(Caches& caches, const SkShader& shader, const Matrix4& modelViewMatrix, in tryStoreCompose()
324 bool tryStoreLayer(Caches& caches, const SkShader& shader, const Matrix4& modelViewMatrix, in tryStoreLayer()
347 void applyLayer(Caches& caches, const SkiaShaderData::LayerShaderData& data) { in applyLayer()
360 void SkiaShader::store(Caches& caches, const SkShader& shader, const Matrix4& modelViewMatrix, in store()
[all …]
DSkiaShader.h31 class Caches; variable
90 static void store(Caches& caches, const SkShader& shader, const Matrix4& modelViewMatrix,
93 static void apply(Caches& caches, const SkiaShaderData& data);
DAssetAtlas.cpp40 Caches& caches = Caches::getInstance(); in init()
79 DelegateTexture(Caches& caches, Texture* delegate) in DelegateTexture()
96 void AssetAtlas::createEntries(Caches& caches, int64_t* map, int count) { in createEntries()
DResourceCache.cpp115 if (Caches::hasInstance()) { in destructorLocked()
116 Caches::getInstance().patchCache.removeDeferred(resource); in destructorLocked()
138 if (Caches::hasInstance()) { in deleteResourceReferenceLocked()
139 Caches::getInstance().patchCache.removeDeferred((Res_png_9patch*) resource); in deleteResourceReferenceLocked()
DBakedOpRenderer.h26 class Caches; variable
57 BakedOpRenderer(Caches& caches, RenderState& renderState, bool opaque, in BakedOpRenderer()
67 Caches& caches() { return mCaches; } in caches()
119 Caches& mCaches;
DLayerRenderer.cpp191 Caches& caches = Caches::getInstance(); in createRenderLayer()
283 Caches::getInstance().textureState().activateTexture(0); in createTextureLayer()
315 if (!Caches::getInstance().layerCache.put(layer)) { in destroyLayer()
321 Caches::getInstance().layerCache.dump(); in destroyLayer()
337 if (Caches::getInstance().extensions().hasDiscardFramebuffer()) { in flushLayer()
355 Caches& caches = Caches::getInstance(); in copyLayer()
DTexture.h28 class Caches; variable
37 Texture(Caches& caches) in Texture()
169 Caches& mCaches;
DImage.cpp40 Caches::getInstance().textureState().bindTexture(mTexture); in Image()
55 Caches::getInstance().textureState().deleteTexture(mTexture); in ~Image()
DPathCache.h43 class Caches; variable
64 PathTexture(Caches& caches, float left, float top, in PathTexture()
72 PathTexture(Caches& caches, int generation) in PathTexture()
291 PathProcessor(Caches& caches);
DGlopBuilder.h31 class Caches; variable
48 GlopBuilder(RenderState& renderState, Caches& caches, Glop* outGlop);
129 Caches& mCaches;
DDisplayList.cpp70 if (path->unique() && Caches::hasInstance()) { in cleanupResources()
71 Caches::getInstance().pathCache.removeDeferred(path); in cleanupResources()
DPixelBuffer.cpp97 Caches& mCaches;
104 , mCaches(Caches::getInstance()){ in GpuPixelBuffer()
164 if (type == kBufferType_Auto && Caches::getInstance().gpuPixelBuffersEnabled) { in create()
DAssetAtlas.h34 class Caches; variable
160 void createEntries(Caches& caches, int64_t* map, int count);
/frameworks/base/libs/hwui/tests/unit/
DLeakCheckTests.cpp43 Caches& caches = Caches::getInstance(); in RENDERTHREAD_TEST()
46 sLightGeometery, Caches::getInstance()); in RENDERTHREAD_TEST()
60 Caches& caches = Caches::getInstance(); in RENDERTHREAD_TEST()
63 sLightGeometery, Caches::getInstance()); in RENDERTHREAD_TEST()
DFrameBuilderTests.cpp137 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST()
165 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST()
182 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST()
217 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST()
243 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST()
313 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST()
334 FrameBuilder frameBuilder(emptyLayerUpdateQueue, sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST()
356 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST()
384 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST()
427 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST()
[all …]
DOffscreenBufferPoolTests.cpp34 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 49u, 149u); in RENDERTHREAD_TEST()
45 OffscreenBuffer layerAligned(renderThread.renderState(), Caches::getInstance(), 256u, 256u); in RENDERTHREAD_TEST()
49 OffscreenBuffer layerUnaligned(renderThread.renderState(), Caches::getInstance(), 200u, 225u); in RENDERTHREAD_TEST()
55 OffscreenBuffer buffer(renderThread.renderState(), Caches::getInstance(), 256u, 256u); in RENDERTHREAD_TEST()
DBakedOpRendererTests.cpp27 BakedOpRenderer renderer(Caches::getInstance(), renderThread.renderState(), true, sLightInfo); in RENDERTHREAD_TEST()
28 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 200u, 200u); in RENDERTHREAD_TEST()
DBakedOpDispatcherTests.cpp39 : BakedOpRenderer(Caches::getInstance(), renderState, true, sLightInfo) in ValidatingBakedOpRenderer()
190 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST()
212 OffscreenBuffer layer(renderThread.renderState(), Caches::getInstance(), 100, 100); in validateLayerDraw()
220 sLightGeometry, Caches::getInstance()); in validateLayerDraw()
262 uint32_t expectedColor = Caches::getInstance().getOverdrawColor(glopCount - 2); in RENDERTHREAD_TEST()
/frameworks/base/libs/hwui/tests/microbench/
DFrameBuilderBench.cpp66 sLightGeometry, Caches::getInstance()); in BM_FrameBuilder_defer()
79 Caches& caches = Caches::getInstance(); in BM_FrameBuilder_deferAndRender()
122 sLightGeometry, Caches::getInstance()); in BM_FrameBuilder_defer_scene()
137 Caches& caches = Caches::getInstance(); in BM_FrameBuilder_deferAndRender_scene()
142 sLightGeometry, Caches::getInstance()); in BM_FrameBuilder_deferAndRender_scene()
/frameworks/base/libs/hwui/renderstate/
DRenderState.h42 class Caches; variable
55 friend class Caches; variable
60 void flush(Caches::FlushMode flushMode);
114 Caches* mCaches = nullptr;
DTextureState.h32 friend class Caches; // TODO: move to RenderState variable
35 void constructTexture(Caches& caches);
/frameworks/base/core/jni/
Dandroid_view_DisplayListCanvas.cpp120 if (!Caches::hasInstance()) { in android_view_DisplayListCanvas_getMaxTextureWidth()
123 return Caches::getInstance().maxTextureSize; in android_view_DisplayListCanvas_getMaxTextureWidth()
127 if (!Caches::hasInstance()) { in android_view_DisplayListCanvas_getMaxTextureHeight()
130 return Caches::getInstance().maxTextureSize; in android_view_DisplayListCanvas_getMaxTextureHeight()

123