/frameworks/native/opengl/tests/hwc/ |
H A D | hwcRects.cpp | 160 sp<GraphicBuffer> texture; member in class:Rectangle 318 layer->handle = it->texture->handle; 506 // Create source texture 507 rect.texture = new GraphicBuffer(rect.sourceDim.width(), 510 if ((rv = rect.texture->initCheck()) != NO_ERROR) { 511 testPrintE("source texture initCheck failed, rv: %i", rv); 517 hwcTestFillColor(rect.texture.get(), rect.color, rect.alpha); 521 rect.texture.get(), rect.texture->handle, format->desc,
|
/frameworks/native/opengl/tests/tritex/ |
H A D | tritex.cpp | 23 GLuint texture;
variable 221 glGenTextures(1, &texture);
222 glBindTexture(GL_TEXTURE_2D, texture);
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | GLES11RenderEngine.cpp | 205 void GLES11RenderEngine::setupLayerTexturing(const Texture& texture) { argument 206 GLuint target = texture.getTextureTarget(); 207 glBindTexture(target, texture.getTextureName()); 209 if (texture.getFiltering()) { 217 glLoadMatrixf(texture.getMatrix().asArray()); 244 // turn our EGLImage into a texture
|
H A D | GLES20RenderEngine.cpp | 173 void GLES20RenderEngine::setupLayerTexturing(const Texture& texture) { argument 174 GLuint target = texture.getTextureTarget(); 175 glBindTexture(target, texture.getTextureName()); 177 if (texture.getFiltering()) { 185 mState.setTexture(texture); 190 Texture texture(Texture::TEXTURE_2D, mProtectedTexName); 191 texture.setDimensions(1, 1); // FIXME: we should get that from somewhere 192 mState.setTexture(texture); 213 // turn our EGLImage into a texture
|
/frameworks/base/libs/hwui/ |
H A D | GlopBuilder.cpp | 257 || (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 D | LayerRenderer.cpp | 205 // 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 D | PathCache.cpp | 156 // will be applied later when compositing the alpha8 texture 215 void PathCache::operator()(PathDescription& entry, PathTexture*& texture) { argument 216 removeTexture(texture); 223 void PathCache::removeTexture(PathTexture* texture) { argument 224 if (texture) { 225 const uint32_t size = texture->width() * texture->height(); 229 const sp<Task<SkBitmap*> >& task = texture->task(); 232 texture->clearTask(); 237 ALOGE("Removing path texture o 285 PathTexture* texture = new PathTexture(Caches::getInstance(), local 292 generateTexture(const PathDescription& entry, SkBitmap* bitmap, PathTexture* texture, bool addToCache) argument 315 generateTexture(SkBitmap& bitmap, Texture* texture) argument 337 PathTexture* texture = t->texture; local 386 PathTexture* texture = mCache.get(entry); local 427 PathTexture* texture = mCache.get(entry); local 469 PathTexture* texture = get(entry); local 491 PathTexture* texture = get(entry); local 512 PathTexture* texture = get(entry); local 535 PathTexture* texture = get(entry); local 562 PathTexture* texture = get(entry); local [all...] |
H A D | PathCache.h | 61 * Alpha texture used to represent a path. 167 * Any texture added to the cache causing the cache to grow beyond the maximum 168 * allowed size will also cause the oldest texture to be kicked out. 179 void operator()(PathDescription& path, PathTexture*& texture) override; 242 * Generates the texture from a bitmap into the specified texture structure. 244 void generateTexture(SkBitmap& bitmap, Texture* texture); 245 void generateTexture(const PathDescription& entry, SkBitmap* bitmap, PathTexture* texture, 253 * Ensures there is enough space in the cache for a texture of the specified 258 void removeTexture(PathTexture* texture); 273 PathTask(const SkPath* path, const SkPaint* paint, PathTexture* texture) argument 286 PathTexture* texture; member in class:android::uirenderer::PathCache::PathTask [all...] |
H A D | Layer.h | 56 * 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 D | OpenGLRenderer.h | 600 * 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...] |
H A D | BakedOpDispatcher.cpp | 52 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 D | FontRenderer.cpp | 59 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...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLCanvas.java | 92 // Draws a texture to the specified rectangle. 94 BasicTexture texture, int x, int y, int width, int height); 99 // Draws the source rectangle part of the texture to the target rectangle. 100 public abstract void drawTexture(BasicTexture texture, RectF source, RectF target); argument 102 // Draw a texture with a specified texture transform. 103 public abstract void drawTexture(BasicTexture texture, float[] mTextureTransform, argument 106 // Draw two textures to the specified rectangle. The actual texture used is 112 // Draw a region of a texture and a specified color to the specified 114 // The region of the texture i 93 drawTexture( BasicTexture texture, int x, int y, int width, int height) argument 123 unloadTexture(BasicTexture texture) argument 135 beginRenderTarget(RawTexture texture) argument 147 setTextureParameters(BasicTexture texture) argument 156 initializeTextureSize(BasicTexture texture, int format, int type) argument 164 initializeTexture(BasicTexture texture, Bitmap bitmap) argument 177 texSubImage2D(BasicTexture texture, int xOffset, int yOffset, Bitmap bitmap, int format, int type) argument [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | RenderTarget.java | 103 public RenderTarget forTexture(TextureSource texture, int width, int height) { argument 104 // NOTE: We do not need to lookup any previous bindings of this texture to an FBO, as 105 // multiple FBOs to a single texture is valid. 111 texture.getTarget(), 112 texture.getTextureId(),
|
H A D | ImageShader.java | 242 public static void renderTextureToTarget(TextureSource texture, argument 247 shader.process(texture, target, width, height); 277 public void process(TextureSource texture, RenderTarget target, int width, int height) { argument 278 processMulti(new TextureSource[] { texture }, target, width, height); 612 // Activate texture unit i 615 // Bind texture 618 // Assign the texture uniform in the shader to unit i 627 GLToolbox.checkGlError("Binding input texture " + i); 683 + "maximum number of allowed texture units (" + maxTextureUnits() + ")!");
|
/frameworks/av/cmds/stagefright/ |
H A D | stagefright.cpp | 621 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 D | BootAnimation.cpp | 105 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/opengl/java/javax/microedition/khronos/opengles/ |
H A D | GL11ExtensionPack.java | 122 int texture 204 int texture, 200 glFramebufferTexture2DOES( int target, int attachment, int textarget, int texture, int level ) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ImageWallpaper.java | 144 "uniform sampler2D texture;\n" + 146 " gl_FragColor = texture2D(texture, outTexCoords);\n" + 581 final int texture = loadTexture(mBackground); 586 final int uniformTexture = glGetUniformLocation(program, "texture"); 592 glBindTexture(GL_TEXTURE_2D, texture); 621 finishGL(texture, program); 649 int texture = textures[0]; 650 glBindTexture(GL_TEXTURE_2D, texture); 662 return texture; 728 private void finishGL(int texture, in argument [all...] |
/frameworks/native/opengl/libagl/ |
H A D | array.cpp | 27 #include "texture.h" 114 c->arrays.texture[i].size = 4; 115 c->arrays.texture[i].type = GL_FLOAT; 146 memcpy(v, c->current.texture[c->arrays.tmu].v, sizeof(vec4_t)); 441 case GL_TEXTURE_COORD_ARRAY: a = &c->arrays.texture[tmu]; break; 1058 if (c->rasterizer.state.texture[i].enable) 1059 clipVec4(nv->texture[i], t, s->texture[i], p->texture[i]); 1124 if (enables & GGL_ENABLE_TMUS) { // needs texture transform 1335 glClientActiveTexture(GLenum texture) argument [all...] |
H A D | texture.cpp | 1 /* libs/opengles/texture.cpp 23 #include "texture.h" 33 ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex); 50 // each context has a default named (0) texture (not shared) 54 // bind the default texture to each texture unit 57 memset(c->current.texture[i].v, 0, sizeof(vec4_t)); 58 c->current.texture[i].Q = 0x10000; 68 if (c->textures.tmu[i].texture) 69 c->textures.tmu[i].texture 342 bindTextureTmu( ogles_context_t* c, int tmu, GLuint texture, const sp<EGLTextureObject>& tex) argument 854 glActiveTexture(GLenum texture) argument 865 glBindTexture(GLenum target, GLuint texture) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_opengl_GLES11.cpp | 2409 /* 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 D | android_opengl_GLES31Ext.cpp | 832 /* 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 D | android_opengl_GLES32.cpp | 976 /* 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
|
/frameworks/base/libs/hwui/debug/ |
H A D | nullgles.cpp | 165 void glActiveTexture(GLenum texture) {} argument 171 void glBindTexture(GLenum target, GLuint texture) {} argument 207 void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) {} argument
|