Searched refs:texture (Results 26 - 50 of 126) sorted by relevance

123456

/frameworks/native/opengl/libagl/
H A Dtexture.cpp1 /* 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...]
H A Dprimitives.cpp394 array_t const * const texcoordArray = c->arrays.texture;
397 if (!(c->rasterizer.state.texture[i].enable))
409 vec4_t& coords = v->texture[i];
414 // transform texture coordinates...
416 const transform_t& tr = c->transforms.texture[i].transform;
442 // Fetch & transform texture coordinates...
486 if (!c->rasterizer.state.texture[i].enable)
491 if (c->rasterizer.state.texture[i].s_wrap == GGL_CLAMP) {
492 int width = c->textures.tmu[i].texture->surface.width;
493 itt[0] = v->texture[
[all...]
H A DAndroid.mk12 texture.cpp \
/frameworks/base/libs/hwui/
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 DPathCache.h61 * 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 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 DGlopBuilder.h62 GlopBuilder& setFillTexturePaint(Texture& texture, const int textureFillFlags,
64 GlopBuilder& setFillPathTexturePaint(PathTexture& texture,
66 GlopBuilder& setFillShadowTexturePaint(ShadowTexture& texture, int shadowColor,
70 GlopBuilder& setFillLayer(Texture& texture, const SkColorFilter* colorFilter,
76 GlopBuilder& setFillExternalTexture(Texture& texture, Matrix4& textureTransform);
H A DReadback.cpp45 ALOGW("Can't copy surface into bitmap, %dx%d exceeds max texture size %d",
57 GLuint texture; local
88 glGenTextures(1, &texture);
90 caches.textureState().bindTexture(texture);
99 GL_TEXTURE_2D, texture, 0);
143 // Create a 2D texture to sample from the EGLImage
183 caches.textureState().deleteTexture(texture);
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 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 DFontRenderer.h80 void draw(CacheTexture& texture, bool linearFiltering);
162 float x4, float y4, float u4, float v4, CacheTexture* texture);
166 float x4, float y4, float u4, float v4, CacheTexture* texture);
170 float x4, float y4, float u4, float v4, CacheTexture* texture);
H A DTextureCache.h53 * A simple LRU texture cache. The cache has a maximum size expressed in bytes.
54 * Any texture added to the cache causing the cache to grow beyond the maximum
55 * allowed size will also cause the oldest texture to be kicked out.
66 void operator()(uint32_t&, Texture*& texture) override;
81 * Returns the texture associated with the specified bitmap from either within the cache, or
82 * the AssetAtlas. If the texture cannot be found in the cache, a new texture is generated.
89 * Returns the texture associated with the specified bitmap. If the texture cannot be found in
90 * the cache, a new texture i
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DETC1Util.java32 * Convenience method to load an ETC1 texture whether or not the active OpenGL context
33 * supports the ETC1 texture compression format.
34 * @param target the texture target.
35 * @param level the texture level
37 * @param fallbackFormat the format to use if ETC1 texture compression is not supported.
39 * @param fallbackType the type to use if ETC1 texture compression is not supported.
42 * @param input the input stream containing an ETC1 texture in PKM format.
52 * Convenience method to load an ETC1 texture whether or not the active OpenGL context
53 * supports the ETC1 texture compression format.
54 * @param target the texture targe
64 loadTexture(int target, int level, int border, int fallbackFormat, int fallbackType, ETC1Texture texture) argument
206 writeTexture(ETC1Texture texture, OutputStream output) argument
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DDescription.cpp62 void Description::setTexture(const Texture& texture) { argument
63 mTexture = texture;
H A DGLES20RenderEngine.cpp173 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
H A DDescription.h64 void setTexture(const Texture& texture);
H A DGLES20RenderEngine.h47 GLuint texture; member in struct:android::GLES20RenderEngine::Group
80 virtual void setupLayerTexturing(const Texture& texture);
H A DGLES11RenderEngine.cpp205 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 DGLES11RenderEngine.h65 virtual void setupLayerTexturing(const Texture& texture);
/frameworks/base/services/core/jni/
H A Dcom_android_server_AssetAtlasService.cpp56 if (texture) glDeleteTextures(1, &texture); \
72 // using the GPU to swizzle the texture content
116 GLuint texture = 0; local
142 // The EGL image is later bound to a 2D texture
152 glGenTextures(1, &texture);
153 glBindTexture(GL_TEXTURE_2D, texture);
156 ALOGW("Could not create/bind texture");
165 ALOGW("Could not upload to texture");
169 // The fence is used to wait for the texture uploa
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DAdvancedBlendActivity.java63 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1);
64 mTexWidth = texture.getWidth();
65 mTexHeight = texture.getHeight();
69 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR,
75 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR,
H A DMoreShadersActivity.java65 Bitmap texture = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1);
66 mTexWidth = texture.getWidth();
67 mTexHeight = texture.getHeight();
71 mScaledShader = new BitmapShader(texture, Shader.TileMode.MIRROR,
77 mScaled2Shader = new BitmapShader(texture, Shader.TileMode.MIRROR,
/frameworks/base/libs/hwui/tests/unit/
H A DOffscreenBufferPoolTests.cpp38 EXPECT_EQ(64u, layer.texture.width());
39 EXPECT_EQ(192u, layer.texture.height());
102 EXPECT_EQ(64u, layer->texture.width());
103 EXPECT_EQ(64u, layer->texture.height());
116 EXPECT_EQ(128u, layer2->texture.width());
117 EXPECT_EQ(128u, layer2->texture.height());
129 // Note: this relies on the fact that the pool won't reject based on max texture size
H A DBakedOpDispatcherTests.cpp93 // validate glop produced by renderPathTexture (so texture, unit quad)
94 auto texture = glop.fill.texture.texture;
95 ASSERT_NE(nullptr, texture);
97 EXPECT_EQ(expectedOffset, reinterpret_cast<PathTexture*>(texture)->offset)
109 // Arc and Oval will render functionally the same glop, differing only in texture content
/frameworks/native/opengl/tests/hwc/
H A DhwcRects.cpp160 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,

Completed in 278 milliseconds

123456