/frameworks/base/libs/hwui/ |
D | TextureCache.cpp | 69 void TextureCache::operator()(uint32_t&, Texture*& texture) { in operator ()() argument 71 if (texture) { in operator ()() 72 mSize -= texture->bitmapSize; in operator ()() 74 texture->id, texture->bitmapSize, mSize); in operator ()() 76 ALOGD("Texture deleted, size = %d", texture->bitmapSize); in operator ()() 78 texture->deleteTexture(); in operator ()() 79 delete texture; in operator ()() 115 return entry->texture; in getCachedTexture() 119 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID()); in getCachedTexture() local 121 if (!texture) { in getCachedTexture() [all …]
|
D | PathCache.cpp | 215 void PathCache::operator()(PathDescription& entry, PathTexture*& texture) { in operator ()() argument 216 removeTexture(texture); in operator ()() 223 void PathCache::removeTexture(PathTexture* texture) { in removeTexture() argument 224 if (texture) { in removeTexture() 225 const uint32_t size = texture->width() * texture->height(); in removeTexture() 229 const sp<Task<SkBitmap*> >& task = texture->task(); in removeTexture() 232 texture->clearTask(); in removeTexture() 244 texture->id, size, mSize); in removeTexture() 249 texture->deleteTexture(); in removeTexture() 250 delete texture; in removeTexture() [all …]
|
D | TextDropShadowCache.cpp | 127 void TextDropShadowCache::operator()(ShadowText&, ShadowTexture*& texture) { in operator ()() argument 128 if (texture) { in operator ()() 129 mSize -= texture->objectSize(); in operator ()() 132 ALOGD("Shadow texture deleted, size = %d", texture->bitmapSize); in operator ()() 135 texture->deleteTexture(); in operator ()() 136 delete texture; in operator ()() 151 ShadowTexture* texture = mCache.get(entry); in get() local 153 if (!texture) { in get() 165 texture = new ShadowTexture(caches); in get() 166 texture->left = shadow.penX; in get() [all …]
|
D | GradientCache.cpp | 96 void GradientCache::operator()(GradientCacheEntry&, Texture*& texture) { in operator ()() argument 97 if (texture) { in operator ()() 98 mSize -= texture->objectSize(); in operator ()() 99 texture->deleteTexture(); in operator ()() 100 delete texture; in operator ()() 110 Texture* texture = mCache.get(gradient); in get() local 112 if (!texture) { in get() 113 texture = addLinearGradient(gradient, colors, positions, count); in get() 116 return texture; in get() 152 Texture* texture = new Texture(Caches::getInstance()); in addLinearGradient() local [all …]
|
D | BakedOpDispatcher.cpp | 52 Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(bitmap); in onMergedBitmapOps() local 53 if (!texture) return; in onMergedBitmapOps() 54 const AutoTexture autoCleanup(texture); in onMergedBitmapOps() 82 .setFillTexturePaint(*texture, textureFillFlags, firstState.op->paint, firstState.alpha) in onMergedBitmapOps() 175 Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(firstOp.bitmap); in onMergedPatchOps() local 176 if (!texture) return; in onMergedPatchOps() 177 const AutoTexture autoCleanup(texture); in onMergedPatchOps() 188 .setFillTexturePaint(*texture, textureFillFlags, firstOp.paint, firstState.alpha) in onMergedPatchOps() 211 ShadowTexture* texture = renderer.caches().dropShadowCache.get( in renderTextShadow() local 215 if (!texture) return; in renderTextShadow() [all …]
|
D | GlopBuilder.cpp | 257 || (mOutGlop->fill.texture.texture && mOutGlop->fill.texture.texture->blend) in setFill() 324 GlopBuilder& GlopBuilder::setFillTexturePaint(Texture& texture, in setFillTexturePaint() argument 331 mOutGlop->fill.texture = { &texture, in setFillTexturePaint() 351 || texture.blend in setFillTexturePaint() 374 mOutGlop->fill.texture = { in setFillPaint() 377 mOutGlop->fill.texture = { in setFillPaint() 390 GlopBuilder& GlopBuilder::setFillPathTexturePaint(PathTexture& texture, in setFillPathTexturePaint() argument 396 mOutGlop->fill.texture = { &texture, GL_TEXTURE_2D, GL_INVALID_ENUM, GL_INVALID_ENUM, nullptr }; in setFillPathTexturePaint() 407 GlopBuilder& GlopBuilder::setFillShadowTexturePaint(ShadowTexture& texture, int shadowColor, in setFillShadowTexturePaint() argument 413 mOutGlop->fill.texture = { &texture, GL_TEXTURE_2D, GL_INVALID_ENUM, GL_INVALID_ENUM, nullptr }; in setFillShadowTexturePaint() [all …]
|
D | GpuMemoryTracker.cpp | 125 const Texture* texture = static_cast<Texture*>(obj); in onFrameCompleted() local 126 if (texture->cleanup) { in onFrameCompleted() 128 texture->id(), texture->width(), texture->height()); in onFrameCompleted() 129 freeList.push_back(texture); in onFrameCompleted() 133 for (auto& texture : freeList) { in onFrameCompleted() local 134 const_cast<Texture*>(texture)->deleteTexture(); in onFrameCompleted() 135 delete texture; in onFrameCompleted()
|
D | Layer.h | 98 const float texX = 1.0f / float(texture.mWidth); in setRegionAsRect() 99 const float texY = 1.0f / float(texture.mHeight); in setRegionAsRect() 116 return texture.mWidth; in getWidth() 120 return texture.mHeight; in getHeight() 135 texture.updateSize(width, height, texture.format()); in setSize() 141 texture.blend = blend; in setBlend() 145 return texture.blend; in isBlend() 204 return texture.id(); in getTextureId() 208 return texture; in getTexture() 224 texture.setWrap(wrap, bindTexture, force, renderTarget); [all …]
|
D | Layer.cpp | 43 , texture(caches) in Layer() 49 texture.mWidth = layerWidth; in Layer() 50 texture.mHeight = layerHeight; in Layer() 58 if (stencil || fbo || texture.mId) { in ~Layer() 60 texture.deleteTexture(); in ~Layer() 68 texture.deleteTexture(); in onGlContextLost() 182 if (texture.mId) { in bindTexture() 183 caches.textureState().bindTexture(renderTarget, texture.mId); in bindTexture() 194 if (!texture.mId) { in generateTexture() 195 glGenTextures(1, &texture.mId); in generateTexture() [all …]
|
D | Texture.h | 174 AutoTexture(Texture* texture) in AutoTexture() argument 175 : texture(texture) {} in AutoTexture() 177 if (texture && texture->cleanup) { in ~AutoTexture() 178 texture->deleteTexture(); in ~AutoTexture() 179 delete texture; in ~AutoTexture() local 183 Texture* const texture; variable
|
D | AssetAtlas.h | 56 Texture* texture; 69 return texture->blend ? &atlas.mBlendKey : &atlas.mOpaqueKey; in getMergeId() 73 delete texture; in ~Entry() local 87 Entry(SkPixelRef* pixelRef, Texture* texture, const UvMapper& mapper, in Entry() argument 89 : texture(texture) in Entry()
|
D | OpenGLRenderer.cpp | 1463 Texture* texture = entry ? entry->texture : mCaches.textureCache.get(bitmap); 1464 if (!texture) return; 1466 const AutoTexture autoCleanup(texture); 1481 .setFillTexturePaint(*texture, textureFillFlags, paint, currentSnapshot()->alpha) 1494 Texture* texture = getTexture(bitmap); 1495 if (!texture) return; 1496 const AutoTexture autoCleanup(texture); 1503 .setMeshTexturedUnitQuad(texture->uvMapper) 1504 .setFillTexturePaint(*texture, textureFillFlags, paint, currentSnapshot()->alpha) 1506 .setModelViewMapUnitToRectSnap(Rect(texture->width(), texture->height())) [all …]
|
/frameworks/base/libs/hwui/renderstate/ |
D | TextureState.cpp | 101 void TextureState::bindTexture(GLuint texture) { in bindTexture() argument 102 if (mBoundTextures[mTextureUnit] != texture) { in bindTexture() 103 glBindTexture(GL_TEXTURE_2D, texture); in bindTexture() 104 mBoundTextures[mTextureUnit] = texture; in bindTexture() 108 void TextureState::bindTexture(GLenum target, GLuint texture) { in bindTexture() argument 110 bindTexture(texture); in bindTexture() 115 glBindTexture(target, texture); in bindTexture() 119 void TextureState::deleteTexture(GLuint texture) { in deleteTexture() argument 133 unbindTexture(texture); in deleteTexture() 135 glDeleteTextures(1, &texture); in deleteTexture() [all …]
|
D | RenderState.cpp | 302 if (fill.texture.texture != nullptr) { in render() 303 const Glop::Fill::TextureData& texture = fill.texture; in render() local 307 mCaches->textureState().bindTexture(texture.target, texture.texture->id()); in render() 308 if (texture.clamp != GL_INVALID_ENUM) { in render() 309 texture.texture->setWrap(texture.clamp, false, false, texture.target); in render() 311 if (texture.filter != GL_INVALID_ENUM) { in render() 312 texture.texture->setFilter(texture.filter, false, false, texture.target); in render() 315 if (texture.textureTransform) { in render() 317 GL_FALSE, &texture.textureTransform->data[0]); in render() 346 Texture* texture = (fill.skiaShaderData.skiaShaderType & kBitmap_SkiaShaderType) ? in render() local [all …]
|
D | OffscreenBufferPool.cpp | 42 , texture(caches) { in OffscreenBuffer() 47 texture.resize(width, height, GL_RGBA); in OffscreenBuffer() 48 texture.blend = true; in OffscreenBuffer() 49 texture.setWrap(GL_CLAMP_TO_EDGE); in OffscreenBuffer() 54 const float texX = 1.0f / static_cast<float>(texture.width()); in getTextureCoordinates() 55 const float texY = 1.0f / static_cast<float>(texture.height()); in getTextureCoordinates() 76 const float texX = 1.0f / float(texture.width()); in updateMeshFromRegion() 77 const float texY = 1.0f / float(texture.height()); in updateMeshFromRegion() 106 ATRACE_FORMAT("Destroy %ux%u HW Layer", texture.width(), texture.height()); in ~OffscreenBuffer() 107 texture.deleteTexture(); in ~OffscreenBuffer() [all …]
|
D | TextureState.h | 53 void bindTexture(GLuint texture); 60 void bindTexture(GLenum target, GLuint texture); 67 void deleteTexture(GLuint texture); 78 void unbindTexture(GLuint texture);
|
/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 itemprop="description">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/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
D | GLES20Canvas.java | 582 public void drawTexture(BasicTexture texture, int x, int y, int width, int height) { in drawTexture() argument 586 copyTextureCoordinates(texture, mTempSourceRect); in drawTexture() 588 convertCoordinate(mTempSourceRect, mTempTargetRect, texture); in drawTexture() 589 drawTextureRect(texture, mTempSourceRect, mTempTargetRect); in drawTexture() 592 private static void copyTextureCoordinates(BasicTexture texture, RectF outRect) { in copyTextureCoordinates() argument 595 int right = texture.getWidth(); in copyTextureCoordinates() 596 int bottom = texture.getHeight(); in copyTextureCoordinates() 597 if (texture.hasBorder()) { in copyTextureCoordinates() 607 public void drawTexture(BasicTexture texture, RectF source, RectF target) { in drawTexture() argument 614 convertCoordinate(mTempSourceRect, mTempTargetRect, texture); in drawTexture() [all …]
|
D | GLCanvas.java | 94 BasicTexture texture, int x, int y, int width, int height); in drawTexture() argument 100 public abstract void drawTexture(BasicTexture texture, RectF source, RectF target); in drawTexture() argument 103 public abstract void drawTexture(BasicTexture texture, float[] mTextureTransform, in drawTexture() argument 123 public abstract boolean unloadTexture(BasicTexture texture); in unloadTexture() argument 135 public abstract void beginRenderTarget(RawTexture texture); in beginRenderTarget() argument 147 public abstract void setTextureParameters(BasicTexture texture); in setTextureParameters() argument 156 public abstract void initializeTextureSize(BasicTexture texture, int format, int type); in initializeTextureSize() argument 164 public abstract void initializeTexture(BasicTexture texture, Bitmap bitmap); in initializeTexture() argument 177 public abstract void texSubImage2D(BasicTexture texture, int xOffset, int yOffset, in texSubImage2D() argument
|
/frameworks/base/libs/hwui/font/ |
D | FontCacheHistoryTracker.cpp | 26 log.appendFormat("glyph (texture %p, position: (%d, %d), size: %dx%d, gen: %d)", glyph.texture, in dumpCachedGlyph() 42 log.appendFormat(" cleared cachetexture %p in gen %d\n", glyph.texture, in dumpUploadEntry() 66 entry.glyph.texture = glyphInfo->mCacheTexture; in glyphRendered() 75 void FontCacheHistoryTracker::glyphUploaded(CacheTexture* texture, uint32_t x, uint32_t y, in glyphUploaded() argument 79 glyph.texture = texture; in glyphUploaded() 86 void FontCacheHistoryTracker::glyphsCleared(CacheTexture* texture) { in glyphsCleared() argument 89 glyph.texture = texture; in glyphsCleared()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | Alpha8BitmapActivity.java | 49 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.spot_mask); in BitmapsView() local 50 mBitmap1 = Bitmap.createBitmap(texture.getWidth(), texture.getHeight(), in BitmapsView() 53 canvas.drawBitmap(texture, 0.0f, 0.0f, null); in BitmapsView() 55 texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1); in BitmapsView() 56 BitmapShader shader = new BitmapShader(texture, in BitmapsView() 59 final float width = texture.getWidth() / 3.0f; in BitmapsView() 60 final float height = texture.getHeight() / 3.0f; in BitmapsView()
|
/frameworks/native/opengl/libagl/ |
D | texture.cpp | 36 ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex); 60 memset(c->current.texture[i].v, 0, sizeof(vec4_t)); in ogles_init_texture() 61 c->current.texture[i].Q = 0x10000; in ogles_init_texture() 71 if (c->textures.tmu[i].texture) in ogles_uninit_texture() 72 c->textures.tmu[i].texture->decStrong(c); in ogles_uninit_texture() 83 c->rasterizer.procs.bindTexture(c, &(u.texture->surface)); in validate_tmu() 89 GGL_TEXTURE_WRAP_S, u.texture->wraps); in validate_tmu() 91 GGL_TEXTURE_WRAP_T, u.texture->wrapt); in validate_tmu() 93 GGL_TEXTURE_MIN_FILTER, u.texture->min_filter); in validate_tmu() 95 GGL_TEXTURE_MAG_FILTER, u.texture->mag_filter); in validate_tmu() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | GradientCacheTests.cpp | 33 Texture* texture = cache.get(colors, positions, 3); in RENDERTHREAD_TEST() local 34 ASSERT_TRUE(texture); in RENDERTHREAD_TEST() 35 ASSERT_FALSE(texture->cleanup); in RENDERTHREAD_TEST() 36 ASSERT_EQ((uint32_t) texture->objectSize(), cache.getSize()); in RENDERTHREAD_TEST()
|
D | GlopBuilderTests.cpp | 46 EXPECT_EQ(expectedFill.texture.clamp, builtFill.texture.clamp); in expectFillEq() 47 EXPECT_EQ(expectedFill.texture.filter, builtFill.texture.filter); in expectFillEq() 48 EXPECT_EQ(expectedFill.texture.target, builtFill.texture.target); in expectFillEq() 49 EXPECT_EQ(expectedFill.texture.textureTransform, builtFill.texture.textureTransform); in expectFillEq() 114 glop->fill.texture = { nullptr, GL_INVALID_ENUM, GL_INVALID_ENUM, GL_INVALID_ENUM, nullptr }; in blackUnitQuadGlop() 145 goldenGlop->fill.texture.filter = GL_NEAREST; in RENDERTHREAD_TEST()
|
/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()
|