summaryrefslogtreecommitdiffstats
path: root/libs/hwui/SkiaShader.cpp
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-08-04 15:35:18 -0700
committerRomain Guy <romainguy@google.com>2010-08-04 15:35:18 -0700
commit6c07daf86c0d3824e1cd88fea455e2dd7b88cbcd (patch)
tree03f3f727db89a8e2ee225a8fa385491ee8a95753 /libs/hwui/SkiaShader.cpp
parent529b60a3b16ac3dff24f2403d760ab8ebc9670ff (diff)
downloadframeworks_base-6c07daf86c0d3824e1cd88fea455e2dd7b88cbcd.zip
frameworks_base-6c07daf86c0d3824e1cd88fea455e2dd7b88cbcd.tar.gz
frameworks_base-6c07daf86c0d3824e1cd88fea455e2dd7b88cbcd.tar.bz2
Fix native crash in SkiaShader.
Bug #2893733 Change-Id: I7feb9ab113fe0012cf9eb271f2b044f12a5c9c4e
Diffstat (limited to 'libs/hwui/SkiaShader.cpp')
-rw-r--r--libs/hwui/SkiaShader.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/libs/hwui/SkiaShader.cpp b/libs/hwui/SkiaShader.cpp
index fedb56c..fe4b54d 100644
--- a/libs/hwui/SkiaShader.cpp
+++ b/libs/hwui/SkiaShader.cpp
@@ -78,9 +78,6 @@ SkiaBitmapShader::SkiaBitmapShader(SkBitmap* bitmap, SkShader* key, SkShader::Ti
SkiaShader(kBitmap, key, tileX, tileY, matrix, blend), mBitmap(bitmap) {
}
-SkiaBitmapShader::~SkiaBitmapShader() {
-}
-
void SkiaBitmapShader::describe(ProgramDescription& description, const Extensions& extensions) {
const Texture* texture = mTextureCache->get(mBitmap);
@@ -190,11 +187,6 @@ SkiaComposeShader::SkiaComposeShader(SkiaShader* first, SkiaShader* second,
NULL, first->blend() || second->blend()), mFirst(first), mSecond(second), mMode(mode) {
}
-SkiaComposeShader::~SkiaComposeShader() {
- delete mFirst;
- delete mSecond;
-}
-
void SkiaComposeShader::set(TextureCache* textureCache, GradientCache* gradientCache) {
SkiaShader::set(textureCache, gradientCache);
mFirst->set(textureCache, gradientCache);