aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-26 19:18:23 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-26 19:18:23 +0000
commitb8d00db075b5ea09e353508a26ef5ced50722a6c (patch)
treee24369ac62bdd014c79c15f960924e4c8bd62780 /src/image
parent18bbba9a9ae3c9c434ac2159bac0b4296ae7f213 (diff)
Change undefined SkGpuRenderTarget and SkGpuTexture forward declares to GrRenderTarget and GrTexture.
R=robertphillips@google.com, reed@google.com Author: bsalomon@google.com Review URL: https://chromiumcodereview.appspot.com/17269003 git-svn-id: http://skia.googlecode.com/svn/trunk@9775 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/image')
-rw-r--r--src/image/SkSurface_Gpu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp
index 154f1793f0..75c3890eb5 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())) {