Index: src/image/SkSurface_Gpu.cpp |
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp |
index 154f1793f05089784a603e449b3f868c7fe76212..75c3890eb5faa187d0db40c98c33424450deaf44 100644 |
--- a/src/image/SkSurface_Gpu.cpp |
+++ b/src/image/SkSurface_Gpu.cpp |
@@ -66,14 +66,14 @@ SkCanvas* SkSurface_Gpu::onNewCanvas() { |
} |
SkSurface* SkSurface_Gpu::onNewSurface(const SkImage::Info& info) { |
- GrRenderTarget* rt = (GrRenderTarget*) fDevice->accessRenderTarget(); |
+ GrRenderTarget* rt = fDevice->accessRenderTarget(); |
int sampleCount = rt->numSamples(); |
return SkSurface::NewRenderTarget(fDevice->context(), info, sampleCount); |
} |
SkImage* SkSurface_Gpu::onNewImageSnapshot() { |
- GrRenderTarget* rt = (GrRenderTarget*) fDevice->accessRenderTarget(); |
+ GrRenderTarget* rt = fDevice->accessRenderTarget(); |
return SkImage::NewTexture(rt->asTexture()); |
} |
@@ -87,7 +87,7 @@ void SkSurface_Gpu::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y, |
// device into it. Note that this flushes the SkGpuDevice but |
// doesn't force an OpenGL flush. |
void SkSurface_Gpu::onCopyOnWrite(ContentChangeMode mode) { |
- GrRenderTarget* rt = (GrRenderTarget*) fDevice->accessRenderTarget(); |
+ GrRenderTarget* rt = fDevice->accessRenderTarget(); |
// are we sharing our render target with the image? |
SkASSERT(NULL != this->getCachedImage()); |
if (rt->asTexture() == SkTextureImageGetTexture(this->getCachedImage())) { |