Home
last modified time | relevance | path

Searched refs:Patch (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/libs/hwui/
DPatchCache.cpp34 mSize(0), mCache(LruCache<PatchDescription, Patch*>::kUnlimitedCapacity), in PatchCache()
95 LruCache<PatchDescription, Patch*>::Iterator i(mCache); in clearCache()
111 LruCache<PatchDescription, Patch*>::Iterator i(mCache); in remove()
143 const Patch* patch = pair.getSecond(); in clearGarbage()
171 void PatchCache::setupMesh(Patch* newMesh, TextureVertex* vertices) { in setupMesh()
224 const Patch* PatchCache::get(const AssetAtlas::Entry* entry, in get()
229 const Patch* mesh = mCache.get(description); in get()
232 Patch* newMesh = new Patch(); in get()
DPatch.cpp35 Patch::Patch(): vertices(NULL), verticesCount(0), indexCount(0), hasEmptyQuads(false) { in Patch() function in android::uirenderer::Patch
38 Patch::~Patch() { in ~Patch()
45 uint32_t Patch::getSize() const { in getSize()
49 TextureVertex* Patch::createMesh(const float bitmapWidth, const float bitmapHeight, in createMesh()
55 TextureVertex* Patch::createMesh(const float bitmapWidth, const float bitmapHeight, in createMesh()
170 void Patch::generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex, in generateRow()
210 void Patch::generateQuad(TextureVertex*& vertex, float x1, float y1, float x2, float y2, in generateQuad()
DPatch.h39 struct Patch { struct
40 Patch();
41 ~Patch();
DPatchCache.h57 const Patch* get(const AssetAtlas::Entry* entry,
157 typedef Pair<const PatchDescription*, Patch*> patch_pair_t;
162 void setupMesh(Patch* newMesh, TextureVertex* vertices);
173 LruCache<PatchDescription, Patch*> mCache;
DAndroid.mk31 Patch.cpp \
DDisplayListOp.h973 const Patch* getMesh(OpenGLRenderer& renderer) { in getMesh()
1015 const Patch* opMesh = patchOp->getMesh(renderer); in multiDraw()
1090 const Patch* mMesh;
DOpenGLRenderer.h300 status_t drawPatch(SkBitmap* bitmap, const Patch* mesh, AssetAtlas::Entry* entry,
DOpenGLRenderer.cpp2419 const Patch* mesh = mCaches.patchCache.get(entry, bitmap->width(), bitmap->height(), in drawPatch()
2425 status_t OpenGLRenderer::drawPatch(SkBitmap* bitmap, const Patch* mesh, AssetAtlas::Entry* entry, in drawPatch()
/frameworks/base/docs/html/tools/help/
Ddraw9patch.jd49 <li><strong>Patch scale</strong>: Adjust the scale of the images in the preview area.</li>
/frameworks/base/docs/html/guide/topics/resources/
Ddrawable-resource.jd23 <dt><a href="#NinePatch">Nine-Patch File</a></dt>
306 <h2 id="NinePatch">Nine-Patch</h2>
311 to {@code "wrap_content"}, and when the View grows to accomodate the content, the Nine-Patch image
312 is also scaled to match the size of the View. An example use of a Nine-Patch image is the
316 <p>Same as with a normal <a href="#Bitmap">bitmap</a>, you can reference a Nine-Patch file directly
319 <p>For a complete discussion about how to create a Nine-Patch file with stretchable regions,
324 <h3 id="NinePatchFile">Nine-Patch File</h3>
345 applies the Nine-Patch to a View:
368 <h3 id="NinePatchXml">XML Nine-Patch</h3>
370 <p>An XML Nine-Patch is a resource defined in XML that points to a Nine-Patch file. The XML can
[all …]
/frameworks/base/docs/html/tools/
Dtools_toc.cs177 <li><a href="<?cs var:toroot ?>tools/help/draw9patch.html">Draw 9-Patch</a></li>
/frameworks/base/docs/html/guide/practices/
Dscreens_support.jd332 .gif} files) and Nine-Patch drawables ({@code .9.png} files) so that they render at the appropriate
598 href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">Nine-Patch</a> bitmap files. A
599 Nine-Patch file is basically a PNG file in which you specific two-dimensional regions that are
601 stretches the Nine-Patch bitmap, but stretches only the specified regions. As such, you don't
602 need to provide different drawables for different screen sizes, because the Nine-Patch bitmap can
603 adjust to any size. You should, however, provide alternate versions of your Nine-Patch files for
/frameworks/base/docs/html/guide/appendix/
Dglossary.jd178 Nine-Patch Stretchable Image</a> for more information.
/frameworks/base/docs/html/tools/projects/
Dindex.jd116 <dd>For bitmap files (PNG, JPEG, or GIF), 9-Patch image files, and XML files that describe
/frameworks/base/docs/html/guide/topics/ui/
Dactionbar.jd1249 use <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">Nine-Patch drawables</a>
/frameworks/base/docs/html/tools/sdk/ndk/
Dindex.jd362 (<a href="http://gcc.gnu.org/ml/gcc-patches/2012-12/msg00830.html">GCC Patch</a>)