Home
last modified time | relevance | path

Searched refs:SwapBehavior (Results 1 – 16 of 16) sorted by relevance

/aosp12/frameworks/base/libs/hwui/renderthread/
H A DEglManager.h83 enum class SwapBehavior { enum
89 static EGLConfig load8BitsConfig(EGLDisplay display, SwapBehavior swapBehavior);
90 static EGLConfig loadFP16Config(EGLDisplay display, SwapBehavior swapBehavior);
91 static EGLConfig load1010102Config(EGLDisplay display, SwapBehavior swapBehavior);
107 SwapBehavior mSwapBehavior = SwapBehavior::Discard;
H A DEglManager.cpp127 mSwapBehavior = SwapBehavior::BufferAge; in initialize()
129 mSwapBehavior = SwapBehavior::Preserved; in initialize()
285 if (mSwapBehavior == SwapBehavior::Preserved) { in loadConfigs()
288 mSwapBehavior = SwapBehavior::Discard; in loadConfigs()
421 if (mSwapBehavior != SwapBehavior::Preserved) { in createSurface()
483 case SwapBehavior::Discard: in queryBufferAge()
485 case SwapBehavior::Preserved: in queryBufferAge()
487 case SwapBehavior::BufferAge: in queryBufferAge()
509 if (EglExtensions.setDamage && mSwapBehavior == SwapBehavior::BufferAge) { in damageFrame()
521 return EglExtensions.setDamage && mSwapBehavior == SwapBehavior::BufferAge; in damageRequiresSwap()
[all …]
H A DVulkanManager.h213 enum class SwapBehavior { enum
217 SwapBehavior mSwapBehavior = SwapBehavior::Discard;
H A DCanvasContext.h116 void setSwapBehavior(SwapBehavior swapBehavior);
272 SwapBehavior mSwapBehavior = SwapBehavior::kSwap_default;
H A DIRenderPipeline.h60 virtual bool setSurface(ANativeWindow* window, SwapBehavior swapBehavior) = 0;
H A DRenderProxy.h71 void setSwapBehavior(SwapBehavior swapBehavior);
H A DVulkanManager.cpp359 mSwapBehavior = SwapBehavior::BufferAge; in initialize()
464 int bufferAge = (mSwapBehavior == SwapBehavior::Discard) ? 0 : surface->getCurrentBuffersAge(); in dequeueNextBuffer()
H A DRenderProxy.cpp62 void RenderProxy::setSwapBehavior(SwapBehavior swapBehavior) { in setSwapBehavior()
H A DCanvasContext.cpp236 void CanvasContext::setSwapBehavior(SwapBehavior swapBehavior) { in setSwapBehavior()
/aosp12/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaOpenGLPipeline.cpp168 bool SkiaOpenGLPipeline::setSurface(ANativeWindow* surface, SwapBehavior swapBehavior) { in setSurface()
184 const bool preserveBuffer = (swapBehavior != SwapBehavior::kSwap_discardBuffer); in setSurface()
H A DSkiaOpenGLPipeline.h48 bool setSurface(ANativeWindow* surface, renderthread::SwapBehavior swapBehavior) override;
H A DSkiaVulkanPipeline.h45 bool setSurface(ANativeWindow* surface, renderthread::SwapBehavior swapBehavior) override;
H A DSkiaVulkanPipeline.cpp126 bool SkiaVulkanPipeline::setSurface(ANativeWindow* surface, SwapBehavior swapBehavior) { in setSurface()
/aosp12/frameworks/base/libs/hwui/
H A DSwapBehavior.h24 enum class SwapBehavior { enum
/aosp12/frameworks/base/libs/hwui/jni/
H A Dandroid_graphics_HardwareRenderer.cpp200 proxy->setSwapBehavior(SwapBehavior::kSwap_discardBuffer); in android_view_ThreadedRenderer_setSurface()
732 proxy.setSwapBehavior(SwapBehavior::kSwap_discardBuffer); in android_view_ThreadedRenderer_createHardwareBitmapFromRenderNode()
/aosp12/frameworks/base/libs/hwui/tests/unit/
H A DSkiaPipelineTests.cpp403 EXPECT_TRUE(pipeline->setSurface(surface.get(), SwapBehavior::kSwap_default)); in RENDERTHREAD_SKIA_PIPELINE_TEST()