OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 | 7 |
8 #include "SkAtomics.h" | 8 #include "SkAtomics.h" |
9 #include "SkSurface_Base.h" | 9 #include "SkSurface_Base.h" |
10 #include "SkImagePriv.h" | 10 #include "SkImagePriv.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 } | 216 } |
217 | 217 |
218 void SkSurface::prepareForExternalIO() { | 218 void SkSurface::prepareForExternalIO() { |
219 asSB(this)->onPrepareForExternalIO(); | 219 asSB(this)->onPrepareForExternalIO(); |
220 } | 220 } |
221 | 221 |
222 ////////////////////////////////////////////////////////////////////////////////
////// | 222 ////////////////////////////////////////////////////////////////////////////////
////// |
223 | 223 |
224 #if !SK_SUPPORT_GPU | 224 #if !SK_SUPPORT_GPU |
225 | 225 |
226 sk_sp<SkSurface> SkSurface::MakeRenderTargetDirect(GrRenderTarget*, sk_sp<SkColo
rSpace>, | |
227 const SkSurfaceProps*) { | |
228 return nullptr; | |
229 } | |
230 | |
231 sk_sp<SkSurface> SkSurface::MakeRenderTarget(GrContext*, SkBudgeted, const SkIma
geInfo&, | 226 sk_sp<SkSurface> SkSurface::MakeRenderTarget(GrContext*, SkBudgeted, const SkIma
geInfo&, |
232 int, GrSurfaceOrigin, const SkSurfa
ceProps*) { | 227 int, GrSurfaceOrigin, const SkSurfa
ceProps*) { |
233 return nullptr; | 228 return nullptr; |
234 } | 229 } |
235 | 230 |
236 sk_sp<SkSurface> SkSurface::MakeFromBackendTexture(GrContext*, const GrBackendTe
xtureDesc&, | 231 sk_sp<SkSurface> SkSurface::MakeFromBackendTexture(GrContext*, const GrBackendTe
xtureDesc&, |
237 sk_sp<SkColorSpace>, const Sk
SurfaceProps*) { | 232 sk_sp<SkColorSpace>, const Sk
SurfaceProps*) { |
238 return nullptr; | 233 return nullptr; |
239 } | 234 } |
240 | 235 |
241 sk_sp<SkSurface> SkSurface::MakeFromBackendRenderTarget(GrContext*, | 236 sk_sp<SkSurface> SkSurface::MakeFromBackendRenderTarget(GrContext*, |
242 const GrBackendRenderTar
getDesc&, | 237 const GrBackendRenderTar
getDesc&, |
243 sk_sp<SkColorSpace>, | 238 sk_sp<SkColorSpace>, |
244 const SkSurfaceProps*) { | 239 const SkSurfaceProps*) { |
245 return nullptr; | 240 return nullptr; |
246 } | 241 } |
247 | 242 |
248 sk_sp<SkSurface> MakeFromBackendTextureAsRenderTarget(GrContext*, const GrBacken
dTextureDesc&, | 243 sk_sp<SkSurface> MakeFromBackendTextureAsRenderTarget(GrContext*, const GrBacken
dTextureDesc&, |
249 sk_sp<SkColorSpace>, const
SkSurfaceProps*) { | 244 sk_sp<SkColorSpace>, const
SkSurfaceProps*) { |
250 return nullptr; | 245 return nullptr; |
251 } | 246 } |
252 | 247 |
253 #endif | 248 #endif |
OLD | NEW |