| 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*, const SkSurf
aceProps*) { | 226 sk_sp<SkSurface> SkSurface::MakeRenderTargetDirect(GrRenderTarget*, sk_sp<SkColo
rSpace>, |
| 227 const SkSurfaceProps*) { |
| 227 return nullptr; | 228 return nullptr; |
| 228 } | 229 } |
| 229 | 230 |
| 230 sk_sp<SkSurface> SkSurface::MakeRenderTarget(GrContext*, SkBudgeted, const SkIma
geInfo&, int, | 231 sk_sp<SkSurface> SkSurface::MakeRenderTarget(GrContext*, SkBudgeted, const SkIma
geInfo&, int, |
| 231 const SkSurfaceProps*) { | 232 const SkSurfaceProps*) { |
| 232 return nullptr; | 233 return nullptr; |
| 233 } | 234 } |
| 234 | 235 |
| 235 sk_sp<SkSurface> SkSurface::MakeFromBackendTexture(GrContext*, const GrBackendTe
xtureDesc&, | 236 sk_sp<SkSurface> SkSurface::MakeFromBackendTexture(GrContext*, const GrBackendTe
xtureDesc&, |
| 236 const SkSurfaceProps*) { | 237 sk_sp<SkColorSpace>, const Sk
SurfaceProps*) { |
| 237 return nullptr; | 238 return nullptr; |
| 238 } | 239 } |
| 239 | 240 |
| 240 sk_sp<SkSurface> SkSurface::MakeFromBackendRenderTarget(GrContext*, | 241 sk_sp<SkSurface> SkSurface::MakeFromBackendRenderTarget(GrContext*, |
| 241 const GrBackendRenderTar
getDesc&, | 242 const GrBackendRenderTar
getDesc&, |
| 243 sk_sp<SkColorSpace>, |
| 242 const SkSurfaceProps*) { | 244 const SkSurfaceProps*) { |
| 243 return nullptr; | 245 return nullptr; |
| 244 } | 246 } |
| 245 | 247 |
| 246 sk_sp<SkSurface> MakeFromBackendTextureAsRenderTarget(GrContext*, const GrBacken
dTextureDesc&, | 248 sk_sp<SkSurface> MakeFromBackendTextureAsRenderTarget(GrContext*, const GrBacken
dTextureDesc&, |
| 247 const SkSurfaceProps*) { | 249 sk_sp<SkColorSpace>, const
SkSurfaceProps*) { |
| 248 return nullptr; | 250 return nullptr; |
| 249 } | 251 } |
| 250 | 252 |
| 251 #endif | 253 #endif |
| OLD | NEW |