Index: src/image/SkImage_Gpu.cpp |
=================================================================== |
--- src/image/SkImage_Gpu.cpp (revision 8402) |
+++ src/image/SkImage_Gpu.cpp (working copy) |
@@ -24,8 +24,6 @@ |
GrTexture* getTexture() { return fTexture; } |
- void setTexture(GrTexture* texture); |
- |
private: |
GrTexture* fTexture; |
SkBitmap fBitmap; |
@@ -56,16 +54,6 @@ |
canvas->drawBitmap(fBitmap, x, y, paint); |
} |
-void SkImage_Gpu::setTexture(GrTexture* texture) { |
- |
- if (texture == fTexture) { |
- return; |
- } |
- |
- SkRefCnt_SafeAssign(fTexture, texture); |
- fBitmap.setPixelRef(new SkGrPixelRef(texture))->unref(); |
-} |
- |
/////////////////////////////////////////////////////////////////////////////// |
SkImage* SkImage::NewTexture(GrTexture* texture) { |
@@ -79,7 +67,3 @@ |
GrTexture* SkTextureImageGetTexture(SkImage* image) { |
return ((SkImage_Gpu*)image)->getTexture(); |
} |
- |
-void SkTextureImageSetTexture(SkImage* image, GrTexture* texture) { |
- ((SkImage_Gpu*)image)->setTexture(texture); |
-} |