diff options
author | joshualitt <joshualitt@chromium.org> | 2014-11-17 14:22:48 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-17 14:22:49 -0800 |
commit | 9853ccef19c200be93a6211f32589fa82a53067c (patch) | |
tree | fd07ff890581f7df7b99021e5bc42f75539c6050 /src/gpu/gl | |
parent | b079ec682d6f049e5f0df83efa41a1eaa50215c6 (diff) |
Drawstate on stack
BUG=skia:
Review URL: https://codereview.chromium.org/732693002
Diffstat (limited to 'src/gpu/gl')
-rw-r--r-- | src/gpu/gl/GrGpuGL.cpp | 4 | ||||
-rw-r--r-- | src/gpu/gl/GrGpuGL.h | 4 |
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; |