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

Side by Side Diff: src/core/SkAutoPixmapStorage.cpp

Issue 1821303002: Remove SkPixmap::release (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months 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 unified diff | Download patch
« no previous file with comments | « src/core/SkAutoPixmapStorage.h ('k') | tests/SpecialImageTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2016 Google Inc. 3 * Copyright 2016 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkAutoPixmapStorage.h" 9 #include "SkAutoPixmapStorage.h"
10 #include "SkData.h" 10 #include "SkData.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 return nullptr; 51 return nullptr;
52 } 52 }
53 53
54 auto data = SkData::MakeFromMalloc(fStorage, this->getSafeSize()); 54 auto data = SkData::MakeFromMalloc(fStorage, this->getSafeSize());
55 fStorage = nullptr; 55 fStorage = nullptr;
56 this->INHERITED::reset(); 56 this->INHERITED::reset();
57 57
58 return data.release(); 58 return data.release();
59 } 59 }
60 60
61 void SkAutoPixmapStorage::release() {
62 fStorage = nullptr;
63 this->INHERITED::reset();
64 }
OLDNEW
« no previous file with comments | « src/core/SkAutoPixmapStorage.h ('k') | tests/SpecialImageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698