aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2014-11-17 14:22:48 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-17 14:22:49 -0800
commit9853ccef19c200be93a6211f32589fa82a53067c (patch)
treefd07ff890581f7df7b99021e5bc42f75539c6050 /src/gpu/gl
parentb079ec682d6f049e5f0df83efa41a1eaa50215c6 (diff)
Drawstate on stack
Diffstat (limited to 'src/gpu/gl')
-rw-r--r--src/gpu/gl/GrGpuGL.cpp4
-rw-r--r--src/gpu/gl/GrGpuGL.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp
index 89f26efe22..a17329f69f 100644
--- a/src/gpu/gl/GrGpuGL.cpp
+++ b/src/gpu/gl/GrGpuGL.cpp
@@ -2490,8 +2490,8 @@ bool GrGpuGL::copySurface(GrSurface* dst,
return copied;
}
-bool GrGpuGL::canCopySurface(GrSurface* dst,
- GrSurface* src,
+bool GrGpuGL::canCopySurface(const GrSurface* dst,
+ const GrSurface* src,
const SkIRect& srcRect,
const SkIPoint& dstPoint) {
// This mirrors the logic in onCopySurface. We prefer our base makes the copy if we need to
diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h
index 3757d76204..778ee160e1 100644
--- a/src/gpu/gl/GrGpuGL.h
+++ b/src/gpu/gl/GrGpuGL.h
@@ -100,8 +100,8 @@ public:
const SkIRect& srcRect,
const SkIPoint& dstPoint) SK_OVERRIDE;
- virtual bool canCopySurface(GrSurface* dst,
- GrSurface* src,
+ virtual bool canCopySurface(const GrSurface* dst,
+ const GrSurface* src,
const SkIRect& srcRect,
const SkIPoint& dstPoint) SK_OVERRIDE;