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

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

Issue 1825043002: Potential fix for SpecialImageTest memory leak (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 | « no previous file | no next file » | 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 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file 5 * found in the LICENSE file
6 */ 6 */
7 #include "SkSpecialImage.h" 7 #include "SkSpecialImage.h"
8 8
9 #if SK_SUPPORT_GPU 9 #if SK_SUPPORT_GPU
10 #include "GrTexture.h" 10 #include "GrTexture.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 bool SkSpecialImage::testingOnlyGetROPixels(SkBitmap* result) const { 99 bool SkSpecialImage::testingOnlyGetROPixels(SkBitmap* result) const {
100 return as_SIB(this)->testingOnlyOnGetROPixels(result); 100 return as_SIB(this)->testingOnlyOnGetROPixels(result);
101 } 101 }
102 102
103 sk_sp<SkSpecialSurface> SkSpecialImage::makeSurface(const SkImageInfo& info) con st { 103 sk_sp<SkSpecialSurface> SkSpecialImage::makeSurface(const SkImageInfo& info) con st {
104 return as_SIB(this)->onMakeSurface(info); 104 return as_SIB(this)->onMakeSurface(info);
105 } 105 }
106 106
107 sk_sp<SkSurface> SkSpecialImage::makeTightSurface(const SkImageInfo& info) const { 107 sk_sp<SkSurface> SkSpecialImage::makeTightSurface(const SkImageInfo& info) const {
108 sk_sp<SkSurface> tmp(SkRef(as_SIB(this)->onMakeTightSurface(info))); 108 sk_sp<SkSurface> tmp(as_SIB(this)->onMakeTightSurface(info));
109 return tmp; 109 return tmp;
110 } 110 }
111 111
112 sk_sp<SkSpecialImage> SkSpecialImage::makeSubset(const SkIRect& subset) const { 112 sk_sp<SkSpecialImage> SkSpecialImage::makeSubset(const SkIRect& subset) const {
113 return as_SIB(this)->onMakeSubset(subset); 113 return as_SIB(this)->onMakeSubset(subset);
114 } 114 }
115 115
116 sk_sp<SkImage> SkSpecialImage::makeTightSubset(const SkIRect& subset) const { 116 sk_sp<SkImage> SkSpecialImage::makeTightSubset(const SkIRect& subset) const {
117 return as_SIB(this)->onMakeTightSubset(subset); 117 return as_SIB(this)->onMakeTightSubset(subset);
118 } 118 }
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 535
536 sk_sp<SkSpecialImage> SkSpecialImage::MakeFromGpu(SkImageFilter::Proxy* proxy, 536 sk_sp<SkSpecialImage> SkSpecialImage::MakeFromGpu(SkImageFilter::Proxy* proxy,
537 const SkIRect& subset, 537 const SkIRect& subset,
538 uint32_t uniqueID, 538 uint32_t uniqueID,
539 GrTexture* tex, 539 GrTexture* tex,
540 SkAlphaType at) { 540 SkAlphaType at) {
541 return nullptr; 541 return nullptr;
542 } 542 }
543 543
544 #endif 544 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698