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 ad1b4c4..ff03400 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 feac9b1..fcf22e3 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;
     }