Searched defs:texture (Results 1 - 25 of 71) sorted by path

123

/frameworks/av/cmds/stagefright/
H A Dstagefright.cpp621 fprintf(stderr, " -T allocate buffers from a surface texture\n");
961 sp<GLConsumer> texture = new GLConsumer(consumer, 0 /* tex */, local
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp105 status_t BootAnimation::initTexture(Texture* texture, AssetManager& assets, argument
125 texture->w = w;
126 texture->h = h;
128 glGenTextures(1, &texture->name);
129 glBindTexture(GL_TEXTURE_2D, texture->name);
176 // Release it now as the texture is already loaded and the memory used for
459 ALOGE("Clock texture is too small; abandoning boot animation clock");
494 // Crop the texture to only the pixels in the current glyph
/frameworks/base/core/jni/
H A Dandroid_opengl_GLES10.cpp445 /* void glActiveTexture ( GLenum texture ) */
448 (JNIEnv *_env, jobject _this, jint texture) {
450 (GLenum)texture
474 /* void glBindTexture ( GLenum target, GLuint texture ) */
477 (JNIEnv *_env, jobject _this, jint target, jint texture) {
480 (GLuint)texture
554 /* void glClientActiveTexture ( GLenum texture ) */
557 (JNIEnv *_env, jobject _this, jint texture) {
559 (GLenum)texture
447 android_glActiveTexture__I(JNIEnv *_env, jobject _this, jint texture) argument
476 android_glBindTexture__II(JNIEnv *_env, jobject _this, jint target, jint texture) argument
556 android_glClientActiveTexture__I(JNIEnv *_env, jobject _this, jint texture) argument
H A Dandroid_opengl_GLES11.cpp2409 /* GLboolean glIsTexture ( GLuint texture ) */
2412 (JNIEnv *_env, jobject _this, jint texture) {
2415 (GLuint)texture
2411 android_glIsTexture__I(JNIEnv *_env, jobject _this, jint texture) argument
H A Dandroid_opengl_GLES11Ext.cpp2758 /* void glFramebufferTexture2DOES ( GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level ) */
2761 (JNIEnv *_env, jobject _this, jint target, jint attachment, jint textarget, jint texture, jint level) {
2766 (GLuint)texture,
2760 android_glFramebufferTexture2DOES__IIIII(JNIEnv *_env, jobject _this, jint target, jint attachment, jint textarget, jint texture, jint level) argument
H A Dandroid_opengl_GLES20.cpp445 /* void glActiveTexture ( GLenum texture ) */
448 (JNIEnv *_env, jobject _this, jint texture) {
450 (GLenum)texture
527 /* void glBindTexture ( GLenum target, GLuint texture ) */
530 (JNIEnv *_env, jobject _this, jint target, jint texture) {
533 (GLuint)texture
1391 /* void glFramebufferTexture2D ( GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level ) */
1394 (JNIEnv *_env, jobject _this, jint target, jint attachment, jint textarget, jint texture, jint level) {
1399 (GLuint)texture,
4031 /* GLboolean glIsTexture ( GLuint texture ) */
447 android_glActiveTexture__I(JNIEnv *_env, jobject _this, jint texture) argument
529 android_glBindTexture__II(JNIEnv *_env, jobject _this, jint target, jint texture) argument
1393 android_glFramebufferTexture2D__IIIII(JNIEnv *_env, jobject _this, jint target, jint attachment, jint textarget, jint texture, jint level) argument
4033 android_glIsTexture__I(JNIEnv *_env, jobject _this, jint texture) argument
[all...]
H A Dandroid_opengl_GLES30.cpp1549 /* void glFramebufferTextureLayer ( GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer ) */
1552 (JNIEnv *_env, jobject _this, jint target, jint attachment, jint texture, jint level, jint layer) {
1556 (GLuint)texture,
1551 android_glFramebufferTextureLayer__IIIII(JNIEnv *_env, jobject _this, jint target, jint attachment, jint texture, jint level, jint layer) argument
H A Dandroid_opengl_GLES31.cpp2841 /* void glBindImageTexture ( GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format ) */
2844 (JNIEnv *_env, jobject _this, jint unit, jint texture, jint level, jboolean layered, jint layer, jint access, jint format) {
2847 (GLuint)texture,
2843 android_glBindImageTexture__IIIZIII(JNIEnv *_env, jobject _this, jint unit, jint texture, jint level, jboolean layered, jint layer, jint access, jint format) argument
H A Dandroid_opengl_GLES31Ext.cpp832 /* void glFramebufferTextureEXT ( GLenum target, GLenum attachment, GLuint texture, GLint level ) */
835 (JNIEnv *_env, jobject _this, jint target, jint attachment, jint texture, jint level) {
839 (GLuint)texture,
834 android_glFramebufferTextureEXT__IIII(JNIEnv *_env, jobject _this, jint target, jint attachment, jint texture, jint level) argument
H A Dandroid_opengl_GLES32.cpp976 /* void glFramebufferTexture ( GLenum target, GLenum attachment, GLuint texture, GLint level ) */
979 (JNIEnv *_env, jobject _this, jint target, jint attachment, jint texture, jint level) {
983 (GLuint)texture,
978 android_glFramebufferTexture__IIII(JNIEnv *_env, jobject _this, jint target, jint attachment, jint texture, jint level) argument
H A Dcom_google_android_gles_jni_GLImpl.cpp265 /* void glActiveTexture ( GLenum texture ) */
268 (JNIEnv *_env, jobject _this, jint texture) {
270 (GLenum)texture
294 /* void glBindTexture ( GLenum target, GLuint texture ) */
297 (JNIEnv *_env, jobject _this, jint target, jint texture) {
300 (GLuint)texture
374 /* void glClientActiveTexture ( GLenum texture ) */
377 (JNIEnv *_env, jobject _this, jint texture) {
379 (GLenum)texture
6088 /* GLboolean glIsTexture ( GLuint texture ) */
267 android_glActiveTexture__I(JNIEnv *_env, jobject _this, jint texture) argument
296 android_glBindTexture__II(JNIEnv *_env, jobject _this, jint target, jint texture) argument
376 android_glClientActiveTexture__I(JNIEnv *_env, jobject _this, jint texture) argument
6090 android_glIsTexture__I(JNIEnv *_env, jobject _this, jint texture) argument
7546 android_glFramebufferTexture2DOES__IIIII(JNIEnv *_env, jobject _this, jint target, jint attachment, jint textarget, jint texture, jint level) argument
[all...]
/frameworks/base/libs/hwui/
H A DAssetAtlas.cpp71 return result != mEntries.end() ? result->second->texture : nullptr;
75 * Delegates changes to wrapping and filtering to the base atlas texture
117 Texture* texture = new DelegateTexture(caches, mTexture); local
118 texture->blend = !SkAlphaTypeIsOpaque(pixelRef->info().alphaType());
119 texture->wrap(mTexture->id(), pixelRef->info().width(),
122 std::unique_ptr<Entry> entry(new Entry(pixelRef, texture, mapper, *this));
123 texture->uvMapper = &entry->uvMapper;
H A DAssetAtlas.h39 * texture. Each bitmap is associated with a location, defined in pixels,
41 * an external texture using the EGLImageKHR extension.
46 * Entry representing the texture and uvMapper of a PixelRef in the
52 * A "virtual texture" object that represents the texture
53 * this entry belongs to. This texture should never be
56 Texture* texture; member in class:android::uirenderer::AssetAtlas::Entry
59 * Maps texture coordinates in the [0..1] range into the
69 return texture->blend ? &atlas.mBlendKey : &atlas.mOpaqueKey;
73 delete texture;
87 Entry(SkPixelRef* pixelRef, Texture* texture, const UvMapper& mapper, const AssetAtlas& atlas) argument
[all...]
H A DBakedOpDispatcher.cpp52 Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(bitmap); local
53 if (!texture) return;
54 const AutoTexture autoCleanup(texture);
65 // calculate unclipped bounds, since they'll determine texture coordinates
82 .setFillTexturePaint(*texture, textureFillFlags, firstState.op->paint, firstState.alpha)
175 Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(firstOp.bitmap); local
176 if (!texture) return;
177 const AutoTexture autoCleanup(texture);
211 ShadowTexture* texture = renderer.caches().dropShadowCache.get( local
374 renderPathTexture(BakedOpRenderer& renderer, const BakedOpState& state, float xOffset, float yOffset, PathTexture& texture, const SkPaint& paint) argument
404 PathTexture* texture = renderer.caches().pathCache.getArc( local
427 Texture* texture = renderer.getTexture(op.bitmap); local
460 Texture* texture = renderer.renderState().assetAtlas().getEntryTexture(op.bitmap->pixelRef()); local
519 Texture* texture = renderer.getTexture(op.bitmap); local
573 PathTexture* texture = renderer.caches().pathCache.getOval( local
607 Texture* texture = entry ? entry->texture : renderer.caches().textureCache.get(op.bitmap); local
624 PathTexture* texture = renderer.caches().pathCache.get(op.path, op.paint); local
651 PathTexture* texture = renderer.caches().pathCache.getRect( local
685 PathTexture* texture = renderer.caches().pathCache.getRoundRect( local
[all...]
H A DBakedOpRenderer.cpp64 // attach the texture to the FBO
66 offscreenBuffer->texture.id(), 0);
73 offscreenBuffer->texture.id(),
74 offscreenBuffer->texture.width(),
75 offscreenBuffer->texture.height());
96 // Detach the texture from the FBO
109 mCaches.textureState().bindTexture(buffer->texture.id());
185 Texture* texture = mRenderState.assetAtlas().getEntryTexture(bitmap->pixelRef()); local
186 if (!texture) {
189 return texture;
[all...]
H A DDeferredLayerUpdater.h61 ANDROID_API void setSurfaceTexture(const sp<GLConsumer>& texture, bool needsAttach) { argument
62 if (texture.get() != mSurfaceTexture.get()) {
64 mSurfaceTexture = texture;
66 GLenum target = texture->getCurrentTextureTarget();
H A DFontRenderer.cpp59 void TextDrawFunctor::draw(CacheTexture& texture, bool linearFiltering) { argument
61 if (texture.getFormat() == GL_ALPHA) {
73 .setMeshTexturedIndexedQuads(texture.mesh(), texture.meshElementCount())
74 .setFillTexturePaint(texture.getTexture(), textureFillFlags, paint, bakedState->alpha)
83 .setMeshTexturedIndexedQuads(texture.mesh(), texture.meshElementCount())
84 .setFillTexturePaint(texture.getTexture(), textureFillFlags, paint, renderer->currentSnapshot()->alpha)
181 // Start from 1; don't deallocate smallest/default texture
225 // choose an appropriate cache texture lis
483 CacheTexture* texture = cacheTextures[i]; local
503 appendMeshQuadNoClip(float x1, float y1, float u1, float v1, float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, float x4, float y4, float u4, float v4, CacheTexture* texture) argument
515 appendMeshQuad(float x1, float y1, float u1, float v1, float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, float x4, float y4, float u4, float v4, CacheTexture* texture) argument
538 appendRotatedMeshQuad(float x1, float y1, float u1, float v1, float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, float x4, float y4, float u4, float v4, CacheTexture* texture) argument
[all...]
H A DGlop.h49 // Mesh has texture coordinates embedded. Note that texture can exist without this flag
122 Texture* texture; member in struct:android::uirenderer::Glop::Fill::TextureData
127 } texture; member in struct:android::uirenderer::Glop::Fill
H A DGlopBuilder.cpp257 || (mOutGlop->fill.texture.texture && mOutGlop->fill.texture.texture->blend)
324 GlopBuilder& GlopBuilder::setFillTexturePaint(Texture& texture, argument
331 mOutGlop->fill.texture = { &texture,
351 || texture.blend
374 mOutGlop->fill.texture = {
377 mOutGlop->fill.texture
407 setFillShadowTexturePaint(ShadowTexture& texture, int shadowColor, const SkPaint& paint, float alphaScale) argument
451 setFillLayer(Texture& texture, const SkColorFilter* colorFilter, float alpha, SkXfermode::Mode mode, Blend::ModeOrderSwap modeUsage) argument
[all...]
H A DGpuMemoryTracker.cpp125 const Texture* texture = static_cast<Texture*>(obj); local
126 if (texture->cleanup) {
127 ALOGE("Leaked texture marked for cleanup! id=%u, size %ux%u",
128 texture->id(), texture->width(), texture->height());
129 freeList.push_back(texture);
133 for (auto& texture : freeList) {
134 const_cast<Texture*>(texture)->deleteTexture();
135 delete texture;
[all...]
H A DGradientCache.cpp96 void GradientCache::operator()(GradientCacheEntry&, Texture*& texture) { argument
97 if (texture) {
98 mSize -= texture->objectSize();
99 texture->deleteTexture();
100 delete texture;
110 Texture* texture = mCache.get(gradient); local
112 if (!texture) {
113 texture = addLinearGradient(gradient, colors, positions, count);
116 return texture;
152 Texture* texture local
222 generateTexture(uint32_t* colors, float* positions, const uint32_t width, const uint32_t height, Texture* texture) argument
[all...]
H A DLayer.h56 * A layer has dimensions and is backed by an OpenGL texture or FBO.
91 * texture coordinates.
98 const float texX = 1.0f / float(texture.mWidth);
99 const float texY = 1.0f / float(texture.mHeight);
116 return texture.mWidth;
120 return texture.mHeight;
124 * Resize the layer and its texture if needed.
135 texture.updateSize(width, height, texture.format());
141 texture
371 Texture texture; member in class:android::uirenderer::Layer
[all...]
H A DLayerRenderer.cpp205 // We first obtain a layer before comparing against the max texture size
234 // Initialize the texture if needed
241 LOG_ALWAYS_FATAL("Could not allocate texture for layer (fbo=%d %dx%d)",
274 LAYER_RENDERER_LOGD("Creating new texture layer");
368 GLuint texture; local
409 glGenTextures(1, &texture);
412 caches.textureState().bindTexture(texture);
426 GL_TEXTURE_2D, texture, 0);
453 caches.textureState().deleteTexture(texture);
H A DOpenGLRenderer.cpp564 * texture. Unfortunately, this is inefficient as it requires every primitive to
578 * a layer is created, only a texture is created, not an FBO. The content of the
579 * frame buffer contained within the layer's bounds is copied into this texture
584 * To compose the layers back onto the frame buffer, each layer texture
656 // Unfortunately some drivers will turn the entire target texture black
688 // Bind texture to FBO
692 // Initialize the texture if needed
733 // Detach the texture from the FBO
1463 Texture* texture = entry ? entry->texture local
1494 Texture* texture = getTexture(bitmap); local
1535 Texture* texture = mRenderState.assetAtlas().getEntryTexture(bitmap->pixelRef()); local
1606 Texture* texture = getTexture(bitmap); local
1637 Texture* texture = entry ? entry->texture : mCaches.textureCache.get(bitmap); local
1665 Texture* texture = entry ? entry->texture : mCaches.textureCache.get(bitmap); local
1788 drawShape(float left, float top, PathTexture* texture, const SkPaint* paint) argument
1811 PathTexture* texture = mCaches.pathCache.getRoundRect( local
1830 PathTexture* texture = mCaches.pathCache.getCircle(radius, p); local
1876 PathTexture* texture = mCaches.pathCache.getOval(right - left, bottom - top, p); local
1900 PathTexture* texture = mCaches.pathCache.getArc(right - left, bottom - top, local
1935 PathTexture* texture = local
1973 ShadowTexture* texture = mCaches.dropShadowCache.get( local
2221 PathTexture* texture = mCaches.pathCache.get(path, paint); local
2319 Texture* texture = mRenderState.assetAtlas().getEntryTexture(bitmap->pixelRef()); local
2326 drawPathTexture(PathTexture* texture, float x, float y, const SkPaint* paint) argument
[all...]
H A DOpenGLRenderer.h600 * Draws the shape represented by the specified path texture.
602 * the extra left/top offset and the texture offset to correctly
607 * @param texture The texture reprsenting the shape
610 void drawShape(float left, float top, PathTexture* texture, const SkPaint* paint);
655 * Draws a path texture. Path textures are alpha8 bitmaps that need special
658 * @param texture The texture to render
659 * @param x The x coordinate where the texture will be drawn
660 * @param y The y coordinate where the texture wil
716 getMapper(const Texture* texture) argument
[all...]

Completed in 321 milliseconds

123