Lines Matching refs:texture

643  * texture. Unfortunately, this is inefficient as it requires every primitive to
657 * a layer is created, only a texture is created, not an FBO. The content of the
658 * frame buffer contained within the layer's bounds is copied into this texture
663 * To compose the layers back onto the frame buffer, each layer texture
797 // Bind texture to FBO
801 // Initialize the texture if needed
841 // Detach the texture from the FBO
934 setupDrawMesh(&mMeshVertices[0].position[0], &mMeshVertices[0].texture[0]);
968 &mMeshVertices[0].position[0], &mMeshVertices[0].texture[0],
1023 setupDrawMeshIndices(&mesh[0].position[0], &mesh[0].texture[0]);
1508 void OpenGLRenderer::setupDrawTexture(GLuint texture) {
1509 bindTexture(texture);
1514 void OpenGLRenderer::setupDrawExternalTexture(GLuint texture) {
1515 bindExternalTexture(texture);
1619 void OpenGLRenderer::drawAlphaBitmap(Texture* texture, float left, float top, SkPaint* paint) {
1647 setupDrawModelView(x, y, x + texture->width, y + texture->height, ignoreTransform);
1649 setupDrawTexture(texture->id);
1650 texture->setWrap(GL_CLAMP_TO_EDGE);
1651 texture->setFilter(filter);
1672 Texture* texture = mCaches.textureCache.get(bitmap);
1673 if (!texture) return DrawGlInfo::kStatusDone;
1674 const AutoTexture autoCleanup(texture);
1677 drawAlphaBitmap(texture, left, top, paint);
1679 drawTextureRect(left, top, right, bottom, texture, paint);
1695 Texture* texture = mCaches.textureCache.get(bitmap);
1696 if (!texture) return DrawGlInfo::kStatusDone;
1697 const AutoTexture autoCleanup(texture);
1703 drawTextureRect(0.0f, 0.0f, bitmap->width(), bitmap->height(), texture, paint);
1718 Texture* texture = mCaches.textureCache.getTransient(bitmap);
1719 const AutoTexture autoCleanup(texture);
1721 drawTextureRect(left, top, right, bottom, texture, paint);
1783 Texture* texture = mCaches.textureCache.get(bitmap);
1784 if (!texture) return DrawGlInfo::kStatusDone;
1785 const AutoTexture autoCleanup(texture);
1787 texture->setWrap(GL_CLAMP_TO_EDGE, true);
1788 texture->setFilter(FILTER(paint), true);
1798 drawTextureMesh(0.0f, 0.0f, 1.0f, 1.0f, texture->id, alpha / 255.0f,
1799 mode, texture->blend, &mesh[0].position[0], &mesh[0].texture[0],
1814 Texture* texture = mCaches.textureCache.get(bitmap);
1815 if (!texture) return DrawGlInfo::kStatusDone;
1816 const AutoTexture autoCleanup(texture);
1818 const float width = texture->width;
1819 const float height = texture->height;
1833 texture->setWrap(GL_CLAMP_TO_EDGE, true);
1845 texture->setFilter(filter, true);
1847 texture->id, alpha / 255.0f, mode, texture->blend,
1848 &mMeshVertices[0].position[0], &mMeshVertices[0].texture[0],
1851 texture->setFilter(FILTER(paint), true);
1852 drawTextureMesh(dstLeft, dstTop, dstRight, dstBottom, texture->id, alpha / 255.0f,
1853 mode, texture->blend, &mMeshVertices[0].position[0], &mMeshVertices[0].texture[0],
1883 Texture* texture = mCaches.textureCache.get(bitmap);
1884 if (!texture) return DrawGlInfo::kStatusDone;
1885 const AutoTexture autoCleanup(texture);
1886 texture->setWrap(GL_CLAMP_TO_EDGE, true);
1887 texture->setFilter(GL_LINEAR, true);
1916 drawTextureMesh(x, y, x + right - left, y + bottom - top, texture->id, alpha / 255.0f,
1917 mode, texture->blend, (GLvoid*) 0, (GLvoid*) gMeshTextureOffset,
1921 drawTextureMesh(left, top, right, bottom, texture->id, alpha / 255.0f,
1922 mode, texture->blend, (GLvoid*) 0, (GLvoid*) gMeshTextureOffset,
2340 status_t OpenGLRenderer::drawShape(float left, float top, const PathTexture* texture,
2342 if (!texture) return DrawGlInfo::kStatusDone;
2343 const AutoTexture autoCleanup(texture);
2345 const float x = left + texture->left - texture->offset;
2346 const float y = top + texture->top - texture->offset;
2348 drawPathTexture(texture, x, y, paint);
2361 const PathTexture* texture = mCaches.roundRectShapeCache.getRoundRect(
2363 return drawShape(left, top, texture, p);
2387 const PathTexture* texture = mCaches.circleShapeCache.getCircle(radius, p);
2388 return drawShape(x - radius, y - radius, texture, p);
2410 const PathTexture* texture = mCaches.ovalShapeCache.getOval(right - left, bottom - top, p);
2411 return drawShape(left, top, texture, p);
2438 const PathTexture* texture = mCaches.arcShapeCache.getArc(right - left, bottom - top,
2440 return drawShape(left, top, texture, p);
2474 const PathTexture* texture =
2476 return drawShape(left, top, texture, p);
2572 // Pick the appropriate texture filtering
2664 // Pick the appropriate texture filtering
2670 // The font renderer will always use texture unit 0
2682 // See comment above; the font renderer must use texture unit 0
2773 const PathTexture* texture = mCaches.pathCache.get(path, paint);
2774 if (!texture) return DrawGlInfo::kStatusDone;
2775 const AutoTexture autoCleanup(texture);
2777 const float x = texture->left - texture->offset;
2778 const float y = texture->top - texture->offset;
2780 drawPathTexture(texture, x, y, paint);
2848 setupDrawMesh(&layer->mesh[0].position[0], &layer->mesh[0].texture[0]);
2947 void OpenGLRenderer::drawPathTexture(const PathTexture* texture,
2949 if (quickReject(x, y, x + texture->width, y + texture->height)) {
2964 setupDrawModelView(x, y, x + texture->width, y + texture->height);
2965 setupDrawTexture(texture->id);
3055 Texture* texture, SkPaint* paint) {
3060 texture->setWrap(GL_CLAMP_TO_EDGE, true);
3066 texture->setFilter(GL_NEAREST, true);
3067 drawTextureMesh(x, y, x + texture->width, y + texture->height, texture->id,
3068 alpha / 255.0f, mode, texture->blend, (GLvoid*) NULL,
3071 texture->setFilter(FILTER(paint), true);
3072 drawTextureMesh(left, top, right, bottom, texture->id, alpha / 255.0f, mode,
3073 texture->blend, (GLvoid*) NULL, (GLvoid*) gMeshTextureOffset,
3079 GLuint texture, float alpha, SkXfermode::Mode mode, bool blend) {
3080 drawTextureMesh(left, top, right, bottom, texture, alpha, mode, blend,
3085 GLuint texture, float alpha, SkXfermode::Mode mode, bool blend,
3105 setupDrawTexture(texture);