Lines Matching refs:FrameBuffer
163 FrameBuffer* FrameBuffer::s_theFrameBuffer = NULL;
164 HandleType FrameBuffer::s_nextHandle = 0;
196 void FrameBuffer::waitUntilInitialized() { in waitUntilInitialized()
267 bool FrameBuffer::initialize(int width, int height, gfxstream::host::FeatureSet features, in initialize()
282 std::unique_ptr<FrameBuffer> fb(new FrameBuffer(width, height, features, useSubWindow)); in initialize()
551 void FrameBuffer::finalize() { in finalize()
552 FrameBuffer* fb = s_theFrameBuffer; in finalize()
559 FrameBuffer::FrameBuffer(int p_width, int p_height, gfxstream::host::FeatureSet features, bool useS… in FrameBuffer() function in gfxstream::FrameBuffer
570 [this](FrameBuffer::Readback&& readback) { return sendReadbackWorkerCmd(readback); }), in FrameBuffer()
588 FrameBuffer::~FrameBuffer() { in ~FrameBuffer()
654 FrameBuffer::sendReadbackWorkerCmd(const Readback& readback) { in sendReadbackWorkerCmd()
675 WorkerProcessingResult FrameBuffer::postWorkerFunc(Post& post) { in postWorkerFunc()
754 std::future<void> FrameBuffer::sendPostWorkerCmd(Post post) { in sendPostWorkerCmd()
787 void FrameBuffer::setPostCallback(Renderer::OnPostCallback onPost, void* onPostContext, in setPostCallback()
831 auto fb = static_cast<FrameBuffer*>(param); in subWindowRepaint()
835 bool FrameBuffer::setupSubWindow(FBNativeWindowType p_window, in setupSubWindow()
1085 bool FrameBuffer::removeSubWindow() { in removeSubWindow()
1098 bool FrameBuffer::removeSubWindow_locked() { in removeSubWindow_locked()
1118 HandleType FrameBuffer::genHandle_locked() { in genHandle_locked()
1132 HandleType FrameBuffer::createColorBuffer(int p_width, in createColorBuffer()
1145 void FrameBuffer::createColorBufferWithHandle(int p_width, int p_height, GLenum p_internalFormat, in createColorBufferWithHandle()
1167 HandleType FrameBuffer::createColorBufferWithHandleLocked(int p_width, int p_height, in createColorBufferWithHandleLocked()
1211 HandleType FrameBuffer::createBuffer(uint64_t p_size, uint32_t memoryProperty) { in createBuffer()
1217 void FrameBuffer::createBufferWithHandle(uint64_t size, HandleType handle) { in createBufferWithHandle()
1229 HandleType FrameBuffer::createBufferWithHandleLocked(int p_size, HandleType handle, in createBufferWithHandleLocked()
1247 int FrameBuffer::openColorBuffer(HandleType p_colorbuffer) { in openColorBuffer()
1276 void FrameBuffer::closeColorBuffer(HandleType p_colorbuffer) { in closeColorBuffer()
1307 void FrameBuffer::closeBuffer(HandleType p_buffer) { in closeBuffer()
1319 bool FrameBuffer::closeColorBufferLocked(HandleType p_colorbuffer, bool forced) { in closeColorBufferLocked()
1363 void FrameBuffer::decColorBufferRefCountNoDestroy(HandleType p_colorbuffer) { in decColorBufferRefCountNoDestroy()
1377 void FrameBuffer::performDelayedColorBufferCloseLocked(bool forced) { in performDelayedColorBufferCloseLocked()
1402 void FrameBuffer::eraseDelayedCloseColorBufferLocked( in eraseDelayedCloseColorBufferLocked()
1423 void FrameBuffer::createGraphicsProcessResources(uint64_t puid) { in createGraphicsProcessResources()
1431 std::unique_ptr<ProcessResources> FrameBuffer::removeGraphicsProcessResources(uint64_t puid) { in removeGraphicsProcessResources()
1445 void FrameBuffer::cleanupProcGLObjects(uint64_t puid) { in cleanupProcGLObjects()
1485 std::vector<HandleType> FrameBuffer::cleanupProcGLObjects_locked(uint64_t puid, bool forced) { in cleanupProcGLObjects_locked()
1570 void FrameBuffer::markOpened(ColorBufferRef* cbRef) { in markOpened()
1576 void FrameBuffer::readBuffer(HandleType handle, uint64_t offset, uint64_t size, void* bytes) { in readBuffer()
1588 void FrameBuffer::readColorBuffer(HandleType p_colorbuffer, int x, int y, int width, int height, in readColorBuffer()
1601 void FrameBuffer::readColorBufferYUV(HandleType p_colorbuffer, int x, int y, int width, int height, in readColorBufferYUV()
1614 bool FrameBuffer::updateBuffer(HandleType p_buffer, uint64_t offset, uint64_t size, void* bytes) { in updateBuffer()
1626 bool FrameBuffer::updateColorBuffer(HandleType p_colorbuffer, in updateColorBuffer()
1651 bool FrameBuffer::updateColorBufferFromFrameworkFormat(HandleType p_colorbuffer, int x, int y, in updateColorBufferFromFrameworkFormat()
1671 bool FrameBuffer::getColorBufferInfo( in getColorBufferInfo()
1693 bool FrameBuffer::getBufferInfo(HandleType p_buffer, int* size) { in getBufferInfo()
1707 bool FrameBuffer::post(HandleType p_colorbuffer, bool needLockAndBind) { in post()
1719 void FrameBuffer::postWithCallback(HandleType p_colorbuffer, Post::CompletionCallback callback, in postWithCallback()
1740 bool FrameBuffer::postImplSync(HandleType p_colorbuffer, bool needLockAndBind, bool repaint) { in postImplSync()
1757 AsyncResult FrameBuffer::postImpl(HandleType p_colorbuffer, Post::CompletionCallback callback, in postImpl()
1868 void FrameBuffer::doPostCallback(void* pixels, uint32_t displayId) { in doPostCallback()
1878 void FrameBuffer::getPixels(void* pixels, uint32_t bytes, uint32_t displayId) { in getPixels()
1889 void FrameBuffer::flushReadPipeline(int displayId) { in flushReadPipeline()
1904 void FrameBuffer::ensureReadbackWorker() { in ensureReadbackWorker()
1916 FrameBuffer::getFB()->getPixels(pixels, bytes, displayId); in sFrameBuffer_ReadPixelsCallback()
1920 FrameBuffer::getFB()->flushReadPipeline(displayId); in sFrameBuffer_FlushReadPixelPipeline()
1923 bool FrameBuffer::asyncReadbackSupported() { in asyncReadbackSupported()
1931 Renderer::ReadPixelsCallback FrameBuffer::getReadPixelsCallback() { in getReadPixelsCallback()
1935 Renderer::FlushReadPixelPipeline FrameBuffer::getFlushReadPixelPipeline() { in getFlushReadPixelPipeline()
1939 bool FrameBuffer::repost(bool needLockAndBind) { in repost()
1987 int FrameBuffer::getScreenshot(unsigned int nChannels, unsigned int* width, unsigned int* height, in getScreenshot()
2113 void FrameBuffer::onLastColorBufferRef(uint32_t handle) { in onLastColorBufferRef()
2121 bool FrameBuffer::decColorBufferRefCountLocked(HandleType p_colorbuffer) { in decColorBufferRefCountLocked()
2134 bool FrameBuffer::compose(uint32_t bufferSize, void* buffer, bool needPost) { in compose()
2176 AsyncResult FrameBuffer::composeWithCallback(uint32_t bufferSize, void* buffer, in composeWithCallback()
2217 void FrameBuffer::onSave(Stream* stream, const android::snapshot::ITextureSaverPtr& textureSaver) { in onSave()
2349 bool FrameBuffer::onLoad(Stream* stream, in onLoad()
2623 void FrameBuffer::lock() { m_lock.lock(); } in lock()
2625 void FrameBuffer::unlock() { m_lock.unlock(); } in unlock()
2627 ColorBufferPtr FrameBuffer::findColorBuffer(HandleType p_colorbuffer) { in findColorBuffer()
2637 BufferPtr FrameBuffer::findBuffer(HandleType p_buffer) { in findBuffer()
2647 void FrameBuffer::registerProcessCleanupCallback(void* key, std::function<void()> cb) { in registerProcessCleanupCallback()
2656 void FrameBuffer::unregisterProcessCleanupCallback(void* key) { in unregisterProcessCleanupCallback()
2670 const ProcessResources* FrameBuffer::getProcessResources(uint64_t puid) { in getProcessResources()
2680 int FrameBuffer::createDisplay(uint32_t* displayId) { in createDisplay()
2684 int FrameBuffer::createDisplay(uint32_t displayId) { in createDisplay()
2688 int FrameBuffer::destroyDisplay(uint32_t displayId) { in destroyDisplay()
2692 int FrameBuffer::setDisplayColorBuffer(uint32_t displayId, uint32_t colorBuffer) { in setDisplayColorBuffer()
2697 int FrameBuffer::getDisplayColorBuffer(uint32_t displayId, uint32_t* colorBuffer) { in getDisplayColorBuffer()
2702 int FrameBuffer::getColorBufferDisplay(uint32_t colorBuffer, uint32_t* displayId) { in getColorBufferDisplay()
2707 int FrameBuffer::getDisplayPose(uint32_t displayId, int32_t* x, int32_t* y, uint32_t* w, in getDisplayPose()
2712 int FrameBuffer::setDisplayPose(uint32_t displayId, int32_t x, int32_t y, uint32_t w, uint32_t h, in setDisplayPose()
2717 void FrameBuffer::sweepColorBuffersLocked() { in sweepColorBuffersLocked()
2724 std::future<void> FrameBuffer::blockPostWorker(std::future<void> continueSignal) { in blockPostWorker()
2738 void FrameBuffer::waitForGpuVulkan(uint64_t deviceHandle, uint64_t fenceHandle) { in waitForGpuVulkan()
2755 void FrameBuffer::asyncWaitForGpuVulkanWithCb(uint64_t deviceHandle, uint64_t fenceHandle, in asyncWaitForGpuVulkanWithCb()
2761 void FrameBuffer::asyncWaitForGpuVulkanQsriWithCb(uint64_t image, FenceCompletionCallback cb) { in asyncWaitForGpuVulkanQsriWithCb()
2765 void FrameBuffer::waitForGpuVulkanQsri(uint64_t image) { in waitForGpuVulkanQsri()
2773 void FrameBuffer::setGuestManagedColorBufferLifetime(bool guestManaged) { in setGuestManagedColorBufferLifetime()
2777 bool FrameBuffer::platformImportResource(uint32_t handle, uint32_t info, void* resource) { in platformImportResource()
2812 std::unique_ptr<BorrowedImageInfo> FrameBuffer::borrowColorBufferForComposition( in borrowColorBufferForComposition()
2832 std::unique_ptr<BorrowedImageInfo> FrameBuffer::borrowColorBufferForDisplay( in borrowColorBufferForDisplay()
2854 void FrameBuffer::logVulkanOutOfMemory(VkResult result, const char* function, int line, in logVulkanOutOfMemory()
2864 void FrameBuffer::setVsyncHz(int vsyncHz) { in setVsyncHz()
2872 void FrameBuffer::scheduleVsyncTask(VsyncThread::VsyncTask task) { in scheduleVsyncTask()
2882 void FrameBuffer::setDisplayConfigs(int configId, int w, int h, int dpiX, int dpiY) { in setDisplayConfigs()
2889 void FrameBuffer::setDisplayActiveConfig(int configId) { in setDisplayActiveConfig()
2902 const int FrameBuffer::getDisplayConfigsCount() { in getDisplayConfigsCount()
2907 const int FrameBuffer::getDisplayConfigsParam(int configId, EGLint param) { in getDisplayConfigsParam()
2932 const int FrameBuffer::getDisplayActiveConfig() { in getDisplayActiveConfig()
2937 bool FrameBuffer::flushColorBufferFromVk(HandleType colorBufferHandle) { in flushColorBufferFromVk()
2946 bool FrameBuffer::flushColorBufferFromVkBytes(HandleType colorBufferHandle, const void* bytes, in flushColorBufferFromVkBytes()
2958 bool FrameBuffer::invalidateColorBufferForVk(HandleType colorBufferHandle) { in invalidateColorBufferForVk()
2974 HandleType FrameBuffer::getEmulatedEglWindowSurfaceColorBufferHandle(HandleType p_surface) { in getEmulatedEglWindowSurfaceColorBufferHandle()
2985 void FrameBuffer::createTrivialContext(HandleType shared, HandleType* contextOut, in createTrivialContext()
2996 void FrameBuffer::createSharedTrivialContext(EGLContext* contextOut, EGLSurface* surfOut) { in createSharedTrivialContext()
3017 void FrameBuffer::destroySharedTrivialContext(EGLContext context, EGLSurface surface) { in destroySharedTrivialContext()
3024 const EmulatedEglConfigList* FrameBuffer::getConfigs() const { in getConfigs()
3032 bool FrameBuffer::setEmulatedEglWindowSurfaceColorBuffer(HandleType p_surface, in setEmulatedEglWindowSurfaceColorBuffer()
3075 HandleType FrameBuffer::createEmulatedEglContext(int config, HandleType shareContextHandle, in createEmulatedEglContext()
3123 void FrameBuffer::destroyEmulatedEglContext(HandleType contextHandle) { in destroyEmulatedEglContext()
3147 HandleType FrameBuffer::createEmulatedEglWindowSurface(int p_config, int p_width, int p_height) { in createEmulatedEglWindowSurface()
3182 void FrameBuffer::destroyEmulatedEglWindowSurface(HandleType p_surface) { in destroyEmulatedEglWindowSurface()
3190 std::vector<HandleType> FrameBuffer::destroyEmulatedEglWindowSurfaceLocked(HandleType p_surface) { in destroyEmulatedEglWindowSurfaceLocked()
3225 void FrameBuffer::createEmulatedEglFenceSync(EGLenum type, int destroyWhenSignaled, in createEmulatedEglFenceSync()
3237 auto fb = FrameBuffer::getFB(); in createEmulatedEglFenceSync()
3259 void FrameBuffer::drainGlRenderThreadResources() { in drainGlRenderThreadResources()
3277 void FrameBuffer::drainGlRenderThreadContexts() { in drainGlRenderThreadContexts()
3299 void FrameBuffer::drainGlRenderThreadSurfaces() { in drainGlRenderThreadSurfaces()
3339 EmulationGl& FrameBuffer::getEmulationGl() { in getEmulationGl()
3346 EGLDisplay FrameBuffer::getDisplay() const { in getDisplay()
3353 EGLSurface FrameBuffer::getWindowSurface() const { in getWindowSurface()
3368 EGLContext FrameBuffer::getContext() const { in getContext()
3375 EGLContext FrameBuffer::getConfig() const { in getConfig()
3382 EGLContext FrameBuffer::getGlobalEGLContext() const { in getGlobalEGLContext()
3398 EmulatedEglContextPtr FrameBuffer::getContext_locked(HandleType p_context) { in getContext_locked()
3402 EmulatedEglWindowSurfacePtr FrameBuffer::getWindowSurface_locked(HandleType p_windowsurface) { in getWindowSurface_locked()
3406 TextureDraw* FrameBuffer::getTextureDraw() const { in getTextureDraw()
3414 bool FrameBuffer::isFastBlitSupported() const { in isFastBlitSupported()
3422 void FrameBuffer::disableFastBlitForTesting() { in disableFastBlitForTesting()
3430 HandleType FrameBuffer::createEmulatedEglImage(HandleType contextHandle, EGLenum target, in createEmulatedEglImage()
3470 EGLBoolean FrameBuffer::destroyEmulatedEglImage(HandleType imageHandle) { in destroyEmulatedEglImage()
3499 bool FrameBuffer::flushEmulatedEglWindowSurfaceColorBuffer(HandleType p_surface) { in flushEmulatedEglWindowSurfaceColorBuffer()
3515 GLESDispatchMaxVersion FrameBuffer::getMaxGLESVersion() { in getMaxGLESVersion()
3522 void FrameBuffer::fillGLESUsages(android_studio::EmulatorGLESUsages* usages) { in fillGLESUsages()
3528 void* FrameBuffer::platformCreateSharedEglContext(void) { in platformCreateSharedEglContext()
3557 bool FrameBuffer::platformDestroySharedEglContext(void* underlyingContext) { in platformDestroySharedEglContext()
3574 bool FrameBuffer::flushColorBufferFromGl(HandleType colorBufferHandle) { in flushColorBufferFromGl()
3583 bool FrameBuffer::invalidateColorBufferForGl(HandleType colorBufferHandle) { in invalidateColorBufferForGl()
3592 ContextHelper* FrameBuffer::getPbufferSurfaceContextHelper() const { in getPbufferSurfaceContextHelper()
3606 bool FrameBuffer::bindColorBufferToTexture(HandleType p_colorbuffer) { in bindColorBufferToTexture()
3618 bool FrameBuffer::bindColorBufferToTexture2(HandleType p_colorbuffer) { in bindColorBufferToTexture2()
3635 bool FrameBuffer::bindColorBufferToRenderbuffer(HandleType p_colorbuffer) { in bindColorBufferToRenderbuffer()
3647 bool FrameBuffer::bindContext(HandleType p_context, HandleType p_drawSurface, in bindContext()
3738 void FrameBuffer::createYUVTextures(uint32_t type, uint32_t count, int width, int height, in createYUVTextures()
3760 void FrameBuffer::destroyYUVTextures(uint32_t type, uint32_t count, uint32_t* textures) { in destroyYUVTextures()
3770 void FrameBuffer::updateYUVTextures(uint32_t type, uint32_t* textures, void* privData, void* func) { in updateYUVTextures()
3801 void FrameBuffer::swapTexturesAndUpdateColorBuffer(uint32_t p_colorbuffer, int x, int y, int width, in swapTexturesAndUpdateColorBuffer()
3816 bool FrameBuffer::readColorBufferContents(HandleType p_colorbuffer, size_t* numBytes, in readColorBufferContents()
3829 void FrameBuffer::waitForGpu(uint64_t eglsync) { in waitForGpu()
3840 void FrameBuffer::asyncWaitForGpuWithCb(uint64_t eglsync, FenceCompletionCallback cb) { in asyncWaitForGpuWithCb()
3851 const gl::GLESv2Dispatch* FrameBuffer::getGles2Dispatch() { in getGles2Dispatch()
3859 const gl::EGLDispatch* FrameBuffer::getEglDispatch() { in getEglDispatch()