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

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

Issue 1220733007: add ability to get FBO ID to Surface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: mac warning Created 5 years, 5 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/GrGLRenderTarget.h ('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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 const void* SkSurface::peekPixels(SkImageInfo* info, size_t* rowBytes) { 169 const void* SkSurface::peekPixels(SkImageInfo* info, size_t* rowBytes) {
170 return this->getCanvas()->peekPixels(info, rowBytes); 170 return this->getCanvas()->peekPixels(info, rowBytes);
171 } 171 }
172 172
173 bool SkSurface::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t d stRowBytes, 173 bool SkSurface::readPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t d stRowBytes,
174 int srcX, int srcY) { 174 int srcX, int srcY) {
175 return this->getCanvas()->readPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY); 175 return this->getCanvas()->readPixels(dstInfo, dstPixels, dstRowBytes, srcX, srcY);
176 } 176 }
177 177
178 GrBackendObject SkSurface::getTextureHandle(TextureHandleAccess access) { 178 GrBackendObject SkSurface::getTextureHandle(BackendHandleAccess access) {
179 return asSB(this)->onGetTextureHandle(access); 179 return asSB(this)->onGetTextureHandle(access);
180 } 180 }
181 181
182 bool SkSurface::getRenderTargetHandle(GrBackendObject* obj, BackendHandleAccess access) {
183 return asSB(this)->onGetRenderTargetHandle(obj, access);
184 }
185
182 //////////////////////////////////////////////////////////////////////////////// ////// 186 //////////////////////////////////////////////////////////////////////////////// //////
183 187
184 #if !SK_SUPPORT_GPU 188 #if !SK_SUPPORT_GPU
185 189
186 SkSurface* SkSurface::NewRenderTargetDirect(GrRenderTarget*, const SkSurfaceProp s*) { 190 SkSurface* SkSurface::NewRenderTargetDirect(GrRenderTarget*, const SkSurfaceProp s*) {
187 return NULL; 191 return NULL;
188 } 192 }
189 193
190 SkSurface* SkSurface::NewRenderTarget(GrContext*, Budgeted, const SkImageInfo&, int, 194 SkSurface* SkSurface::NewRenderTarget(GrContext*, Budgeted, const SkImageInfo&, int,
191 const SkSurfaceProps*) { 195 const SkSurfaceProps*) {
192 return NULL; 196 return NULL;
193 } 197 }
194 198
195 SkSurface* SkSurface::NewFromBackendTexture(GrContext*, const GrBackendTextureDe sc&, 199 SkSurface* SkSurface::NewFromBackendTexture(GrContext*, const GrBackendTextureDe sc&,
196 const SkSurfaceProps*) { 200 const SkSurfaceProps*) {
197 return NULL; 201 return NULL;
198 } 202 }
199 203
200 SkSurface* SkSurface::NewFromBackendRenderTarget(GrContext*, const GrBackendRend erTargetDesc&, 204 SkSurface* SkSurface::NewFromBackendRenderTarget(GrContext*, const GrBackendRend erTargetDesc&,
201 const SkSurfaceProps*) { 205 const SkSurfaceProps*) {
202 return NULL; 206 return NULL;
203 } 207 }
204 208
205 #endif 209 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLRenderTarget.h ('k') | src/image/SkSurface_Base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698