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

Side by Side Diff: src/image/SkImagePriv.h

Issue 12567025: Integrating SkSurface with SkDeferredCanvas (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | Annotate | Revision Log
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 #ifndef SkImagePriv_DEFINED 8 #ifndef SkImagePriv_DEFINED
9 #define SkImagePriv_DEFINED 9 #define SkImagePriv_DEFINED
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Given an image created from SkNewImageFromBitmap, return its pixelref. This 53 // Given an image created from SkNewImageFromBitmap, return its pixelref. This
54 // may be called to see if the surface and the image share the same pixelref, 54 // may be called to see if the surface and the image share the same pixelref,
55 // in which case the surface may need to perform a copy-on-write. 55 // in which case the surface may need to perform a copy-on-write.
56 extern SkPixelRef* SkBitmapImageGetPixelRef(SkImage* rasterImage); 56 extern SkPixelRef* SkBitmapImageGetPixelRef(SkImage* rasterImage);
57 57
58 // Given an image created with NewTexture, return its GrTexture. This 58 // Given an image created with NewTexture, return its GrTexture. This
59 // may be called to see if the surface and the image share the same GrTexture, 59 // may be called to see if the surface and the image share the same GrTexture,
60 // in which case the surface may need to perform a copy-on-write. 60 // in which case the surface may need to perform a copy-on-write.
61 extern GrTexture* SkTextureImageGetTexture(SkImage* rasterImage); 61 extern GrTexture* SkTextureImageGetTexture(SkImage* rasterImage);
62 62
63 // Update the texture wrapped by an image created with NewTexture. This
64 // is called when a surface and image share the same GrTexture and the
65 // surface needs to perform a copy-on-write
66 extern void SkTextureImageSetTexture(SkImage* image, GrTexture* texture);
67
68 #endif 63 #endif
OLDNEW
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/image/SkImage_Gpu.cpp » ('j') | src/image/SkSurface.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698