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 #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 Loading... |
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 |
OLD | NEW |