diff options
author | 2014-09-29 10:18:59 -0700 | |
---|---|---|
committer | 2014-09-29 10:19:00 -0700 | |
commit | 2bb52102b16cf197709797be5e2209868ee2dafe (patch) | |
tree | 7bf3a2ad551b5ec1a36c0b88ec3b6e4100f77004 /src | |
parent | 47c548a6706cca821f1d0d6489f401bd00e61ab3 (diff) |
Applying post-commit comments from https://codereview.chromium.org/607993002/
BUG=skia:
R=robertphillips@google.com
Author: junov@chromium.org
Review URL: https://codereview.chromium.org/612063003
Diffstat (limited to 'src')
-rwxr-xr-x | src/gpu/GrContext.cpp | 1 | ||||
-rw-r--r-- | src/gpu/SkGrPixelRef.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index ad1b4c4955..ff034004b4 100755 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -1575,6 +1575,7 @@ void GrContext::copyTexture(GrTexture* src, GrRenderTarget* dst, const SkIPoint* return; } ASSERT_OWNED_RESOURCE(src); + ASSERT_OWNED_RESOURCE(dst); SkIRect srcRect = SkIRect::MakeWH(dst->width(), dst->height()); if (topLeft) { diff --git a/src/gpu/SkGrPixelRef.cpp b/src/gpu/SkGrPixelRef.cpp index feac9b10f3..fcf22e350b 100644 --- a/src/gpu/SkGrPixelRef.cpp +++ b/src/gpu/SkGrPixelRef.cpp @@ -54,7 +54,7 @@ bool SkROLockPixelsPixelRef::onLockPixelsAreWritable() const { /////////////////////////////////////////////////////////////////////////////// static SkGrPixelRef* copy_to_new_texture_pixelref(GrTexture* texture, SkColorType dstCT, - const SkIRect* subset) { + const SkIRect* subset) { if (NULL == texture || kUnknown_SkColorType == dstCT) { return NULL; } |