/frameworks/base/libs/hwui/ |
D | TextureCache.cpp | 106 void TextureCache::operator()(SkBitmap*& bitmap, Texture*& texture) { in operator ()() argument 108 if (texture) { in operator ()() 109 mSize -= texture->bitmapSize; in operator ()() 111 texture->id, texture->bitmapSize, mSize); in operator ()() 113 ALOGD("Texture deleted, size = %d", texture->bitmapSize); in operator ()() 115 glDeleteTextures(1, &texture->id); in operator ()() 116 delete texture; in operator ()() 125 Texture* texture = mCache.get(bitmap); in get() local 127 if (!texture) { in get() 142 texture = new Texture; in get() [all …]
|
D | TextDropShadowCache.cpp | 83 void TextDropShadowCache::operator()(ShadowText& text, ShadowTexture*& texture) { in operator ()() argument 84 if (texture) { in operator ()() 85 mSize -= texture->bitmapSize; in operator ()() 88 ALOGD("Shadow texture deleted, size = %d", texture->bitmapSize); in operator ()() 91 glDeleteTextures(1, &texture->id); in operator ()() 92 delete texture; in operator ()() 107 ShadowTexture* texture = mCache.get(entry); in get() local 109 if (!texture) { in get() 115 texture = new ShadowTexture; in get() 116 texture->left = shadow.penX; in get() [all …]
|
D | GradientCache.cpp | 98 void GradientCache::operator()(GradientCacheEntry& shader, Texture*& texture) { in operator ()() argument 99 if (texture) { in operator ()() 100 const uint32_t size = texture->width * texture->height * GRADIENT_BYTES_PER_PIXEL; in operator ()() 104 if (texture) { in operator ()() 105 glDeleteTextures(1, &texture->id); in operator ()() 106 delete texture; in operator ()() 117 Texture* texture = mCache.get(gradient); in get() local 119 if (!texture) { in get() 120 texture = addLinearGradient(gradient, colors, positions, count); in get() 123 return texture; in get() [all …]
|
D | ShapeCache.cpp | 35 PathTexture* texture = get(entry); in getRoundRect() local 37 if (!texture) { in getRoundRect() 43 texture = addTexture(entry, &path, paint); in getRoundRect() 46 return texture; in getRoundRect() 59 PathTexture* texture = get(entry); in getCircle() local 61 if (!texture) { in getCircle() 65 texture = addTexture(entry, &path, paint); in getCircle() 68 return texture; in getCircle() 81 PathTexture* texture = get(entry); in getOval() local 83 if (!texture) { in getOval() [all …]
|
D | Layer.h | 62 const float texX = 1.0f / float(texture.width); in setRegionAsRect() 63 const float texY = 1.0f / float(texture.height); in setRegionAsRect() 82 return texture.width; in getWidth() 86 return texture.height; in getHeight() 90 texture.width = width; in setSize() 91 texture.height = height; in setSize() 97 texture.blend = blend; in setBlend() 101 return texture.blend; in isBlend() 138 return texture.id; in getTexture() 150 texture.setWrap(wrap, bindTexture, force, renderTarget); [all …]
|
D | ShapeCache.h | 317 void operator()(Entry& path, PathTexture*& texture); 340 void addTexture(const Entry& entry, SkBitmap* bitmap, PathTexture* texture); 357 void removeTexture(PathTexture* texture); 371 void generateTexture(SkBitmap& bitmap, Texture* texture); 480 void ShapeCache<Entry>::operator()(Entry& path, PathTexture*& texture) { in operator() 481 removeTexture(texture); in operator() 489 void ShapeCache<Entry>::removeTexture(PathTexture* texture) { in removeTexture() argument 490 if (texture) { in removeTexture() 491 const uint32_t size = texture->width * texture->height; in removeTexture() 495 mName, texture->id, size, mSize); in removeTexture() [all …]
|
D | SkiaShader.cpp | 89 void SkiaShader::bindTexture(Texture* texture, GLenum wrapS, GLenum wrapT) { in bindTexture() argument 90 glBindTexture(GL_TEXTURE_2D, texture->id); in bindTexture() 91 texture->setWrapST(wrapS, wrapT); in bindTexture() 117 Texture* texture = mTextureCache->get(mBitmap); in describe() local 118 if (!texture) return; in describe() 119 mTexture = texture; in describe() 121 const float width = texture->width; in describe() 122 const float height = texture->height; in describe() 145 Texture* texture = mTexture; in setupProgram() local 147 if (!texture) return; in setupProgram() [all …]
|
D | Vertex.h | 40 float texture[2]; member 45 vertex[0].texture[0] = u; in set() 46 vertex[0].texture[1] = v; in set() 50 vertex[0].texture[0] = u; in setUV() 51 vertex[0].texture[1] = v; in setUV()
|
D | OpenGLRenderer.cpp | 932 setupDrawMesh(&mMeshVertices[0].position[0], &mMeshVertices[0].texture[0]); in drawTextureLayer() 966 &mMeshVertices[0].position[0], &mMeshVertices[0].texture[0], in composeLayerRect() 1021 setupDrawMeshIndices(&mesh[0].position[0], &mesh[0].texture[0]); in composeLayerRegion() 1506 void OpenGLRenderer::setupDrawTexture(GLuint texture) { in setupDrawTexture() argument 1507 bindTexture(texture); in setupDrawTexture() 1512 void OpenGLRenderer::setupDrawExternalTexture(GLuint texture) { in setupDrawExternalTexture() argument 1513 bindExternalTexture(texture); in setupDrawExternalTexture() 1617 void OpenGLRenderer::drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint) { in drawAlphaBitmap() argument 1645 setupDrawModelView(x, y, x + texture->width, y + texture->height, ignoreTransform); in drawAlphaBitmap() 1647 setupDrawTexture(texture->id); in drawAlphaBitmap() [all …]
|
D | PathCache.cpp | 97 PathTexture* texture = mCache.get(entry); in get() local 102 if (!texture) { in get() 103 texture = addTexture(entry, path, paint); in get() 104 } else if (path->getGenerationID() != texture->generation) { in get() 106 texture = addTexture(entry, path, paint); in get() 109 return texture; in get()
|
D | OpenGLRenderer.h | 513 status_t drawShape(float left, float top, const PathTexture* texture, SkPaint* paint); 524 void drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint); 547 void drawTextureRect(float left, float top, float right, float bottom, GLuint texture, 562 Texture* texture, SkPaint* paint); 586 void drawTextureMesh(float left, float top, float right, float bottom, GLuint texture, 632 void drawPathTexture(const PathTexture* texture, float x, float y, SkPaint* paint); 651 inline void bindTexture(GLuint texture) { in bindTexture() argument 652 glBindTexture(GL_TEXTURE_2D, texture); in bindTexture() 659 inline void bindExternalTexture(GLuint texture) { in bindExternalTexture() argument 660 glBindTexture(GL_TEXTURE_EXTERNAL_OES, texture); in bindExternalTexture() [all …]
|
/frameworks/base/docs/html/guide/topics/manifest/ |
D | supports-gl-texture-element.jd | 1 page.title=<supports-gl-texture> 11 to the texture compression formats that they support, to ensure that 13 properly. You can use texture compression filtering 17 Google Play uses <code><supports-gl-texture></code> elements as 18 the basis for filtering, please read <a href="#market-texture-filtering">Google 19 Play and texture compression filtering</a>, below.</p> 28 <supports-gl-texture 37 <dd>Declares a single GL texture compression format that is supported by 40 <p>An application "supports" a GL texture compression format if it is capable of 41 providing texture assets that are compressed in that format, once the [all …]
|
/frameworks/native/opengl/libagl/ |
D | texture.cpp | 33 ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex); 57 memset(c->current.texture[i].v, 0, sizeof(vec4_t)); in ogles_init_texture() 58 c->current.texture[i].Q = 0x10000; in ogles_init_texture() 68 if (c->textures.tmu[i].texture) in ogles_uninit_texture() 69 c->textures.tmu[i].texture->decStrong(c); in ogles_uninit_texture() 80 c->rasterizer.procs.bindTexture(c, &(u.texture->surface)); in validate_tmu() 86 GGL_TEXTURE_WRAP_S, u.texture->wraps); in validate_tmu() 88 GGL_TEXTURE_WRAP_T, u.texture->wrapt); in validate_tmu() 90 GGL_TEXTURE_MIN_FILTER, u.texture->min_filter); in validate_tmu() 92 GGL_TEXTURE_MAG_FILTER, u.texture->mag_filter); in validate_tmu() [all …]
|
D | primitives.cpp | 394 array_t const * const texcoordArray = c->arrays.texture; in fetch_texcoord_impl() 397 if (!(c->rasterizer.state.texture[i].enable)) in fetch_texcoord_impl() 409 vec4_t& coords = v->texture[i]; in fetch_texcoord_impl() 416 const transform_t& tr = c->transforms.texture[i].transform; in fetch_texcoord_impl() 486 if (!c->rasterizer.state.texture[i].enable) in primitive_point() 491 if (c->rasterizer.state.texture[i].s_wrap == GGL_CLAMP) { in primitive_point() 492 int width = c->textures.tmu[i].texture->surface.width; in primitive_point() 493 itt[0] = v->texture[i].S * width; in primitive_point() 496 if (c->rasterizer.state.texture[i].t_wrap == GGL_CLAMP) { in primitive_point() 497 int height = c->textures.tmu[i].texture->surface.height; in primitive_point() [all …]
|
D | array.cpp | 114 c->arrays.texture[i].size = 4; in ogles_init_array() 115 c->arrays.texture[i].type = GL_FLOAT; in ogles_init_array() 146 memcpy(v, c->current.texture[c->arrays.tmu].v, sizeof(vec4_t)); in currentTexCoord() 437 case GL_TEXTURE_COORD_ARRAY: a = &c->arrays.texture[tmu]; break; in enableDisableClientState() 1054 if (c->rasterizer.state.texture[i].enable) in clipVertexT() 1055 clipVec4(nv->texture[i], t, s->texture[i], p->texture[i]); in clipVertexT() 1183 am.texture[i].fetch = currentTexCoord; in validate_arrays() 1184 if (c->rasterizer.state.texture[i].enable) { in validate_arrays() 1187 if (am.texture[i].enable) { in validate_arrays() 1188 am.texture[i].resolve(); in validate_arrays() [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | ETC1Util.java | 65 int fallbackFormat, int fallbackType, ETC1Texture texture) { in loadTexture() argument 74 int width = texture.getWidth(); in loadTexture() 75 int height = texture.getHeight(); in loadTexture() 76 Buffer data = texture.getData(); in loadTexture() 206 public static void writeTexture(ETC1Texture texture, OutputStream output) throws IOException { in writeTexture() argument 207 ByteBuffer dataBuffer = texture.getData(); in writeTexture() 210 int width = texture.getWidth(); in writeTexture() 211 int height = texture.getHeight(); in writeTexture()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | AdvancedBlendActivity.java | 63 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in ShadersView() local 64 mTexWidth = texture.getWidth(); in ShadersView() 65 mTexHeight = texture.getHeight(); in ShadersView() 69 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR, in ShadersView() 75 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR, in ShadersView()
|
D | MoreShadersActivity.java | 64 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in ShadersView() local 65 mTexWidth = texture.getWidth(); in ShadersView() 66 mTexHeight = texture.getHeight(); in ShadersView() 70 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR, in ShadersView() 76 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR, in ShadersView()
|
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
D | CarouselRS.java | 725 item.texture = allocationFromPool(n, bitmap, MIPMAP); in setTexture() 727 if (item.texture != null) { in setTexture() 729 item.texture = null; in setTexture() 733 mScript.invoke_setTexture(n, item.texture); in setTexture() 773 if (eraseCurrent && item.texture != null) { in invalidateTexture() 777 item.texture.destroy(); in invalidateTexture() 778 item.texture = null; in invalidateTexture() 850 Allocation texture = null; in setBackgroundTexture() local 852 texture = Allocation.createFromBitmap(mRS, bitmap, in setBackgroundTexture() 855 mScript.set_backgroundTexture(texture); in setBackgroundTexture() [all …]
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcRects.cpp | 161 sp<GraphicBuffer> texture; member in Rectangle 320 layer->handle = it->texture->handle; in main() 510 rect.texture = new GraphicBuffer(rect.sourceDim.width(), in parseRect() 513 if ((rv = rect.texture->initCheck()) != NO_ERROR) { in parseRect() 520 hwcTestFillColor(rect.texture.get(), rect.color, rect.alpha); in parseRect() 524 rect.texture.get(), rect.texture->handle, format->desc, in parseRect()
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
D | Texture2D.java | 68 mData.texture = tex != null ? tex : SceneManager.getDefaultTex2D(); in setTexture() 70 mField.set_texture(0, mData.texture, true); in setTexture() 101 mData.texture = SceneManager.getDefaultTex2D(); in getRsData()
|
D | TextureCube.java | 69 mData.texture = tex != null ? tex : SceneManager.getDefaultTexCube(); in setTexture() 71 mField.set_texture(0, mData.texture, true); in setTexture() 102 mData.texture = SceneManager.getDefaultTexCube(); in getRsData()
|
D | TextureRenderTarget.java | 41 mData.texture = tex; in setTexture() 43 mField.set_texture(0, mData.texture, true); in setTexture()
|
/frameworks/base/docs/html/guide/topics/graphics/ |
D | opengl.jd | 187 <li><strong>Texture compression requirements</strong> - If your application uses texture 189 using <a href="{@docRoot}guide/topics/manifest/supports-gl-texture-element.html">{@code 190 <supports-gl-texture>}</a>. For more information about available texture compression 193 <p>Declaring texture compression requirements in your manifest hides your application from users 195 information on how Google Play filtering works for texture compressions, see the <a 196 href="{@docRoot}guide/topics/manifest/supports-gl-texture-element.html#market-texture-filtering"> 197 Google Play and texture compression filtering</a> section of the {@code 198 <supports-gl-texture>} documentation.</p> 433 texture compression, see the <a 441 <p class="note"><b>Note:</b> The ETC1 texture compression format does not support textures with an [all …]
|
/frameworks/native/opengl/libs/GLES2/ |
D | gl2ext_api.in | 37 …Texture3DOES)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLi… 38 CALL_GL_API(glFramebufferTexture3DOES, target, attachment, textarget, texture, level, zoffset); 118 …ltisampleEXT)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLs… 119 …CALL_GL_API(glFramebufferTexture2DMultisampleEXT, target, attachment, textarget, texture, level, s… 259 void API_ENTRY(glTextureStorage1DEXT)(GLuint texture, GLenum target, GLsizei levels, GLenum interna… 260 CALL_GL_API(glTextureStorage1DEXT, texture, target, levels, internalformat, width); 262 void API_ENTRY(glTextureStorage2DEXT)(GLuint texture, GLenum target, GLsizei levels, GLenum interna… 263 CALL_GL_API(glTextureStorage2DEXT, texture, target, levels, internalformat, width, height); 265 void API_ENTRY(glTextureStorage3DEXT)(GLuint texture, GLenum target, GLsizei levels, GLenum interna… 266 … CALL_GL_API(glTextureStorage3DEXT, texture, target, levels, internalformat, width, height, depth); [all …]
|