Index: src/gpu/GrSurface.cpp |
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp |
index 37fd73f4f415a82f526a88d018043a1f3bddc3f4..d15cbdf6e26ccc7fd3b3745cb9ced18747132395 100644 |
--- a/src/gpu/GrSurface.cpp |
+++ b/src/gpu/GrSurface.cpp |
@@ -6,7 +6,6 @@ |
*/ |
#include "GrSurface.h" |
-#include "GrSurfacePriv.h" |
#include "SkBitmap.h" |
#include "SkGr.h" |
@@ -21,16 +20,14 @@ |
return SkImageInfo::Make(this->width(), this->height(), colorType, kPremul_SkAlphaType); |
} |
-// TODO: This should probably be a non-member helper function. It might only be needed in |
-// debug or developer builds. |
bool GrSurface::savePixels(const char* filename) { |
SkBitmap bm; |
if (!bm.tryAllocPixels(SkImageInfo::MakeN32Premul(this->width(), this->height()))) { |
return false; |
} |
- bool result = this->readPixels(0, 0, this->width(), this->height(), kSkia8888_GrPixelConfig, |
- bm.getPixels()); |
+ bool result = readPixels(0, 0, this->width(), this->height(), kSkia8888_GrPixelConfig, |
+ bm.getPixels()); |
if (!result) { |
SkDebugf("------ failed to read pixels for %s\n", filename); |
return false; |
@@ -83,14 +80,3 @@ |
} |
return false; |
} |
- |
-bool GrSurface::isSameAs(const GrSurface* other) const { |
- const GrRenderTarget* thisRT = this->asRenderTarget(); |
- if (thisRT) { |
- return thisRT == other->asRenderTarget(); |
- } else { |
- const GrTexture* thisTex = this->asTexture(); |
- SkASSERT(thisTex); // We must be one or the other |
- return thisTex == other->asTexture(); |
- } |
-} |