Home
last modified time | relevance | path

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

/frameworks/native/cmds/flatland/
DComposers.cpp46 bool blit(GLuint texName, const float* texMatrix, in blit() argument
49 return modBlit(texName, texMatrix, modColor, x, y, w, h); in blit()
52 bool modBlit(GLuint texName, const float* texMatrix, float* modColor, in modBlit() argument
87 glBindTexture(GL_TEXTURE_EXTERNAL_OES, texName); in modBlit()
149 virtual bool compose(GLuint texName, const sp<GLConsumer>& glc) { in opaque() argument
158 return mBlitter.blit(texName, texMatrix, x, y, w, h); in opaque()
173 virtual bool compose(GLuint texName, const sp<GLConsumer>& glc) { in opaqueShrink() argument
190 return mBlitter.blit(texName, texMatrix, x, y, w, h); in opaqueShrink()
205 virtual bool compose(GLuint texName, const sp<GLConsumer>& glc) { in blend() argument
221 result = mBlitter.modBlit(texName, texMatrix, modColor, in blend()
[all …]
DFlatland.h52 virtual bool compose(GLuint texName, const sp<GLConsumer>& glc) = 0;
DMain.cpp401 GLuint texName; in setUp() local
403 &texName); in setUp()
/frameworks/base/graphics/java/android/graphics/
DSurfaceTexture.java120 public SurfaceTexture(int texName) { in SurfaceTexture() argument
121 this(texName, false); in SurfaceTexture()
141 public SurfaceTexture(int texName, boolean singleBufferMode) { in SurfaceTexture() argument
144 nativeInit(false, texName, singleBufferMode, new WeakReference<SurfaceTexture>(this)); in SurfaceTexture()
295 public void attachToGLContext(int texName) { in attachToGLContext() argument
296 int err = nativeAttachToGLContext(texName); in attachToGLContext()
423 private native void nativeInit(boolean isDetached, int texName, in nativeInit() argument
435 private native int nativeAttachToGLContext(int texName); in nativeAttachToGLContext() argument
/frameworks/av/cmds/screenrecord/
DProgram.cpp203 status_t Program::blit(GLuint texName, const float* texMatrix, in blit() argument
205 ALOGV("Program::blit %d xy=%d,%d wh=%d,%d", texName, x, y, w, h); in blit()
221 err = beforeDraw(texName, texMatrix, pos, uv, invert); in blit()
229 status_t Program::drawTriangles(GLuint texName, const float* texMatrix, in drawTriangles() argument
231 ALOGV("Program::drawTriangles texName=%d", texName); in drawTriangles()
235 err = beforeDraw(texName, texMatrix, vertices, texes, false); in drawTriangles()
243 status_t Program::beforeDraw(GLuint texName, const float* texMatrix, in beforeDraw() argument
273 glBindTexture(GL_TEXTURE_EXTERNAL_OES, texName); in beforeDraw()
276 glBindTexture(GL_TEXTURE_2D, texName); in beforeDraw()
DProgram.h56 status_t blit(GLuint texName, const float* texMatrix,
61 status_t drawTriangles(GLuint texName, const float* texMatrix,
71 status_t beforeDraw(GLuint texName, const float* texMatrix,
/frameworks/native/libs/renderengine/tests/
DRenderEngineThreadedTest.cpp59 uint32_t texName; in TEST_F() local
60 EXPECT_CALL(*mRenderEngine, genTextures(1, &texName)); in TEST_F()
61 mThreadedRE->genTextures(1, &texName); in TEST_F()
65 uint32_t texName; in TEST_F() local
66 EXPECT_CALL(*mRenderEngine, deleteTextures(1, &texName)); in TEST_F()
67 mThreadedRE->deleteTextures(1, &texName); in TEST_F()
DRenderEngineTest.cpp312 for (uint32_t texName : mTexNames) { in ~RenderEngineTest() local
313 mRE->deleteTextures(1, &texName); in ~RenderEngineTest()
315 EXPECT_FALSE(mGLESRE->isTextureNameKnownForTesting(texName)); in ~RenderEngineTest()
723 uint32_t texName; in fillColor() local
724 fixture->mRE->genTextures(1, &texName); in fillColor()
725 fixture->mTexNames.push_back(texName); in fillColor()
745 layer.source.buffer.textureName = texName; in fillColor()
1294 uint32_t texName; in fillRedBufferTextureTransform() local
1295 RenderEngineTest::mRE->genTextures(1, &texName); in fillRedBufferTextureTransform()
1296 this->mTexNames.push_back(texName); in fillRedBufferTextureTransform()
[all …]
/frameworks/av/media/libstagefright/renderfright/tests/
DRenderEngineThreadedTest.cpp54 uint32_t texName; in TEST_F() local
55 EXPECT_CALL(*mRenderEngine, genTextures(1, &texName)); in TEST_F()
56 mThreadedRE->genTextures(1, &texName); in TEST_F()
60 uint32_t texName; in TEST_F() local
61 EXPECT_CALL(*mRenderEngine, deleteTextures(1, &texName)); in TEST_F()
62 mThreadedRE->deleteTextures(1, &texName); in TEST_F()
DRenderEngineTest.cpp84 for (uint32_t texName : mTexNames) { in ~RenderEngineTest() local
85 sRE->deleteTextures(1, &texName); in ~RenderEngineTest()
86 EXPECT_FALSE(sRE->isTextureNameKnownForTesting(texName)); in ~RenderEngineTest()
414 uint32_t texName; in fillColor() local
415 fixture->sRE->genTextures(1, &texName); in fillColor()
416 fixture->mTexNames.push_back(texName); in fillColor()
436 layer.source.buffer.textureName = texName; in fillColor()
808 uint32_t texName; in fillRedBufferTextureTransform() local
809 RenderEngineTest::sRE->genTextures(1, &texName); in fillRedBufferTextureTransform()
810 this->mTexNames.push_back(texName); in fillRedBufferTextureTransform()
[all …]
/frameworks/base/native/android/
Dsurface_texture.cpp26 int ASurfaceTexture_attachToGLContext(ASurfaceTexture* st, uint32_t texName) { in ASurfaceTexture_attachToGLContext() argument
27 return ASurfaceTexture_routeAttachToGLContext(st, texName); in ASurfaceTexture_attachToGLContext()
/frameworks/native/libs/gui/tests/
DTextureRenderer.cpp30 TextureRenderer::TextureRenderer(GLuint texName, in TextureRenderer() argument
31 const sp<GLConsumer>& st) : mTexName(texName), mST(st), mPgm(0), in TextureRenderer()
DTextureRenderer.h30 TextureRenderer(GLuint texName, const sp<GLConsumer>& st);
/frameworks/av/media/libstagefright/renderfright/threaded/
DRenderEngineThreaded.cpp178 void RenderEngineThreaded::bindExternalTextureImage(uint32_t texName, const Image& image) { in bindExternalTextureImage() argument
184 [&resultPromise, texName, &image](renderengine::RenderEngine& instance) { in bindExternalTextureImage()
186 instance.bindExternalTextureImage(texName, image); in bindExternalTextureImage()
194 status_t RenderEngineThreaded::bindExternalTextureBuffer(uint32_t texName, in bindExternalTextureBuffer() argument
202 [&resultPromise, texName, &buffer, &fence](renderengine::RenderEngine& instance) { in bindExternalTextureBuffer()
204 status_t status = instance.bindExternalTextureBuffer(texName, buffer, fence); in bindExternalTextureBuffer()
DRenderEngineThreaded.h52 void bindExternalTextureImage(uint32_t texName, const Image& image) override;
53 status_t bindExternalTextureBuffer(uint32_t texName, const sp<GraphicBuffer>& buffer,
/frameworks/av/media/libstagefright/renderfright/gl/
DGLESRenderEngine.h63 void bindExternalTextureImage(uint32_t texName, const Image& image) override;
64 status_t bindExternalTextureBuffer(uint32_t texName, const sp<GraphicBuffer>& buffer,
91 bool isTextureNameKnownForTesting(uint32_t texName);
94 std::optional<uint64_t> getBufferIdForTextureNameForTesting(uint32_t texName);
DGLESRenderEngine.cpp612 void GLESRenderEngine::bindExternalTextureImage(uint32_t texName, const Image& image) { in bindExternalTextureImage() argument
617 glBindTexture(target, texName); in bindExternalTextureImage()
623 status_t GLESRenderEngine::bindExternalTextureBuffer(uint32_t texName, in bindExternalTextureBuffer() argument
661 bindExternalTextureImage(texName, *createImage()); in bindExternalTextureBuffer()
665 bindExternalTextureImage(texName, *cachedImage->second); in bindExternalTextureBuffer()
666 mTextureView.insert_or_assign(texName, buffer->getId()); in bindExternalTextureBuffer()
1661 bool GLESRenderEngine::isTextureNameKnownForTesting(uint32_t texName) { in isTextureNameKnownForTesting() argument
1662 const auto& entry = mTextureView.find(texName); in isTextureNameKnownForTesting()
1666 std::optional<uint64_t> GLESRenderEngine::getBufferIdForTextureNameForTesting(uint32_t texName) { in getBufferIdForTextureNameForTesting() argument
1667 const auto& entry = mTextureView.find(texName); in getBufferIdForTextureNameForTesting()
/frameworks/native/libs/renderengine/gl/
DGLESRenderEngine.h82 bool isTextureNameKnownForTesting(uint32_t texName);
85 std::optional<uint64_t> getBufferIdForTextureNameForTesting(uint32_t texName);
143 void bindExternalTextureImage(uint32_t texName, const Image& image);
144 void bindExternalTextureBuffer(uint32_t texName, const sp<GraphicBuffer>& buffer,
DGLESRenderEngine.cpp673 void GLESRenderEngine::bindExternalTextureImage(uint32_t texName, const Image& image) { in bindExternalTextureImage() argument
678 glBindTexture(target, texName); in bindExternalTextureImage()
684 void GLESRenderEngine::bindExternalTextureBuffer(uint32_t texName, const sp<GraphicBuffer>& buffer, in bindExternalTextureBuffer() argument
718 bindExternalTextureImage(texName, *createImage()); in bindExternalTextureBuffer()
722 bindExternalTextureImage(texName, *cachedImage->second); in bindExternalTextureBuffer()
723 mTextureView.insert_or_assign(texName, buffer->getId()); in bindExternalTextureBuffer()
1761 bool GLESRenderEngine::isTextureNameKnownForTesting(uint32_t texName) { in isTextureNameKnownForTesting() argument
1762 const auto& entry = mTextureView.find(texName); in isTextureNameKnownForTesting()
1766 std::optional<uint64_t> GLESRenderEngine::getBufferIdForTextureNameForTesting(uint32_t texName) { in getBufferIdForTextureNameForTesting() argument
1767 const auto& entry = mTextureView.find(texName); in getBufferIdForTextureNameForTesting()
/frameworks/native/include/android/
Dsurface_texture.h103 int ASurfaceTexture_attachToGLContext(ASurfaceTexture* st, uint32_t texName) __INTRODUCED_IN(28);
/frameworks/native/libs/nativedisplay/include/surfacetexture/
Dsurface_texture_platform.h40 int ASurfaceTexture_routeAttachToGLContext(ASurfaceTexture* st, uint32_t texName);
/frameworks/base/core/jni/
Dandroid_graphics_SurfaceTexture.cpp235 jint texName, jboolean singleBufferMode, jobject weakThiz) in SurfaceTexture_init() argument
250 surfaceTexture = new SurfaceTexture(consumer, texName, in SurfaceTexture_init()
260 (isDetached ? 0 : texName), in SurfaceTexture_init()
/frameworks/native/libs/nativedisplay/surfacetexture/
Dsurface_texture.cpp155 int ASurfaceTexture_routeAttachToGLContext(ASurfaceTexture* st, uint32_t texName) { in ASurfaceTexture_routeAttachToGLContext() argument
156 return ASurfaceTexture_attachToGLContext(st, texName); in ASurfaceTexture_routeAttachToGLContext()
/frameworks/av/media/libstagefright/renderfright/include/renderengine/
DRenderEngine.h96 virtual void bindExternalTextureImage(uint32_t texName, const Image& image) = 0;
100 virtual status_t bindExternalTextureBuffer(uint32_t texName, const sp<GraphicBuffer>& buffer,
/frameworks/base/rs/java/android/renderscript/
DProgram.java359 public BaseProgramBuilder addTexture(TextureType texType, String texName) in addTexture() argument
365 mTextureNames[mTextureCount] = texName; in addTexture()