OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |