Applying post-commit comments from https://codereview.chromium.org/607993002/
authorjunov <junov@chromium.org>
Mon, 29 Sep 2014 17:18:59 +0000 (10:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 29 Sep 2014 17:19:00 +0000 (10:19 -0700)
BUG=skia:
R=robertphillips@google.com

Author: junov@chromium.org

Review URL: https://codereview.chromium.org/612063003

src/gpu/GrContext.cpp
src/gpu/SkGrPixelRef.cpp

index ad1b4c49553316267a5ed150390f8e68ed47cb7d..ff034004b4dcd829e96d0379225425d9152eba0d 100755 (executable)
@@ -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) {
index feac9b10f373bc4e9300617a329db689cc40d0b5..fcf22e350b02aef0ab2b2924775993d7f9c14977 100644 (file)
@@ -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;
     }