Home
last modified time | relevance | path

Searched refs:PathTexture (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/libs/hwui/
DPathCache.h59 struct PathTexture;
62 PathTask(const SkPath* path, const SkPaint* paint, PathTexture* texture): in PathTask()
71 PathTexture* texture;
77 struct PathTexture: public Texture { struct
78 PathTexture(Caches& caches, int generation) in PathTexture() function
83 ~PathTexture() { in ~PathTexture() argument
176 class PathCache: public OnEntryRemoved<PathDescription, PathTexture*> {
185 void operator()(PathDescription& path, PathTexture*& texture) override;
201 PathTexture* getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint);
202 PathTexture* getCircle(float radius, const SkPaint* paint);
[all …]
DPathCache.cpp126 static void computePathBounds(const SkPath* path, const SkPaint* paint, PathTexture* texture, in computePathBounds()
152 static sk_sp<Bitmap> drawPath(const SkPath* path, const SkPaint* paint, PathTexture* texture, in drawPath()
180 : mCache(LruCache<PathDescription, PathTexture*>::kUnlimitedCapacity) in PathCache()
212 void PathCache::operator()(PathDescription& entry, PathTexture*& texture) { in operator ()()
220 void PathCache::removeTexture(PathTexture* texture) { in removeTexture()
274 PathTexture* PathCache::addTexture(const PathDescription& entry, const SkPath *path, in addTexture()
278 PathTexture* texture = new PathTexture(Caches::getInstance(), path->getGenerationID()); in addTexture()
291 PathTexture* texture, bool addToCache) { in generateTexture()
349 LruCache<PathDescription, PathTexture*>::Iterator iter(mCache); in clearGarbage()
365 PathTexture* PathCache::get(const SkPath* path, const SkPaint* paint) { in get()
[all …]
DGlopBuilder.h38 struct PathTexture;
67 GlopBuilder& setFillPathTexturePaint(PathTexture& texture,
DBakedOpDispatcher.cpp369 float xOffset, float yOffset, PathTexture& texture, const SkPaint& paint) { in renderPathTexture()
398 PathTexture* texture = renderer.caches().pathCache.getArc( in onArcOp()
559 PathTexture* texture = renderer.caches().pathCache.getOval( in onOvalOp()
609 PathTexture* texture = renderer.caches().pathCache.get(op.path, op.paint); in onPathOp()
636 PathTexture* texture = renderer.caches().pathCache.getRect( in onRectOp()
670 PathTexture* texture = renderer.caches().pathCache.getRoundRect( in onRoundRectOp()
DGlopBuilder.cpp370 GlopBuilder& GlopBuilder::setFillPathTexturePaint(PathTexture& texture, in setFillPathTexturePaint()
/frameworks/base/libs/hwui/tests/unit/
DBakedOpDispatcherTests.cpp96 EXPECT_EQ(expectedOffset, reinterpret_cast<PathTexture*>(texture)->offset) in RENDERTHREAD_OPENGL_PIPELINE_TEST()
285 EXPECT_EQ(1, reinterpret_cast<PathTexture*>(texture)->left); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
286 EXPECT_EQ(3, reinterpret_cast<PathTexture*>(texture)->top); in RENDERTHREAD_OPENGL_PIPELINE_TEST()