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 "SkSurface_Base.h" | 8 #include "SkSurface_Base.h" |
9 #include "SkImagePriv.h" | 9 #include "SkImagePriv.h" |
10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 } | 188 } |
189 | 189 |
190 GrBackendObject SkSurface::getTextureHandle(BackendHandleAccess access) { | 190 GrBackendObject SkSurface::getTextureHandle(BackendHandleAccess access) { |
191 return asSB(this)->onGetTextureHandle(access); | 191 return asSB(this)->onGetTextureHandle(access); |
192 } | 192 } |
193 | 193 |
194 bool SkSurface::getRenderTargetHandle(GrBackendObject* obj, BackendHandleAccess
access) { | 194 bool SkSurface::getRenderTargetHandle(GrBackendObject* obj, BackendHandleAccess
access) { |
195 return asSB(this)->onGetRenderTargetHandle(obj, access); | 195 return asSB(this)->onGetRenderTargetHandle(obj, access); |
196 } | 196 } |
197 | 197 |
| 198 void SkSurface::prepareForExternalIO() { |
| 199 asSB(this)->onPrepareForExternalIO(); |
| 200 } |
| 201 |
198 ////////////////////////////////////////////////////////////////////////////////
////// | 202 ////////////////////////////////////////////////////////////////////////////////
////// |
199 | 203 |
200 #if !SK_SUPPORT_GPU | 204 #if !SK_SUPPORT_GPU |
201 | 205 |
202 SkSurface* SkSurface::NewRenderTargetDirect(GrRenderTarget*, const SkSurfaceProp
s*) { | 206 SkSurface* SkSurface::NewRenderTargetDirect(GrRenderTarget*, const SkSurfaceProp
s*) { |
203 return nullptr; | 207 return nullptr; |
204 } | 208 } |
205 | 209 |
206 SkSurface* SkSurface::NewRenderTarget(GrContext*, Budgeted, const SkImageInfo&,
int, | 210 SkSurface* SkSurface::NewRenderTarget(GrContext*, Budgeted, const SkImageInfo&,
int, |
207 const SkSurfaceProps*, GrTextureStorageAll
ocator) { | 211 const SkSurfaceProps*, GrTextureStorageAll
ocator) { |
208 return nullptr; | 212 return nullptr; |
209 } | 213 } |
210 | 214 |
211 SkSurface* SkSurface::NewFromBackendTexture(GrContext*, const GrBackendTextureDe
sc&, | 215 SkSurface* SkSurface::NewFromBackendTexture(GrContext*, const GrBackendTextureDe
sc&, |
212 const SkSurfaceProps*) { | 216 const SkSurfaceProps*) { |
213 return nullptr; | 217 return nullptr; |
214 } | 218 } |
215 | 219 |
216 SkSurface* SkSurface::NewFromBackendRenderTarget(GrContext*, const GrBackendRend
erTargetDesc&, | 220 SkSurface* SkSurface::NewFromBackendRenderTarget(GrContext*, const GrBackendRend
erTargetDesc&, |
217 const SkSurfaceProps*) { | 221 const SkSurfaceProps*) { |
218 return nullptr; | 222 return nullptr; |
219 } | 223 } |
220 | 224 |
| 225 SkSurface* NewFromBackendTextureAsRenderTarget(GrContext*, const GrBackendTextur
eDesc&, |
| 226 const SkSurfaceProps*) { |
| 227 return nullptr; |
| 228 } |
| 229 |
221 #endif | 230 #endif |
OLD | NEW |