/frameworks/base/libs/hwui/ |
FontRenderer.cpp | 51 void TextDrawFunctor::draw(CacheTexture& texture, bool linearFiltering) { 53 if (texture.getFormat() == GL_ALPHA) { 69 .setMeshTexturedIndexedQuads(texture.mesh(), texture.meshElementCount()) 70 .setFillTexturePaint(texture.getTexture(), textureFillFlags, paint, bakedState->alpha) 175 // Start from 1; don't deallocate smallest/default texture 222 // choose an appropriate cache texture list for this glyph format 248 // Now copy the bitmap into the cache texture 280 // Large-glyph texture memory is allocated only as needed 469 // Reset to default unpack row length to avoid affecting texture 483 CacheTexture* texture = cacheTextures[i]; local [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GLTextureViewActivity.java | 163 "uniform sampler2D texture;\n" + 165 " gl_FragColor = texture2D(texture, outTexCoords);\n" + 188 int texture = loadTexture(R.drawable.large_photo); local 197 int uniformTexture = glGetUniformLocation(program, "texture"); 200 glBindTexture(GL_TEXTURE_2D, texture); 260 int texture = textures[0]; local 261 glBindTexture(GL_TEXTURE_2D, texture); 277 return texture;
|
/hardware/intel/common/libva/va/glx/ |
va_glx_impl.c | 446 GLenum target; ///< GL target to which the texture is bound 447 GLuint texture; ///< GL texture member in struct:VASurfaceGLX 459 // Create Pixmaps for GLX texture-from-pixmap extension 574 // Bind GLX Pixmap to texture 601 // Release GLX Pixmap from texture 627 // Render GLX Pixmap to texture 657 pSurfaceGLX->texture, 681 // Setup matrices to match the FBO texture dimensions 714 // Check internal texture format is supporte [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
TiledImageRenderer.java | 254 // 2. Decide the tile levels we want to keep as texture (in addition to 264 // The tile levels we want to keep as texture is in the range 269 // We want to use a texture larger than or equal to the display size. 272 // We want to keep one more tile level as texture in addition to what 404 Tile texture = mActiveTiles.valueAt(i); local 405 texture.recycle(); 714 // texture can be re-used for different tiles regardless of the actual
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
TileImageView.java | 201 // 2. Decide the tile levels we want to keep as texture (in addition to 210 // The tile levels we want to keep as texture is in the range 215 // We want to use a texture larger than or equal to the display size. 218 // We want to keep one more tile level as texture in addition to what 377 Tile texture = mActiveTiles.valueAt(i); local 378 texture.recycle(); 700 // texture can be re-used for different tiles regardless of the actual
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
TiledImageRenderer.java | 254 // 2. Decide the tile levels we want to keep as texture (in addition to 264 // The tile levels we want to keep as texture is in the range 269 // We want to use a texture larger than or equal to the display size. 272 // We want to keep one more tile level as texture in addition to what 404 Tile texture = mActiveTiles.valueAt(i); local 405 texture.recycle(); 714 // texture can be re-used for different tiles regardless of the actual
|
/packages/apps/WallpaperPicker/src/com/android/photos/views/ |
TiledImageRenderer.java | 254 // 2. Decide the tile levels we want to keep as texture (in addition to 264 // The tile levels we want to keep as texture is in the range 269 // We want to use a texture larger than or equal to the display size. 272 // We want to keep one more tile level as texture in addition to what 404 Tile texture = mActiveTiles.valueAt(i); local 405 texture.recycle(); 714 // texture can be re-used for different tiles regardless of the actual
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
CameraStreamer.java | 154 TextureSource texture = mTargetTextures.get(context); local 156 if (texture != null) { 157 texture.release(); 166 TextureSource texture = mTargetTextures.get(context); local 167 if (texture == null) { 168 texture = createClientTexture(); 169 mTargetTextures.put(context, texture); 171 return texture; 279 /** The texture the camera streams to */ 316 // Make sure we have texture, shader, and surfacetexture setup for this context 429 TextureSource texture = textureForContext(context); local 700 TextureSource texture = TextureSource.newTexture(); local [all...] |
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/ |
GLClientState.cpp | 700 GLenum GLClientState::setActiveTextureUnit(GLenum texture) 702 GLuint unit = texture - GL_TEXTURE0; 758 GLenum GLClientState::bindTexture(GLenum target, GLuint texture, 763 TextureRec* texrec = getTextureRec(texture); 765 texrec = addTextureRec(texture, target); 768 if (texture && target != texrec->target && 771 ALOGD("%s: issue GL_INVALID_OPERATION: target 0x%x texrectarget 0x%x texture %u", __FUNCTION__, target, texrec->target, texture); 776 m_tex.activeUnit->texture[TEXTURE_2D] = texture; 803 GLuint texture = getBoundTexture(target); local 834 GLuint texture = getBoundTexture(target); local 841 GLuint texture = getBoundTexture(target); local 848 GLuint texture = getBoundTexture(target); local 855 GLuint texture = getBoundTexture(target); local 893 GLuint texture = getBoundTexture(target); local 900 GLuint texture = getBoundTexture(target); local 907 GLuint texture = getBoundTexture(target); local [all...] |
/external/deqp/external/vulkancts/modules/vulkan/image/ |
vktImageLoadStoreTests.cpp | 62 inline VkBufferImageCopy makeBufferImageCopy (const Texture& texture) 64 return image::makeBufferImageCopy(makeExtent3D(texture.layerSize()), texture.numLayers()); 67 tcu::ConstPixelBufferAccess getLayerOrSlice (const Texture& texture, const tcu::ConstPixelBufferAccess access, const int layer) 69 switch (texture.type()) 84 case IMAGE_TYPE_3D: // 3d texture is treated as if depth was the layers 95 const Texture& texture, 1229 const Texture& texture = s_textures[textureNdx]; local 1253 const Texture& texture = s_textures[textureNdx]; local 1278 const Texture& texture = s_textures[textureNdx]; local 1297 const Texture& texture = getTestTexture(imageType); local [all...] |
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
vktPipelineImageSamplingInstance.cpp | 71 MovePtr<TestTexture> texture; local 78 texture = MovePtr<TestTexture>(new TestTexture1D(format, size.x())); 80 texture = MovePtr<TestTexture>(new TestTexture1DArray(format, size.x(), layerCount)); 87 texture = MovePtr<TestTexture>(new TestTexture2D(format, size.x(), size.y())); 95 texture = MovePtr<TestTexture>(new TestTextureCube(format, size.x())); 101 texture = MovePtr<TestTexture>(new TestTextureCubeArray(format, size.x(), layerCount)); 106 texture = MovePtr<TestTexture>(new TestTexture2DArray(format, size.x(), size.y(), layerCount)); 113 texture = MovePtr<TestTexture>(new TestTexture3D(format, size.x(), size.y(), size.z())); 120 return texture; 205 // Create texture images, views and sampler [all...] |
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
vktTextureMipmapTests.cpp | 46 namespace texture namespace in namespace:vkt 60 using namespace texture::util; 178 // Fill texture with colored grid. 190 // Upload texture data. 439 // Fill texture with colored grid. 682 // Fill texture with colored grid. [all...] |
vktTextureTestUtil.cpp | 23 * \brief Texture test utilities. 51 namespace texture namespace in namespace:vkt 60 tcu::Vec4 colorScale; //!< Scale for texture color values. 61 tcu::Vec4 colorBias; //!< Bias for texture color values. 230 case PROGRAM_2D_FLOAT: sampler = "sampler2D"; lookup = "texture(u_sampler, v_texCoord)"; break; 231 case PROGRAM_2D_INT: sampler = "isampler2D"; lookup = "vec4(texture(u_sampler, v_texCoord))"; break; 232 case PROGRAM_2D_UINT: sampler = "usampler2D"; lookup = "vec4(texture(u_sampler, v_texCoord))"; break; 233 case PROGRAM_2D_SHADOW: sampler = "sampler2DShadow"; lookup = "vec4(texture(u_sampler, vec3(v_texCoord, u_ref)), 0.0, 0.0, 1.0)"; break; 234 case PROGRAM_2D_FLOAT_BIAS: sampler = "sampler2D"; lookup = "texture(u_sampler, v_texCoord, u_bias)"; break; 235 case PROGRAM_2D_INT_BIAS: sampler = "isampler2D"; lookup = "vec4(texture(u_sampler, v_texCoord, u_bias))"; break 1681 TestTexture2DSp texture; local 1742 TestTextureCubeSp texture; local [all...] |
vktTextureTestUtil.hpp | 25 * \brief Texture test utilities. 29 * + All TextureTestUtil functions and classes expect texture coordinates 48 namespace texture namespace in namespace:vkt 176 void add2DTexture (const TestTexture2DSp& texture); 179 void addCubeTexture (const TestTextureCubeSp& texture); 182 void add2DArrayTexture (const TestTexture2DArraySp& texture); 185 void add3DTexture (const TestTexture3DSp& texture); 326 } // texture
|
/external/deqp/modules/egl/ |
teglGLES2SharedRenderingPerfTests.cpp | 275 GLuint texture; local 280 gl.genTextures(1, &texture); 282 gl.bindTexture(GL_TEXTURE_2D, texture); 297 return texture; 621 GLuint texture = 0; local 625 m_gl.genTextures(1, &texture); 626 m_gl.bindTexture(GL_TEXTURE_2D, texture); 629 GLU_EXPECT_NO_ERROR(m_gl.getError(), "Creating texture from image"); 631 return texture; 635 m_gl.deleteTextures(1, &texture); [all...] |
/external/deqp/modules/gles2/functional/ |
es2fIntegerStateQueryTests.cpp | 1853 GLuint texture = 0; local [all...] |
es2fTextureUnitTests.cpp | 21 * \brief Texture unit usage tests. 69 // \note Cube map texture size is larger in order to make minifications possible - otherwise would need to display different faces at same time. 247 void makeSafeLods (const vector<IVec2>& textureSizes, const IVec2& viewportSize); // Modifies texture coordinates so that LODs aren't too close to x.5 or 0.0 . 569 int m_numTextures; //!< \note Needed in addition to m_numUnits since same texture may be bound to many texture units. 576 vector<int> m_unitTextures; //!< Which texture is used in a particular unit. 577 vector<int> m_ndx2dOrCube; //!< Index of a texture in either m_textures2d or m_texturesCube, depending on texture type. 621 m_numTextures = m_numUnits; // In most cases use one unit per texture. 623 m_numTextures = rnd.getInt(deMax32(1, m_numUnits - 2), m_numUnits); // Sometimes assign same texture to multiple units 853 const tcu::Texture2D* texture = m_textures2d[ndx2d]; local 875 const tcu::TextureCube* texture = m_texturesCube[ndxCube]; local [all...] |
/external/deqp/modules/gles3/functional/ |
es3fTextureFilteringTests.cpp | 21 * \brief Texture filtering tests. 95 const glu::Texture2D* texture; member in struct:deqp::gles3::Functional::Texture2DFilteringCase::FilterCase 100 : texture(DE_NULL) 105 : texture (tex_) 180 // Fill first gradient texture. 190 // Fill second with grid texture. 284 // Compute texture coordinates. 285 m_testCtx.getLog() << TestLog::Message << "Texture coordinates: " << curCase.minCoord << " -> " << curCase.maxCoord << TestLog::EndMessage; 288 gl.bindTexture (GL_TEXTURE_2D, curCase.texture->getGLTexture()); 312 const bool isHighQuality = verifyTextureResult(m_testCtx, rendered.getAccess(), curCase.texture->getRefTexture() 372 const glu::TextureCube* texture; member in struct:deqp::gles3::Functional::TextureCubeFilteringCase::FilterCase 682 const glu::Texture2DArray* texture; member in struct:deqp::gles3::Functional::Texture2DArrayFilteringCase::FilterCase 948 const glu::Texture3D* texture; member in struct:deqp::gles3::Functional::Texture3DFilteringCase::FilterCase [all...] |
es3fTextureShadowTests.cpp | 21 * \brief Shadow texture lookup tests. 114 // the floating point depth values should be in [0, 1] range as data is clamped during texture upload. Since 179 const glu::Texture2D* texture; member in struct:deqp::gles3::Functional::Texture2DShadowCase::FilterCase 185 : texture (DE_NULL) 191 : texture (tex_) 238 // Fill first gradient texture. 245 // Fill second with grid texture. 347 // Compute texture coordinates. 348 m_testCtx.getLog() << TestLog::Message << "Texture coordinates: " << curCase.minCoord << " -> " << curCase.maxCoord << TestLog::EndMessage; 351 gl.bindTexture (GL_TEXTURE_2D, curCase.texture->getGLTexture()) 430 const glu::TextureCube* texture; member in struct:deqp::gles3::Functional::TextureCubeShadowCase::FilterCase 723 const glu::Texture2DArray* texture; member in struct:deqp::gles3::Functional::Texture2DArrayShadowCase::FilterCase [all...] |
/external/deqp/modules/gles31/functional/ |
es31fNegativeTextureApiTests.cpp | 21 * \brief Negative Texture API tests. 93 ctx.beginSection("GL_INVALID_ENUM is generated if texture is not one of GL_TEXTUREi, where i ranges from 0 to (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1)."); 106 GLuint texture[5]; local 107 ctx.glGenTextures(5, texture); 116 ctx.beginSection("GL_INVALID_OPERATION is generated if texture was previously created with a target that doesn't match that of target."); 117 ctx.glBindTexture(GL_TEXTURE_2D, texture[0]); 119 ctx.glBindTexture(GL_TEXTURE_CUBE_MAP, texture[0]); 121 ctx.glBindTexture(GL_TEXTURE_3D, texture[0]); 123 ctx.glBindTexture(GL_TEXTURE_2D_ARRAY, texture[0]); 126 ctx.glBindTexture(GL_TEXTURE_CUBE_MAP, texture[1]) 937 GLuint texture = 0x1234; local 951 GLuint texture = 0x1234; local 967 GLuint texture = 0x1234; local 1031 GLuint texture = 0x1234; local 1050 GLuint texture = 0x1234; local 1069 GLuint texture = 0x1234; local 1090 GLuint texture[2]; local 1136 GLuint texture = 0x1234; local 1155 GLuint texture[2]; local 1517 deUint32 texture = 0x1234; local 1555 deUint32 texture = 0x1234; local 1650 deUint32 texture = 0x1234; local 1670 deUint32 texture = 0x1234; local 1690 deUint32 texture = 0x1234; local 1711 deUint32 texture = 0x1234; local 1754 GLuint texture = 0x1234; local 1876 GLuint texture = 0x1234; local 1998 GLuint texture = 0x1234; local 2114 GLuint texture = 0x1234; local 2447 deUint32 texture = 0x1234; local 2536 GLuint texture = 0x1234; local 2560 deUint32 texture = 0x1234; local 2581 deUint32 texture = 0x1234; local 2601 deUint32 texture = 0x1234; local 2621 deUint32 texture = 0x1234; local 2832 deUint32 texture = 0x1234; local 2872 deUint32 texture = 0x1234; local 3019 deUint32 texture = 0x1234; local 3073 deUint32 texture = 0x1234; local 3118 GLuint texture = 0x1234; local 3201 GLuint texture = 0x1234; local 3222 GLuint texture = 0x1234; local 3247 GLuint texture = 0x1234; local 3268 GLuint texture[2]; local 3432 deUint32 texture = 0x1234; local 3472 deUint32 texture = 0x1234; local 3488 deUint32 texture = 0x1234; local 3505 deUint32 texture = 0x1234; local 3527 deUint32 texture = 0x1234; local 3550 deUint32 texture = 0x1234; local 3572 deUint32 texture = 0x1234; local 3592 deUint32 texture = 0x1234; local [all...] |
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
lp_bld_sample.c | 30 * Texture sampling -- common code. 57 * Does the given texture wrap mode allow sampling the texture border color? 91 * and texture state. 99 const struct pipe_resource *texture; local 103 if (!sampler || !view || !view->texture) 106 texture = view->texture; 126 state->target = texture->target; 127 state->pot_width = util_is_power_of_two(texture->width0) [all...] |
/external/mesa3d/src/gallium/drivers/r300/ |
r300_state.c | 784 r300_resource(state->cbufs[i]->texture), 789 r300_resource(state->zsbuf->texture), 797 struct pipe_resource *tex = surf->texture; 1459 struct r300_resource *texture; local [all...] |
/external/mesa3d/src/gallium/include/state_tracker/ |
st_api.h | 195 struct pipe_resource *texture; member in struct:st_context_resource 204 struct pipe_resource *texture; member in struct:st_egl_image 368 * Replace the texture image of a texture object at the specified level.
|
/external/swiftshader/src/OpenGL/libGLESv2/ |
libGLESv3.cpp | 24 #include "Texture.h" 673 es2::Texture3D *texture = (target == GL_TEXTURE_3D) ? context->getTexture3D() : context->getTexture2DArray(); local 675 if(!texture) 680 texture->setImage(level, width, height, depth, GetSizedInternalFormat(internalformat, type), type, context->getUnpackInfo(), pixels); 719 es2::Texture3D *texture = (target == GL_TEXTURE_3D) ? context->getTexture3D() : context->getTexture2DArray(); local 723 GLenum validationError = ValidateSubImageParams(false, width, height, depth, xoffset, yoffset, zoffset, target, level, sizedInternalFormat, texture); 726 texture->subImage(level, xoffset, yoffset, zoffset, width, height, depth, sizedInternalFormat, type, context->getUnpackInfo(), pixels); 779 es2::Texture3D *texture = (target == GL_TEXTURE_3D) ? context->getTexture3D() : context->getTexture2DArray(); local 781 GLenum validationError = ValidateSubImageParams(false, width, height, 1, xoffset, yoffset, zoffset, target, level, GL_NONE, texture); 787 GLenum textureFormat = texture->getFormat(target, level) 851 es2::Texture3D *texture = (target == GL_TEXTURE_3D) ? context->getTexture3D() : context->getTexture2DArray(); local 903 es2::Texture3D *texture = (target == GL_TEXTURE_3D) ? context->getTexture3D() : context->getTexture2DArray(); local 3855 es2::Texture2D *texture = context->getTexture2D(); local 3872 es2::TextureCubeMap *texture = context->getTextureCubeMap(); local 3925 es2::Texture3D *texture = context->getTexture3D(); local 3948 es2::Texture3D *texture = context->getTexture2DArray(); local [all...] |
/external/swiftshader/src/Renderer/ |
Context.cpp | 1399 bool texture = textureStage[coordinate].usesTexture(); local 1403 if(texture) 1417 return texture; 1419 return texture; 1421 return (texture && (cube || volume));
|