Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/renderthread/
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;
DEglManager.cpp126 mSwapBehavior = SwapBehavior::BufferAge; in initialize()
128 mSwapBehavior = SwapBehavior::Preserved; in initialize()
154 EGLConfig EglManager::load8BitsConfig(EGLDisplay display, EglManager::SwapBehavior swapBehavior) { in load8BitsConfig()
156 (swapBehavior == SwapBehavior::Preserved) ? EGL_SWAP_BEHAVIOR_PRESERVED_BIT : 0; in load8BitsConfig()
184 EGLConfig EglManager::load1010102Config(EGLDisplay display, SwapBehavior swapBehavior) { in load1010102Config()
186 (swapBehavior == SwapBehavior::Preserved) ? EGL_SWAP_BEHAVIOR_PRESERVED_BIT : 0; in load1010102Config()
213 EGLConfig EglManager::loadFP16Config(EGLDisplay display, SwapBehavior swapBehavior) { in loadFP16Config()
215 (swapBehavior == SwapBehavior::Preserved) ? EGL_SWAP_BEHAVIOR_PRESERVED_BIT : 0; in loadFP16Config()
280 if (mSwapBehavior == SwapBehavior::Preserved) { in loadConfigs()
283 mSwapBehavior = SwapBehavior::Discard; in loadConfigs()
[all …]
DVulkanManager.h213 enum class SwapBehavior { enum
217 SwapBehavior mSwapBehavior = SwapBehavior::Discard;
DCanvasContext.h116 void setSwapBehavior(SwapBehavior swapBehavior);
272 SwapBehavior mSwapBehavior = SwapBehavior::kSwap_default;
DIRenderPipeline.h60 virtual bool setSurface(ANativeWindow* window, SwapBehavior swapBehavior) = 0;
DRenderProxy.h71 void setSwapBehavior(SwapBehavior swapBehavior);
DVulkanManager.cpp359 mSwapBehavior = SwapBehavior::BufferAge; in initialize()
464 int bufferAge = (mSwapBehavior == SwapBehavior::Discard) ? 0 : surface->getCurrentBuffersAge(); in dequeueNextBuffer()
DRenderProxy.cpp62 void RenderProxy::setSwapBehavior(SwapBehavior swapBehavior) { in setSwapBehavior()
DCanvasContext.cpp236 void CanvasContext::setSwapBehavior(SwapBehavior swapBehavior) { in setSwapBehavior()
/frameworks/base/libs/hwui/
DSwapBehavior.h24 enum class SwapBehavior { enum
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaOpenGLPipeline.cpp168 bool SkiaOpenGLPipeline::setSurface(ANativeWindow* surface, SwapBehavior swapBehavior) { in setSurface()
184 const bool preserveBuffer = (swapBehavior != SwapBehavior::kSwap_discardBuffer); in setSurface()
DSkiaOpenGLPipeline.h48 bool setSurface(ANativeWindow* surface, renderthread::SwapBehavior swapBehavior) override;
DSkiaVulkanPipeline.h45 bool setSurface(ANativeWindow* surface, renderthread::SwapBehavior swapBehavior) override;
DSkiaVulkanPipeline.cpp126 bool SkiaVulkanPipeline::setSurface(ANativeWindow* surface, SwapBehavior swapBehavior) { in setSurface()
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_HardwareRenderer.cpp197 proxy->setSwapBehavior(SwapBehavior::kSwap_discardBuffer); in android_view_ThreadedRenderer_setSurface()
711 proxy.setSwapBehavior(SwapBehavior::kSwap_discardBuffer); in android_view_ThreadedRenderer_createHardwareBitmapFromRenderNode()
/frameworks/base/libs/hwui/tests/unit/
DSkiaPipelineTests.cpp403 EXPECT_TRUE(pipeline->setSurface(surface.get(), SwapBehavior::kSwap_default)); in RENDERTHREAD_SKIA_PIPELINE_TEST()