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

Unified Diff: gm/all_bitmap_configs.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
« no previous file with comments | « no previous file | gm/arithmode.cpp » ('j') | src/core/SkBitmap.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/all_bitmap_configs.cpp
diff --git a/gm/all_bitmap_configs.cpp b/gm/all_bitmap_configs.cpp
index 46c5d5eed5a432b6e1319564bfed9029dec067a8..ccee8835a6524646cf66ce77065d2546b66a0ff0 100644
--- a/gm/all_bitmap_configs.cpp
+++ b/gm/all_bitmap_configs.cpp
@@ -17,7 +17,7 @@ static SkBitmap copy_bitmap(const SkBitmap& src, SkColorType colorType) {
SkBitmap copy;
src.copyTo(&copy, colorType);
copy.setImmutable();
- return copy;
+ return skstd::move(copy);
}
#define SCALE 128
@@ -47,7 +47,7 @@ static SkBitmap make_bitmap(SkColorType ct) {
memcpy(bm.getAddr8(0, y), &spectrum[y], 128);
}
bm.setImmutable();
- return bm;
+ return skstd::move(bm);
}
static void draw_center_letter(char c,
@@ -137,7 +137,7 @@ static SkBitmap indexed_bitmap() {
*bm.getAddr8(x, y) = SkClampMax(idx, SK_ARRAY_COUNT(pmColors) - 1);
}
}
- return bm;
+ return skstd::move(bm);
}
static void draw(SkCanvas* canvas,
« no previous file with comments | « no previous file | gm/arithmode.cpp » ('j') | src/core/SkBitmap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698