diff options
| author | 2011-01-20 11:37:22 -0800 | |
|---|---|---|
| committer | 2011-01-20 11:37:22 -0800 | |
| commit | c8219299b0003793cee8049b96a3bf7530765eea (patch) | |
| tree | 17043387322fdc2cb37661a1109cb0f25fc123d2 /libs/hwui/ShapeCache.cpp | |
| parent | 292f39c1201f2f08ac90d5562a7fd7070e9b32a0 (diff) | |
| parent | ff26a0c1c905dc1ec53b1bab860b80f2976d59be (diff) | |
Merge "Remove unnecessary code." into honeycomb
Diffstat (limited to 'libs/hwui/ShapeCache.cpp')
| -rw-r--r-- | libs/hwui/ShapeCache.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/libs/hwui/ShapeCache.cpp b/libs/hwui/ShapeCache.cpp index ffa18e37a0a9..b78eecba5215 100644 --- a/libs/hwui/ShapeCache.cpp +++ b/libs/hwui/ShapeCache.cpp @@ -21,7 +21,12 @@ namespace android { namespace uirenderer { -RoundRectShapeCache::RoundRectShapeCache(): ShapeCache<RoundRectShapeCacheEntry>() { +/////////////////////////////////////////////////////////////////////////////// +// Rounded rects +/////////////////////////////////////////////////////////////////////////////// + +RoundRectShapeCache::RoundRectShapeCache(): ShapeCache<RoundRectShapeCacheEntry>( + "round rect", PROPERTY_SHAPE_CACHE_SIZE, DEFAULT_SHAPE_CACHE_SIZE) { } PathTexture* RoundRectShapeCache::getRoundRect(float width, float height, @@ -41,7 +46,12 @@ PathTexture* RoundRectShapeCache::getRoundRect(float width, float height, return texture; } -CircleShapeCache::CircleShapeCache(): ShapeCache<CircleShapeCacheEntry>() { +/////////////////////////////////////////////////////////////////////////////// +// Circles +/////////////////////////////////////////////////////////////////////////////// + +CircleShapeCache::CircleShapeCache(): ShapeCache<CircleShapeCacheEntry>( + "circle", PROPERTY_SHAPE_CACHE_SIZE, DEFAULT_SHAPE_CACHE_SIZE) { } PathTexture* CircleShapeCache::getCircle(float radius, SkPaint* paint) { |