Home
last modified time | relevance | path

Searched refs:colorBuffer (Results 1 – 25 of 29) sorted by relevance

12

/hardware/google/gfxstream/host/
DColorBuffer.cpp58 std::shared_ptr<ColorBuffer> colorBuffer( in create() local
63 colorBuffer->mNeedRestore = true; in create()
68 colorBuffer->mColorBufferGl = emulationGl->loadColorBuffer(stream); in create()
69 assert(width == colorBuffer->mColorBufferGl->getWidth()); in create()
70 assert(height == colorBuffer->mColorBufferGl->getHeight()); in create()
71 assert(frameworkFormat == colorBuffer->mColorBufferGl->getFrameworkFormat()); in create()
73 colorBuffer->mColorBufferGl = in create()
76 if (!colorBuffer->mColorBufferGl) { in create()
84 const bool vulkanOnly = colorBuffer->mColorBufferGl == nullptr; in create()
89 colorBuffer->mColorBufferVk = vk::ColorBufferVk::create( in create()
[all …]
DRenderControl.cpp912 uint32_t colorBuffer) in rcSetWindowColorBuffer() argument
918 fb->setEmulatedEglWindowSurfaceColorBuffer(windowSurface, colorBuffer); in rcSetWindowColorBuffer()
934 static void rcFBPost(uint32_t colorBuffer) in rcFBPost() argument
941 fb->post(colorBuffer); in rcFBPost()
949 static void rcBindTexture(uint32_t colorBuffer) in rcBindTexture() argument
957 fb->invalidateColorBufferForGl(colorBuffer); in rcBindTexture()
959 fb->bindColorBufferToTexture(colorBuffer); in rcBindTexture()
962 static void rcBindRenderbuffer(uint32_t colorBuffer) in rcBindRenderbuffer() argument
970 fb->invalidateColorBufferForGl(colorBuffer); in rcBindRenderbuffer()
972 fb->bindColorBufferToRenderbuffer(colorBuffer); in rcBindRenderbuffer()
[all …]
DFrameBuffer.cpp1592 ColorBufferPtr colorBuffer = findColorBuffer(p_colorbuffer); in readColorBuffer() local
1593 if (!colorBuffer) { in readColorBuffer()
1598 colorBuffer->readToBytes(x, y, width, height, format, type, pixels); in readColorBuffer()
1605 ColorBufferPtr colorBuffer = findColorBuffer(p_colorbuffer); in readColorBufferYUV() local
1606 if (!colorBuffer) { in readColorBufferYUV()
1611 colorBuffer->readYuvToBytes(x, y, width, height, pixels, pixels_size); in readColorBufferYUV()
1640 ColorBufferPtr colorBuffer = findColorBuffer(p_colorbuffer); in updateColorBuffer() local
1641 if (!colorBuffer) { in updateColorBuffer()
1646 colorBuffer->updateFromBytes(x, y, width, height, format, type, pixels); in updateColorBuffer()
1677 ColorBufferPtr colorBuffer = findColorBuffer(p_colorbuffer); in getColorBufferInfo() local
[all …]
DGfxStreamAgents.cpp220 uint32_t* colorBuffer) -> int { in __anon8c00e9f90d02()
225 *colorBuffer = mMultiDisplay[displayId].cb; in __anon8c00e9f90d02()
228 .getColorBufferDisplay = [](uint32_t colorBuffer,
231 if (iter.second.cb == colorBuffer) { in __anon8c00e9f90e02()
239 uint32_t colorBuffer) -> int { in __anon8c00e9f90f02()
244 mMultiDisplay[displayId].cb = colorBuffer; in __anon8c00e9f90f02()
DPostWorkerGl.cpp175 .colorBuffer = currentCb, in postImpl()
208 .colorBuffer = cb, in postImpl()
238 .colorBuffer = cb, in postWithOverlay()
DFrameBuffer.h439 int setDisplayColorBuffer(uint32_t displayId, uint32_t colorBuffer);
440 int getDisplayColorBuffer(uint32_t displayId, uint32_t* colorBuffer);
441 int getColorBufferDisplay(uint32_t colorBuffer, uint32_t* displayId);
/hardware/google/gfxstream/guest/renderControl_enc/
DrenderControl_entry.cpp23 void rcSetWindowColorBuffer(uint32_t windowSurface, uint32_t colorBuffer);
26 void rcFBPost(uint32_t colorBuffer);
28 void rcBindTexture(uint32_t colorBuffer);
29 void rcBindRenderbuffer(uint32_t colorBuffer);
48 int rcSetDisplayColorBuffer(uint32_t displayId, uint32_t colorBuffer);
49 int rcGetDisplayColorBuffer(uint32_t displayId, uint32_t* colorBuffer);
50 int rcGetColorBufferDisplay(uint32_t colorBuffer, uint32_t* displayId);
53 GLint rcSetColorBufferVulkanMode(uint32_t colorBuffer, uint32_t mode);
59 GLint rcSetColorBufferVulkanMode2(uint32_t colorBuffer, uint32_t mode, uint32_t memoryProperty);
176 void rcSetWindowColorBuffer(uint32_t windowSurface, uint32_t colorBuffer) in rcSetWindowColorBuffer() argument
[all …]
DREADME75 This function creates a colorBuffer object on the host which can be then
79 The function returns a handle to the colorBuffer object, with an initial
90 void rcFlushWindowColorBuffer(uint32_t windowSurface, uint32_t colorBuffer);
93 void rcSetWindowColorBuffer(uint32_t windowSurface, uint32_t colorBuffer);
95 previous target colorBuffer gets updated before switching to the new
96 colorBuffer.
102 void rcFBPost(uint32_t colorBuffer);
103 This function causes the content of the colorBuffer object to be
110 void rcBindTexture(uint32_t colorBuffer);
112 colorBuffer to the current binded texture object of the calling thread.
[all …]
DrenderControl.in16 GL_ENTRY(void, rcSetWindowColorBuffer, uint32_t windowSurface, uint32_t colorBuffer)
19 GL_ENTRY(void, rcFBPost, uint32_t colorBuffer)
21 GL_ENTRY(void, rcBindTexture, uint32_t colorBuffer)
22 GL_ENTRY(void, rcBindRenderbuffer, uint32_t colorBuffer)
DrenderControl_enc.cpp640 void rcSetWindowColorBuffer_enc(void *self , uint32_t windowSurface, uint32_t colorBuffer) in rcSetWindowColorBuffer_enc() argument
642 …OG("rcSetWindowColorBuffer(windowSurface:0x%08x, colorBuffer:0x%08x)", windowSurface, colorBuffer); in rcSetWindowColorBuffer_enc()
661 memcpy(ptr, &colorBuffer, 4); ptr += 4; in rcSetWindowColorBuffer_enc()
754 void rcFBPost_enc(void *self , uint32_t colorBuffer) in rcFBPost_enc() argument
756 ENCODER_DEBUG_LOG("rcFBPost(colorBuffer:0x%08x)", colorBuffer); in rcFBPost_enc()
774 memcpy(ptr, &colorBuffer, 4); ptr += 4; in rcFBPost_enc()
808 void rcBindTexture_enc(void *self , uint32_t colorBuffer) in rcBindTexture_enc() argument
810 ENCODER_DEBUG_LOG("rcBindTexture(colorBuffer:0x%08x)", colorBuffer); in rcBindTexture_enc()
828 memcpy(ptr, &colorBuffer, 4); ptr += 4; in rcBindTexture_enc()
835 void rcBindRenderbuffer_enc(void *self , uint32_t colorBuffer) in rcBindRenderbuffer_enc() argument
[all …]
/hardware/google/aemu/host-common/testing/
DMockAndroidMultiDisplayAgent.cpp142 uint32_t* colorBuffer) -> int { in __anonc182111b0d02()
143 *colorBuffer = mMultiDisplay[displayId].cb; in __anonc182111b0d02()
146 .getColorBufferDisplay = [](uint32_t colorBuffer,
149 if (iter.second.cb == colorBuffer) { in __anonc182111b0e02()
157 uint32_t colorBuffer) -> int { in __anonc182111b0f02()
158 mMultiDisplay[displayId].cb = colorBuffer; in __anonc182111b0f02()
/hardware/google/gfxstream/codegen/renderControl/
DrenderControl.in16 GL_ENTRY(void, rcSetWindowColorBuffer, uint32_t windowSurface, uint32_t colorBuffer)
19 GL_ENTRY(void, rcFBPost, uint32_t colorBuffer)
21 GL_ENTRY(void, rcBindTexture, uint32_t colorBuffer)
22 GL_ENTRY(void, rcBindRenderbuffer, uint32_t colorBuffer)
41 GL_ENTRY(int, rcSetDisplayColorBuffer, uint32_t displayId, uint32_t colorBuffer);
42 GL_ENTRY(int, rcGetDisplayColorBuffer, uint32_t displayId, uint32_t* colorBuffer);
43 GL_ENTRY(int, rcGetColorBufferDisplay, uint32_t colorBuffer, uint32_t* displayId);
46 GL_ENTRY(GLint, rcSetColorBufferVulkanMode, uint32_t colorBuffer, uint32_t mode);
52 GL_ENTRY(GLint, rcSetColorBufferVulkanMode2, uint32_t colorBuffer, uint32_t mode, uint32_t memoryPr…
DrenderControl.attrib77 dir colorBuffer out
78 len colorBuffer sizeof(uint32_t)
/hardware/google/gfxstream/host/tests/
DSampleApplication.cpp176 : colorBuffer(cb), sync(s) { } in Item()
177 unsigned int colorBuffer = 0; member in gfxstream::ColorBufferQueue::Item
352 appItem.colorBuffer, in drawWorkerWithCompose()
362 sf2appQueue.queueBuffer(ColorBufferQueue::Item(appItem.colorBuffer, getFenceSync())); in drawWorkerWithCompose()
438 mFb->setEmulatedEglWindowSurfaceColorBuffer(sfSurface, hwcItem.colorBuffer); in drawWorker()
443 mFb->bindColorBufferToTexture(appItem.colorBuffer); in drawWorker()
455 sf2appQueue.queueBuffer(ColorBufferQueue::Item(appItem.colorBuffer, getFenceSync())); in drawWorker()
461 sf2hwcQueue.queueBuffer(ColorBufferQueue::Item(hwcItem.colorBuffer, getFenceSync())); in drawWorker()
500 mFb->setEmulatedEglWindowSurfaceColorBuffer(appSurface, sfItem.colorBuffer); in surfaceFlingerComposerLoop()
508 app2sfQueue.queueBuffer(ColorBufferQueue::Item(sfItem.colorBuffer, getFenceSync())); in surfaceFlingerComposerLoop()
[all …]
DFrameBuffer_unittest.cpp415 HandleType colorBuffer = in TEST_F() local
421 EXPECT_TRUE(mFb->setEmulatedEglWindowSurfaceColorBuffer(surface, colorBuffer)); in TEST_F()
445 colorBuffer, 0, 0, mWidth, mHeight, in TEST_F()
454 mFb->post(colorBuffer); in TEST_F()
460 mFb->closeColorBuffer(colorBuffer); in TEST_F()
461 mFb->closeColorBuffer(colorBuffer); in TEST_F()
565 HandleType colorBuffer = in TEST_F() local
571 EXPECT_TRUE(mFb->setEmulatedEglWindowSurfaceColorBuffer(surface, colorBuffer)); in TEST_F()
682 mFb->closeColorBuffer(colorBuffer); in TEST_F()
683 mFb->closeColorBuffer(colorBuffer); in TEST_F()
[all …]
/hardware/google/aemu/host-common/include/host-common/
Dmulti_display_agent.h70 int (*getDisplayColorBuffer)(uint32_t displayId, uint32_t* colorBuffer);
71 int (*getColorBufferDisplay)(uint32_t colorBuffer, uint32_t* displayId);
72 int (*setDisplayColorBuffer)(uint32_t displayId, uint32_t colorBuffer);
DMultiDisplay.h117 int getDisplayColorBuffer(uint32_t displayId, uint32_t* colorBuffer);
118 int getColorBufferDisplay(uint32_t colorBuffer, uint32_t* displayId);
119 int setDisplayColorBuffer(uint32_t displayId, uint32_t colorBuffer);
/hardware/google/gfxstream/host/gl/
DDisplayGl.cpp54 layer.colorBuffer->glOpPostLayer(*layer.layerOptions, post.frameWidth, in post()
60 layer.colorBuffer->glOpPostViewportScaledWithOverlay( in post()
DDisplayGl.h38 ColorBuffer* colorBuffer = nullptr; member
/hardware/google/aemu/host-common/
DMultiDisplay.cpp440 int MultiDisplay::setDisplayColorBuffer(uint32_t displayId, uint32_t colorBuffer) { in setDisplayColorBuffer() argument
453 if (mMultiDisplay[displayId].cb == colorBuffer) { in setDisplayColorBuffer()
457 mMultiDisplay[displayId].cb = colorBuffer; in setDisplayColorBuffer()
467 mMultiDisplay[displayId].cb = colorBuffer; in setDisplayColorBuffer()
476 LOG(VERBOSE) << "setDisplayColorBuffer " << displayId << " cb " << colorBuffer; in setDisplayColorBuffer()
480 int MultiDisplay::getDisplayColorBuffer(uint32_t displayId, uint32_t* colorBuffer) { in getDisplayColorBuffer() argument
488 *colorBuffer = mMultiDisplay[displayId].cb; in getDisplayColorBuffer()
492 int MultiDisplay::getColorBufferDisplay(uint32_t colorBuffer, uint32_t* displayId) { in getColorBufferDisplay() argument
498 if (iter.second.cb == colorBuffer) { in getColorBufferDisplay()
/hardware/google/gfxstream/host/vulkan/
Dvulkan_gfxstream.h31 uint32_t colorBuffer; member
DVkCommonOperations.cpp2808 VK_EXT_MEMORY_HANDLE getColorBufferExtMemoryHandle(uint32_t colorBuffer) { in getColorBufferExtMemoryHandle() argument
2813 auto infoPtr = android::base::find(sVkEmulation->colorBuffers, colorBuffer); in getColorBufferExtMemoryHandle()
2823 bool setColorBufferVulkanMode(uint32_t colorBuffer, uint32_t vulkanMode) { in setColorBufferVulkanMode() argument
2828 auto infoPtr = android::base::find(sVkEmulation->colorBuffers, colorBuffer); in setColorBufferVulkanMode()
2839 MTLTextureRef getColorBufferMTLTexture(uint32_t colorBuffer) { in getColorBufferMTLTexture() argument
2844 auto infoPtr = android::base::find(sVkEmulation->colorBuffers, colorBuffer); in getColorBufferMTLTexture()
DVkDecoderGlobalState.cpp4282 if (!getColorBufferAllocationInfo(importCbInfoPtr->colorBuffer, in on_vkAllocateMemory()
4288 << importCbInfoPtr->colorBuffer; in on_vkAllocateMemory()
4296 fb->invalidateColorBufferForVk(importCbInfoPtr->colorBuffer); in on_vkAllocateMemory()
4302 getColorBufferExtMemoryHandle(importCbInfoPtr->colorBuffer); in on_vkAllocateMemory()
4308 __func__, importCbInfoPtr->colorBuffer); in on_vkAllocateMemory()
4541 memoryInfo.mtlTexture = getColorBufferMTLTexture(importCbInfoPtr->colorBuffer); in on_vkAllocateMemory()
4546 memoryInfo.boundColorBuffer = importCbInfoPtr->colorBuffer; in on_vkAllocateMemory()
/hardware/google/gfxstream/guest/vulkan_enc/
Dvulkan_gfxstream.h31 uint32_t colorBuffer; member
DResourceTracker.cpp3451 importCbInfo.colorBuffer = hostHandle; in on_vkAllocateMemory()
3747 importCbInfo.colorBuffer = buffer_handle; in on_vkAllocateMemory()
3846 importCbInfo.colorBuffer = colorBufferBlob->getResourceHandle(); in on_vkAllocateMemory()

12