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

Side by Side Diff: src/image/SkSurface.cpp

Issue 1709163003: Add wrapBackendTextureAsRenderTarget API (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: fix test 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 | « src/gpu/gl/GrGLGpu.cpp ('k') | src/image/SkSurface_Base.h » ('j') | 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 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
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
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | src/image/SkSurface_Base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698