Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(691)

Unified Diff: src/gpu/GrLayerHoister.cpp

Issue 1514503004: SkBitmap move (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-12-10 (Thursday) 17:55:13 EST Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrLayerHoister.cpp
diff --git a/src/gpu/GrLayerHoister.cpp b/src/gpu/GrLayerHoister.cpp
index 004e4d0e6eb38ab190e6d16a402b0e5d1c78d48f..c188d9e906399398316b4b879102008b02c1c061 100644
--- a/src/gpu/GrLayerHoister.cpp
+++ b/src/gpu/GrLayerHoister.cpp
@@ -283,7 +283,7 @@ SkBitmap wrap_texture(GrTexture* texture) {
SkBitmap result;
result.setInfo(texture->surfacePriv().info(kPremul_SkAlphaType));
result.setPixelRef(new SkGrPixelRef(result.info(), texture))->unref();
- return result;
+ return skstd::move(result);
}
void GrLayerHoister::FilterLayer(GrContext* context,

Powered by Google App Engine
This is Rietveld 408576698