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

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

Issue 1169553003: add callbacks to Images that wrap client-provided content (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: privatize Created 5 years, 6 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/GrSurface.cpp ('k') | src/image/SkImage_Gpu.cpp » ('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 "SkBitmap.h" 8 #include "SkBitmap.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkImageGenerator.h" 10 #include "SkImageGenerator.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 paint.setXfermodeMode(SkXfermode::kSrc_Mode); 198 paint.setXfermodeMode(SkXfermode::kSrc_Mode);
199 paint.setFilterQuality(quality); 199 paint.setFilterQuality(quality);
200 surface->getCanvas()->drawImage(this, 0, 0, &paint); 200 surface->getCanvas()->drawImage(this, 0, 0, &paint);
201 return surface->newImageSnapshot(); 201 return surface->newImageSnapshot();
202 } 202 }
203 203
204 //////////////////////////////////////////////////////////////////////////////// ////// 204 //////////////////////////////////////////////////////////////////////////////// //////
205 205
206 #if !SK_SUPPORT_GPU 206 #if !SK_SUPPORT_GPU
207 207
208 SkImage* SkImage::NewFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlph aType) { 208 SkImage* SkImage::NewFromTexture(GrContext*, const GrBackendTextureDesc&, SkAlph aType,
209 TextureReleaseProc, ReleaseContext) {
209 return NULL; 210 return NULL;
210 } 211 }
211 212
212 SkImage* SkImage::NewFromAdoptedTexture(GrContext*, const GrBackendTextureDesc&, SkAlphaType) { 213 SkImage* SkImage::NewFromAdoptedTexture(GrContext*, const GrBackendTextureDesc&, SkAlphaType) {
213 return NULL; 214 return NULL;
214 } 215 }
215 216
216 SkImage* SkImage::NewFromTextureCopy(GrContext*, const GrBackendTextureDesc&, Sk AlphaType) { 217 SkImage* SkImage::NewFromTextureCopy(GrContext*, const GrBackendTextureDesc&, Sk AlphaType) {
217 return NULL; 218 return NULL;
218 } 219 }
219 220
220 #endif 221 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrSurface.cpp ('k') | src/image/SkImage_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698